[opencms-dev] Challange! External Program access to OpenCMS Instance...

Ralf Bierig ambiesense at gmx.de
Wed Nov 12 11:23:02 CET 2003


Hi Matt and Wouter,

the method is more direct. However using this appraoch would change the
workflow. My initial idea was that OpenCMS with data and everything is like a
service and I have a client, who can access this without HTTP/SOAP/Webservice
but API(local)/RMI or Sockets.

Wouter's method is good but change the workflow in the way that the OpenCMS
server is acutally calling my application (the wrapper). This would turn
OpenCMS into a pseudo client and the application which was supposed to be a
client into a pseudo server. The application would be invoked by starting OpenCMS.
I would like it however the other way round. Would this be possible to start
a RMI server/Socket Server with this extra line and let the appliation
client connect to that, get the OpenCms Object and work with the singleton OpenCms
instance. 

If more then one client applications would connect like that, would this way
of accessing still ensure that each client sees the same (files, users,
etc)?

Another question based on the fact that I would accept the fact that OpenCMS
starts the application. Could  this line:

// added by myself
opencms.addons.CmsWrapper.setOpenCms(m_opencms);
// end added by myself

be extended to start a number of appliations (Wrappers) simultaniously (i.e.
as Threads). Would this still ensure that each application would see the
same OpenCMS instance with the same changes made by others (i.e. users, files,
tasks...)?

Cheers,
Ralf







> Ralf Bierig wrote:
> > Hello Matt,
> > 
> > thank you again for you competent answer.
> > 
> > Do you agree that this solution should not have side effects, if the
> only
> > user would be this Java programm and there would NO OTHER user logged in
> via
> > HTTP/Tomcat?
> 
> I think that should be okay. wouter's method is probably better, though 
> -- esp. if you were planning on using RMI anyway.
> 
> Matt
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++




More information about the opencms-dev mailing list