Integration of Java application with OpenCms

眉间皱痕 提交于 2019-12-29 05:36:27

问题


I want to know how to integrate a Java web application with OpenCms contents. Is it possible to integrate a Java application with OpenCms?


回答1:


Yes, it's possible. For example you can integrate SpringMVC or Struts into OpenCms, or other tools like JForum, an open source java forum, which also supports single-sign-on (SSO).

You can find information here & a small sample OpenCms+Spring integration project:

  • http://www.opencms-wiki.org/wiki/Integration_HOWTOs

Since OpenCms is open source and based on Java EE standards, you are pretty free.




回答2:


What I have done successfully is to create a jstl tag library to connect JSPs in OpenCms to a business backend.

In my case it was done through a SOAP web-service.

Another advantage of this was that I could test and develop my code in Eclipse, without a dependency on OpenCms.

Deploying to production would then mean to deploy a jar file to the OpenCms webapp.

Yet another advantage: Since we put some of the view-logic into the OpenCms-hosted JSPs, they were versioned by OpenCms.




回答3:


We have integrated SprigMVC into an existing OpenCMS installation. Here is a description of how we went about that: http://blog.shinetech.com/2013/04/09/integrating-springmvc-with-opencms/



来源:https://stackoverflow.com/questions/3263558/integration-of-java-application-with-opencms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!