Yeah, If I use option 1 and 2, the amount of information interchanged
between them is limited. 

Yeah u were right my question was  "whether java servlets can share
sessions with Perl scripts running in mod_perl ? "



Stephen Adkins wrote:
> 
> >I read somewhere that mod_perl also has some session tracking
> >functionality, and Jserv supports that.
> 
> I think it is the Apache::Session module which allows session
> tracking in mod_perl.  I have not used it, but I would guess it
> uses cookies to track sessions just like Servlets do.
> However, I would bet that the cookie name is different, so the
> session tracking mechanisms will not talk to each other.
> 
> My recommendation would be to let a Servlet establish the session
> (must be cookie based) (or you might figure out how to make
> URL rewriting work).  Then let your Perl scripts look for that
> particular named cookie to continue the session.
> 
> >For my web site if I want to use both (perl and java), is there a way to
> >get the session information or session objects from one to another. Or
> >how can they two communicate with each other ? Is it possible at all ?
> >If so can anybody give some info.
> 
> There are many ways to store state information between calls.
> The nice thing about Java Servlets is that you can store state info
> in Java Session object.  Obviously, this information cannot be
> shared with perl scripts.
> 
> However, one piece of state information,
> the session ID, is stored in a cookie (i.e. sent back the brower,
> whereupon the browser sends it back the server every request).
> 
> You could store other pieces of state information as cookies
> (as long as it was limited in volume).  This state information can
> be shared between Servlets, Perl, and any other active processing
> you may have on your site.
> 
> A third way to share state information between Java and Perl is the
> ugly "write it to a file" method.
> 
> >Is it possible to develop a site which uses both, some pages use java
> >and some perl. Can apache support both Jserv and mod_perl at the same
> >time ( honestly I don't know much about mod_perl).
> 
> Yes Apache can do both in the same server.
> I think your question here is whether java servlets can share sessions
> with Perl scripts running in mod_perl.
> 
> Stephen
> 
> --
> ----------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to