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 modify it to return the string echoing: concatenated with the parameter that
was passed.
At this point, we have a simple but complete stateless session bean, which is ready
to be accessed from the client code.
Accessing the bean from a client
Now, it's time to focus our attention on the client. For remote clients, the client
project needs to use the Java Class Library project containing the remote interface;
this is the reason we created a Java Class Library project earlier in the chapter and
added it to the client project.
Search WWH ::

Custom Search