Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

785 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