Monday Jan 11, 2010

4 Pics Showing How to Reuse an EJB in a NetBeans Platform Application!

I went through the Java EE Application Client on top of the NetBeans Platform Tutorial document today. Aside from outdated screenshots, it all seemed to work as advertized.

The idea is that you have an EJB like this:

Then, as a bridge between the Java EE world and the NetBeans Platform world, you have an application client that exposes the EJB and starts up the NetBeans Platform application...

...which contains a NetBeans module that consumes the EJB via the application client:

Once all the NetBeans Platform JARs are on the classpath of the application client, as described in the abovementioned document, you can simply run it. And the result is as follows:

Once you have your application client as described in the abovementioned document, you can do some more experimentation with calling the EJB, as described here. Reuse of existing EJBs should be pretty sweet following this approach!

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« January 2010 »
SunMonTueWedThuFriSat
     
2
4
9
10
16
20
22
      
Today