AW: [opencms-dev] access OpenCms from outside tomcat

Marc Zwingmann marc.zwingmann at mindmatics.de
Thu Aug 4 18:40:50 CEST 2005


Hi Miquel,

you can write your own class implementing I_CmsScheduledJob.
There you can open a connection to another cms system and create new
CmsResources. I created Folders and binary Files (images)

Regards
Marc








-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von miquel at aguado.de
Gesendet: Donnerstag, 4. August 2005 14:23
An: opencms-dev at opencms.org
Betreff: [opencms-dev] access OpenCms from outside tomcat

Hello,

Can somebody help on how to start and access OpenCms from outside its
tomcat context to acces the vfs (e.g. create resources as import from
another cms-system)?
What I need is something like the following from a "normal" java
application:

CmsJspActionElement cmsJspActionElement = new
CmsJspActionElement(pageContext, request, response);
CmsObject cmsObject = cmsJspActionElement.getCmsObject();
// ...
CmsResource cmsResource = cmsObject.createResource(resourceName, type,
content, properties);
cmsObject.unlockResource(resourceName);
cmsObject.publishResource(resourceName);

The examples tell about OpenCms.initCmsObject(...) etc.
But
1. how to tell OpenCms where db-connection, xml-conf files etc. are
located
2. how to get an cmsObject from it

Thanks in advance,
Miquel


_______________________________________________
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






More information about the opencms-dev mailing list