Originally posted by Natarajan Shankar:
while server starting it-self it will create the pool of stateless bean object
Hi Natarajan,
Even I have assumed that while after successful bean deployment or server startup the Bean instances are created and pooled. But it is not happening in that way in weblogic server.
<B>HelloWorldBean class </B>
public HelloWorld()
{
System.out.println("Inside the HelloWorld Bean constructor");
}
public void setSessionContext(SessionContext ctx)
{
System.out.println("Session Context method is called");
}
public void ejbCreate()
{
System.out.println("EJB Create Method is called");
}
public void sayHello()
{
System.out.println("HelloWorld");
}
Only during the first Business method call (sayHello), I am getting the following output:
Inside the HelloWorld Bean constructor
Session Context method is called
EJB Create Method is called
--> Why I am not getting the above output after server startup or Bean deployment?
HelloWorld
After the calling the same business method I am getting the following only output (Correct)
HelloWorld
Regards,
M.S.Raman