File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBHome.remove

 
Kalyan Anand
Ranch Hand
Posts: 194
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What must be the expected behavior when EJBHome.remove is called with null as the parameter i.e. EJBHome.remove(null) on a Stateless Session Bean Home ?
 
Kalyan Anand
Ranch Hand
Posts: 194
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are the behaviors I see in OC4J 10.1.3. Wondering with the behaviors. What do you think must be the behaviors in the following scenarios ???


SFSB

1. EJBObject.remove() followed by invoking business method on Bean = java.rmi.NoSuchObjectException
2. EJBHome.remove(Object pk) = javax.ejb.RemoveException
3. EJBHome.remove(null) = NullPointerException (at com.evermind.server.ejb.RemoteStatefulSessionEJBHome.remove(RemoteStatefulSessionEJBHome.java:25)
)

SLSB

1. EJBObject.remove() followed by invoking business method on Bean = No exception is thrown from remove and the business method executes successfully !

2. EJBHome.remove(Object pk)= javax.ejb.RemoveException
3. EJBHome.remove(null) = No execption is thrown
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic