Results 1 to 2 of 2
- 01-15-2009, 08:00 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 4
- Rep Power
- 0
stateless session bean with methods
This is new for me and I am trying to figure out this through netbeans application.
I have to Create a session bean (stateless) with at least 3 methods.
And then Create a servlet which remotely calls all three methods in the session bean?
Any ideas to beggin with?Thanks,:confused:
- 01-15-2009, 08:55 PM #2
Member
- Join Date
- Jan 2009
- Location
- italy
- Posts
- 16
- Rep Power
- 0
Open Netbeans:
click on New EJB Module Project.
click on New Session bean
inside the source code editor representing the session bean created press ALT+INS Select Add Business Method to add one method.
Inside the method write you method source code.
Then Create new web project, inside new servlet.
Press ALT+INS and select call enterprise bean
select you bean and go on!
For a complete example see my blog:
programmaremobile.blogspot.com/2009/01/java-ee-how-to-use-ejb-and-web.html
tell me if you have any problemArticle and examples about Java EE world
http://programmaremobile.blogspot.com
Similar Threads
-
UREGENT-accessing session bean ok but entity bean
By parimal in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-28-2008, 01:34 PM -
[SOLVED] Invoking a Stateful Session Bean as Stateless
By JThangiah in forum Enterprise JavaBeans (EJB)Replies: 3Last Post: 07-17-2008, 09:35 AM -
Stateful Session Bean
By Java Tip in forum Java TipReplies: 0Last Post: 11-29-2007, 12:39 PM -
Stateless Session Bean
By Java Tip in forum Java TipReplies: 0Last Post: 11-29-2007, 12:32 PM -
Calling A Session Bean Using A Web Module
By JavaForums in forum NetBeansReplies: 0Last Post: 07-30-2007, 11:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks