On 16/10/2011 12:01, sailendra karthik wrote:
> On Sun, Oct 16, 2011 at 2:25 PM, Pid <p...@pidster.com> wrote:
> 
>> 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
>>
>> Real Problem :-
>>
>   In my Custom Realm Implementation iam autheticating some user and allowing
> him to access my webapps(servlets or filters) (my application)

What's wrong with the existing realms?

>   This authentication session i need it to be reused in my webapp(to avoid
> another authentication)  if it is an authorized session.

What's wrong with the existing container functionality?

>   So for this purpose i want to set an object in the session and reuse that
> object(connection Object) at my servlets level.

What kind of object?


p

> How can i over come this
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to