Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2009, 09:00 AM
Member
 
Join Date: Dec 2008
Posts: 4
Rep Power: 0
mihael is on a distinguished road
Default 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,
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-15-2009, 09:55 PM
Member
 
Join Date: Jan 2009
Location: italy
Posts: 16
Rep Power: 0
peppem is on a distinguished road
Default
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 problem
__________________
Article and examples about Java EE world
http://programmaremobile.blogspot.com
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UREGENT-accessing session bean ok but entity bean parimal Enterprise JavaBeans 1 08-28-2008 02:34 PM
[SOLVED] Invoking a Stateful Session Bean as Stateless JThangiah Enterprise JavaBeans 3 07-17-2008 10:35 AM
Stateful Session Bean Java Tip Java Tips 0 11-29-2007 01:39 PM
Stateless Session Bean Java Tip Java Tips 0 11-29-2007 01:32 PM
Calling A Session Bean Using A Web Module JavaForums NetBeans 0 07-31-2007 12:13 AM


All times are GMT +2. The time now is 06:35 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org