Solved

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

Posted on 2001-06-21
3
343 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now