Solved

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

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
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 …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

733 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