cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark S. Kent" <mark.k...@vistyx.com>
Subject RE: using C2 to read sessions from JBoss/Tomcat
Date Thu, 11 Apr 2002 21:29:05 GMT
Thanks, Vadim. I'll check it out.

-----Original Message-----
From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Sent: Thursday, April 11, 2002 4:11 PM
To: cocoon-users@xml.apache.org; Mark Kent
Subject: RE: using C2 to read sessions from JBoss/Tomcat


> From: Mark S. Kent [mailto:mark.kent@vistyx.com]
> 
> Vadim,
> 
> Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat "within" the
JBoss
> instance (I think).  The "jboss/deploy" folder has:
> 
> + cocoon.war (folder)
>   -- (contains same contents as standard tomcat/webapps/cocoon folder)
> + lib (folder)
>   -- jbosspool-jdbc.jar
>   -- jms-ra.jar
> + web.war (folder)
>   -- (contains all my JSP and webfiles [images/css/etc] )
> cl.jar (file -- a jar with my ejbs)
> deploy.txt (text file)
> 
> So, I would think that these two (cocoon.war and cl.jar) are deployed
> "separately" within the JBoss context so that they would not "see"
each
> other's session variables.  Does that sound right to you?

Almost. You wrote that cl.jar contains EJBs. How do you access servlet
container session object from an EJB? AFAIR, this is not possible.

I would assume that you mean session created in your web.war file.


> If so, is there a way to start the cl.jar "within" the web.war
"webapp" (or
> vice versa) so that they can share session variables?

You just need to merge both of your web applications into one web
application (read: one session manager, see also
jakarta-tomcat\webapps\tomcat-docs\config\manager.html), which includes
merging of classes, libs, web.xml, and all other resources in one web
application file (or directory: you always can work with directory
instead of huge file, which gives you much faster development
turn-around).

Hope I'm clear.


Vadim

> I'm trying to get a similar question answered as well on the JBoss
forum,
> and can take this discussion there if need be.  Thanks for your help!
> 
> Mark
> 
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Thursday, April 11, 2002 2:49 PM
> To: cocoon-users@xml.apache.org; Mark Kent
> Subject: RE: using C2 to read sessions from JBoss/Tomcat
> 
> 
> > From: Mark S. Kent [mailto:mark.kent@vistyx.com]
> >
> > I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and
I'm
> trying
> > to get Cocoon to read an user's session name variable (employeeData)
> created
> > by the login process.  Can Cocoon2 read the session information from
the
> > JB/TC "instance"? (sorry if that is not the right terminology)
> 
> (IIRC) Yes, if "login process" resides in the *same* webapp where
cocoon
> is deployed.
> 
> 
> > I can see where Cocoon can perform tasks using it's own "session"
> variables,
> 
> Cocoon's session is servlet session.
> 
> Vadim
> 
> > but I would like to use the ones created in Tomcat to get the
current
> user's
> > employee profile (i.e. "company_id", etc.) that was created when
they
> logged
> > in.
> >
> > This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war
file from
> > the $JBOSS_HOME/deploy folder.
> >
> > If this is the wrong place to post this, I understand and will post
> > elsewhere, but I'm trying to understand how these all work together
and
> > since they are all used through the jboss/deploy folder, whether
they
> share
> > any common variables/memory/jvm data/etc.
> >
> > Thanks!
> > Mark
> >
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message