[jboss-user] [EJB 3.0] - Re: Automatic Destroy State in Stateful Session Bean

grdzeli_kaci do-not-reply at jboss.com
Fri Oct 6 01:30:12 EDT 2006


ok, thanks ALRubinger

i think than i need always returned new instance for the same client.

i think that stateless session bean always must return new instance to the client when i lookup from from the client...

i did some changes on my sample bean :


  | public void initialize()
  | 	{
  | 		System.out.println(this);
  | 		if (name == null)
  | 		{
  | 			System.out.println("Null");
  | 			name = "Initialize";
  | 		}
  | 		else
  | 		{
  | 			System.out.println("Not Null -> "+name);
  | 		}
  | 	}
  | 


and it fiert time prints 


  | 09:10:21,759 INFO  [STDOUT] com.magti.businesslayer.ejb3entity.oracle.StateBean at dd8904
  | 09:10:21,759 INFO  [STDOUT] Null
  | 

and then always printed :


  | 09:10:21,759 INFO  [STDOUT] com.magti.businesslayer.ejb3entity.oracle.StateBean at dd8904
  | 09:10:21,759 INFO  [STDOUT] Not Null -> Initialize
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976487#3976487

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976487



More information about the jboss-user mailing list