Guys,
I have a simple
EJB bean class.
import javax.ejb.*;
public class HelloBean implements javax.ejb.SessionBean
{
private SessionContext ctx;
public void ejbCreate()
{
System.out.println("ejbCreate()");
}
public void ejbRemove()
{
System.out.println("ejbRemove()");
}
public void ejbActivate()
{
System.out.println("ejbACtivate()");
}
public void ejbPassivate()
{
System.out.println("ejbPassivate()");
}
public void setSessionContext(javax.ejb.SessionContext ctx)
{
this.ctx=ctx;
}
public
String hello()
{
System.out.println("Hello World EJB");
return "Hello World EJB return this time with SUNIL";
}
}
When I invoke my client, it displays the string from ejbCreate() but the string inside the ejbRemove() method is not at all called. WHY?
Thanks,
Guru