O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing the bean from a client

Now it is time to focus our attention to the client. For remote clients, the client project needs to use the Java Class Library project containing the remote interface.

Adding the class library project is very simple, we simply need to right-click on the Libraries node in the project and select Add Project....

Accessing the bean from a client

We then need to select the project we want to add as a library.

Accessing the bean from a client

The Java Class Library project is now added to the Libraries node or our EJB client project.

At this point, we are ready to invoke our EJB method. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required