Java Reference
In-Depth Information
After adding the client library containing the remote interface for our session bean,
we are ready to invoke our EJB method. The client code needs to obtain a reference
to an instance of a class implementing the remote interface for our bean. When using
NetBeans, this is very easy. We simply need to right-click on the client code ( com.
ensode.sessionbeanintro.Main in the application client project in our example)
and go to Insert Code... | Call Enterprise Bean .
At this point, we are shown a list of all open projects that have EJBs in them; we need
to select the bean we wish to access from one of these projects.
Search WWH ::

Custom Search