Calling a Stateful Session bean in NetBeans

30 July 2007

In the previous blog Introduction to stateful session Bean in NetBeans there was information regarding developing stateful session bean. Here we will learn how to make call business methods of a stateful session bean.

  1. Go to the enterprise application where your Session Bean Ejb module exists. Here you need to create a simple Java class, now in this java class Right Click and select Enterprise Resources -> Call Enterprise Bean.
  2. netbeans_31072003.jpg

  3. Following screen will be appeared, which will show you the enterprise beans in IDE,you can select one of these beans.
  4. netbeans_31072004.jpg

  5. Check the option Generate Inline Lookup Code and press OK. IDE will generate the necessary code to call the enterprise bean in Java class as shown below.
  6. netbeans_31072005.jpg

  7. You might need to edit some code in order to call business method of Session Bean. If the invoked EJB is deployed to the server. You can run this Java class to see the results.

del.icio.us:Calling a Stateful Session bean in NetBeans digg:Calling a Stateful Session bean in NetBeans spurl:Calling a Stateful Session bean in NetBeans wists:Calling a Stateful Session bean in NetBeans simpy:Calling a Stateful Session bean in NetBeans newsvine:Calling a Stateful Session bean in NetBeans blinklist:Calling a Stateful Session bean in NetBeans furl:Calling a Stateful Session bean in NetBeans reddit:Calling a Stateful Session bean in NetBeans fark:Calling a Stateful Session bean in NetBeans blogmarks:Calling a Stateful Session bean in NetBeans Y!:Calling a Stateful Session bean in NetBeans smarking:Calling a Stateful Session bean in NetBeans magnolia:Calling a Stateful Session bean in NetBeans segnalo:Calling a Stateful Session bean in NetBeans gifttagging:Calling a Stateful Session bean in NetBeans

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Calling a Stateful Session bean in NetBeans

Leave a Reply