On 16/10/2011 05:57, sailendra karthik wrote: > On 10/16/11, sailendra karthik <karthiksailen...@gmail.com> wrote: >> On 10/15/11, Pid <p...@pidster.com> wrote: >>> On 14/10/2011 22:36, sailendra karthik wrote: >>>> I need to maintain a session object between Realm and Servlet. >>>> >>>> I have written a CustomRealm and every thing working fine and now it >>>> is required to send an object to servlets (possibly by >>>> HttpRequestServlet ) But i know/think Servlet is not yet Initiated. >>>> >>>> So how it is possible to access HttpRequestServlet and set some >>>> session attribute in my Custom Realm which extends RealmBase. >>>> >>>> Or else it should be a different Procedure. >>>> >>>> Waiting for some clue. >>> >>> This is clear, but so are we. Which version of Tomcat for example? >>> >>> >>> p >>> >>> >>> >> >> >> Tomcat 6.0.22 >> > > As you asked about version of Tomcat, > > Is it possible in some tomcat version, if yes, can you tell me that > version and which portion in > that tomcat version(like few classes) makes it possible.
You are trying, for some reason, to force a Realm and a Servlet to interact directly. Don't do this. What is the real problem, why do you need a custom realm implementation? For what purpose are you setting an object in the session? p
signature.asc
Description: OpenPGP digital signature