[opencms-dev] access OpenCms from outside tomcat

Michael Moossen m.moossen at alkacon.com
Thu Aug 4 15:43:54 CEST 2005


Hi, miquel!

> 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)?
   try the OpenCms Shell:
   ${OpenCms_HOME}/WEB-INF/cmsshell.bat (.sh)

-- 
Regards
Michael Moossen
Alkacon SOftware GmbH - The OpenCms Experts

http://www.alkacon.com



Quoting miquel at aguado.de:

> 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
> 


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the opencms-dev mailing list