[opencms-dev] OpenCms Access like CmsShell - Experience?
Ralf Bierig
ambiesense at gmx.de
Tue Nov 11 13:19:00 CET 2003
That sound exactly like something I want for my solution. In this case your
Wrapper class and the normal HTTP access are using the same Singleton
instance of OpenCMS. Theoretically there should therefore be no concurrency problems
(reader-writer problems) at all. Did you experience any drawbacks by using
this approach?
Thank you very much so far :-)
Ralf
> Of course, my package opencms.addons is a package I created myself...
>
> wouter
>
> -----Original Message-----
> From: ambiesense at gmx.de [mailto:ambiesense at gmx.de]
> Sent: mardi 11 novembre 2003 12:44
> To: opencms-dev at opencms.org
> Subject: RE: [opencms-dev] OpenCms Access like CmsShell - Experience?
>
>
> Hi,
>
> thank you for that info.
>
> Is this possible if the OpenCMS Wrapper is in a different package
> outside
> jar (i.e. com.mycompany.mypackage.Wrapper) ?
>
> Cheers,
> Ralf
>
>
> > I experimented with modifying the OpenCmsHttpServlet. I added a line
> in
> > the
> > init method to have access to the OpenCms object afterwards.
> >
> > // create the OpenCms object
> > m_opencms = new OpenCms(m_configurations);
> >
> > // added by myself
> >
> > opencms.addons.CmsWrapper.setOpenCms(m_opencms);
> > // end added by myself
> >
> >
> > So I have access to the singleton OpenCms in my wrapper class via a
> > static
> > method. With that OpenCms object, I can make instances of CmsObject
> to
> > call
> > whatever I want (users, files,tasks...)
> >
> > wouter
> >
> >
> > -----Original Message-----
> > From: ambiesense at gmx.de [mailto:ambiesense at gmx.de]
> > Sent: mardi 11 novembre 2003 11:53
> > To: opencms-dev at opencms.org
> > Subject: [opencms-dev] OpenCms Access like CmsShell - Experience?
> >
> >
> > Hello OpenCMS community,
> >
> > did anybody make experience in accessing an OpenCMS instance like
> > CmsShell
> > and could provide infos or even sourcecode?
> >
> > Does somebody know whats happening when the CmsShell is starting,
> > exspecially in the constructor? This would help me to get easier into
> > understanding it.
> >
> > Thank you,
> > Ralf
> >
> > --
> > 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! +++
> >
> > _______________________________________________
> > 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
> > _______________________________________________
> > 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! +++
>
> _______________________________________________
> 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
> _______________________________________________
> 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