this is the sample method in session bean in when u delete a bean
ExampleEntityHome home =
(ExampleEntityHome)ejbHomeFactory.lookupHome("ExampleEntityBean",ExampleEntityHome.class);
ExampleEntity remote =
home.findByPrimaryKey(1221);
remote.remove();
Container inturns calls ejbRemove() method.ejbRemove prints in server.log
after that it goes to remove method of exampleDAO class then i am making
header= null(to optimize memory i am making object is null);
but i am getting nullpointerexception in remove method of
exampleDAO class where i am using header object
my question after completing remove method only i am making header=null; why
container is calling before header = null;
it works well in oc4j server;getting problem in jboss
entity bean
public void ejbRemove()
throws javax.ejb.RemoveException
{
try
{
System.out.println("ejbRemove");
long seqno =
((Long)entityContext.getPrimaryKey()).longValue();
ExampleDAO exampleDAO = new ExampleDAO();
exampleDAO.remove(seqno,header);
this.header = null;
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906562#3906562
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906562
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user