Java Reference
In-Depth Information
After entering the appropriate information, the method is added both to the bean
and its remote interface.
The default implementation will simply return null . For this simple example we
will simply modify it to return the parameter that was passed, prepending it with the
string "echoing: " .
At this point we have a simple, but complete, stateless session bean.
Accessing the Bean from a Client
Now it is time to focus our attention on the client. The client 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 select Enterprise Resources | Call Enterprise Bean .
 
Search WWH ::




Custom Search