Results 1 to 2 of 2
  1. #1
    mihael is offline Member
    Join Date
    Dec 2008
    Posts
    4
    Rep Power
    0

    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,:confused:

  2. #2
    peppem is offline Member
    Join Date
    Jan 2009
    Location
    italy
    Posts
    16
    Rep Power
    0

    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

Similar Threads

  1. UREGENT-accessing session bean ok but entity bean
    By parimal in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-28-2008, 02:34 PM
  2. [SOLVED] Invoking a Stateful Session Bean as Stateless
    By JThangiah in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 07-17-2008, 10:35 AM
  3. Stateful Session Bean
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-29-2007, 01:39 PM
  4. Stateless Session Bean
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-29-2007, 01:32 PM
  5. Calling A Session Bean Using A Web Module
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 07-31-2007, 12:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •