uCosminexus Application Server, EJB Container Functionality Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
The precautions to be taken when developing a Session Bean that uses the No-Interface view are as follows:
- Do not include java.rmi.RemoteException in the method of a Session Bean where the local business interface is omitted.
However, if you invoke a method in which an interface in the javax.ejb package is implemented, an error does not occur even if java.rmi.RemoteException is included in the throws clause.
- A method of the Session Bean in which an interface in the javax.ejb package is implemented does not serve as a business method. When using the No-Interface view, do not invoke such methods from the client.
- You cannot declare final in any method in the Bean class and its parent class. You cannot invoke a method with a final declaration in the No-Interface view.
- If you declare static or final in the methods of a Session Bean, such methods are not treated as business methods. When using the No-Interface view, do not invoke such methods from the client.
- If you use the @AroundInvoke annotation in a normal business interface, execution of the business methods results in a deployment error. However, when using the No-Interface view, if you use the @AroundInvoke annotation in a public method, an error does not occur. Such methods are treated as business methods.
- With the standard specifications, you can use the @Remove annotation in business methods. However, if you specify the @Remove annotation in a business method in which the @PreDestroy annotation is also specified, javax.ejb.NoSuchObjectLocalException is thrown, on invoking the method from the client.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.