Solved

when does a remote reference to a stateless ejb become invalid ?

Posted on 2001-06-21
3
346 Views
Last Modified: 2013-11-24
this question refers to STATELESS ejbs only.

i created a remote reference to my STATELESS ejb.
is this remote reference valid for as long as the weblogic server is up ?
or is there some kind of session timeout for a STATELESS ejb ?
if there is a session timeout , what exception is thrown when trying to invoke a remote method on a reference that has timed out ?
i need to catch this Exception and create a new remote reference.
0
Comment
Question by:assafcoh
  • 2
3 Comments
 

Expert Comment

by:Nachiap
ID: 6216023
no what happens is when a stateless bean is not accesses for a particular time(can be configured in DD)then it will go to passivate state .it will be in passivate state till it is activated by any client.
we can configure time & max no of bean in pool
& min no of bean in pool ...in DD
so u dont want to worry about that any time u can access a stateless session bean.
0
 
LVL 1

Accepted Solution

by:
smueller earned 50 total points
ID: 6216890
Nachiap, I think you are thinking of stateful session beans.  Stateless session beans are never passivated or activated.  They simply have 2 states, in pool or not existing.  You can set the pool size, but that's only for performance tuning, it doesn't affect the functionality of the bean.

Since a reference to a sl session bean is basically a reference to a remote stub object, you should be fine holding on to that reference even after weblogic goes down and comes back up..  whether you have or cluster or not.
0
 

Expert Comment

by:Nachiap
ID: 6217083
yeap,sorry....
what smueller said is correct...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
factorial example 4 47
tomcat startup error 5 101
What's wrong with this code? 4 26
jboss 7.1 start up error 1 29
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question