Title: Message
 
Create a Singleton Class and store the clients data in a hashmap which will be available to all the ejb components.
 
 
----- Original Message -----
Sent: Tuesday, December 09, 2003 4:16 PM
Subject: RE: Mainitaining Session in Application Server

Hey Saravan,
You exactly pointed out what i am looking for.
 
I agree with your suggesion. That is the one of the solution. But the scenario is like this, everytime the user makes the request we check wheter the user is valid or not. For each request we check the session exist for this user or not. If we put this information in DB, then it will make a huge impact on performance since database operation is very costly. What do you think?
-----Original Message-----
From: Saravana [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 4:16 PM
To: Saidas Kottawar
Subject: Re: Mainitaining Session in Application Server

 
As per my knowledge, the spec does not support that. 
You are looking for something which is equivalent to ServletContext in WebContainer.
I think if u create a UID in database with a key and value and store the
client's state information and use it as required. Hopefully this may serve ur purpose.
 
----- Original Message -----
Sent: Tuesday, December 09, 2003 3:35 PM
Subject: RE: Mainitaining Session in Application Server

Hey Saravana,
 
Thanks for Reply. There is one catch, as per my knowledge the Stateful bean is for each client specific. It does not share information for multiple clients (EJB clients). I want a single place where i can put the information about session for all users and then i can check whether the user has proper session created or not.
i want One bean for Multiple users for storing the shared information and that work in cluster.
- Saidas
-----Original Message-----
From: Saravana [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 3:30 PM
To: Saidas Kottawar
Subject: Re: Mainitaining Session in Application Server

Ur problem can be solved with stateful session bean.  
----- Original Message -----
Sent: Tuesday, December 09, 2003 2:41 PM
Subject: Mainitaining Session in Application Server

Hi All,

I have one scenarion. Will apreciate if you can give some valuable information.
We are currently working on J2EE application and we ar only dealing with Server side components.
I want to maintain the session information in EJBS, how can I do that i.e. I want to provide the same functionality as HttpSession provides in Servlet.

I would also like to know how it is going to work in cluster enviorment.

Thanks in advance.

Regards,
Saidas Kottawar



MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to