Session management across J2EE app and CQ in tomcat server | Community
Skip to main content
Level 4
October 16, 2015
Solved

Session management across J2EE app and CQ in tomcat server

  • October 16, 2015
  • 9 replies
  • 2053 views
There is a JSP-servlets Java EE application (ecommerce web site) which is deployed on Tomcat. Now my requirement is to integrate this Java EE application with Day CQ to display content related static pages.

With a hybrid approach, where we maintain all the content related stuff in CQ and dynamic pages (ecommerce like checkout) in the Java EE container, I have the following challenges -

  1. Since CQ does not provide an OOTB session feature, how should I do the session management across CQ and the Java EE container? I mean when I go back and forth between CQ and the Java EE container.

 
Thanks,
Karan
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

There are a few application servers (WebLogic comes to mind) which support cross-webapp session sharing. It is a non-standard feature.

I don't think any app server vendor allows you to share sessions across application server vendors, e.g. between Tomcat and WebLogic.

9 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

There are a few application servers (WebLogic comes to mind) which support cross-webapp session sharing. It is a non-standard feature.

I don't think any app server vendor allows you to share sessions across application server vendors, e.g. between Tomcat and WebLogic.

karanmahiAuthor
Level 4
October 16, 2015

Any response would be highly appreciated ?

karanmahiAuthor
Level 4
October 16, 2015

How do we share the session across the J2EE app and CQ because CQ does not support session management OOTB ?

smacdonald2008
Level 10
October 16, 2015
smacdonald2008
Level 10
October 16, 2015

I will ensure we get advice from the CQ eng team

karanmahiAuthor
Level 4
October 16, 2015

It looks like this forum is not at all active. I don't see much responses here not even mine but other questions also.

Is there any other forum where Adobe provides support ?

karanmahiAuthor
Level 4
October 16, 2015

That post in mine only. But there is no solution yet.

James_Stansell_
October 16, 2015

It's not clear to me why you would want to use CQ5 to serve the static pages of a site, since that usage isn't one of its strong points.  But let's move on.

 

Why do you want a session in CQ5? If your JEE app uses the MVC pattern then it should be the controller. The pages loaded from CQ5 should use the REST principle, which the controller would ... control.

 

If you are actually returning dynamic content from CQ5 then I could imagine that you might need to know the security principal. In that case I would look into single-sign on or such.

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

session management is a function offered by the application server. I am not familiar with the specs, but I doubt, that you can share sessions between multiple webapps.

Jörg