Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2001-06-21
3
Medium Priority
?
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

636 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