The EJB Itegrated with a JSP page.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: The EJB Itegrated with a JSP page.

  1. #1
    Vikas Guest

    The EJB Itegrated with a JSP page.


    I am running my JSP on Weblogic 5.1.0
    Can I call an EJB from my JSP page????
    If yes, How? or any ideas where can I find reference regarding these things.
    TIA.


  2. #2
    Ruchi Dhar Guest

    Re: The EJB Itegrated with a JSP page.


    You can call EJB from any client java application. Import the EJB packages
    along with javax.rmi. Get the reference of the EjbHome object throught jndi
    lookup and narrow it through PortableObject. You can look samples of any
    EJB client code. You can use EJB's from the JSP pages.

    "Vikas " <Vikas.Arora@gmx.co.uk> wrote:
    >
    >I am running my JSP on Weblogic 5.1.0
    >Can I call an EJB from my JSP page????
    >If yes, How? or any ideas where can I find reference regarding these things.
    >TIA.
    >



  3. #3
    Zubeir Syed Guest

    Re: The EJB Itegrated with a JSP page.


    You can call EJB objects, namely session or
    entity beans from the JSP page. It is no
    different from calling the EJ-beans from
    JavaBeans. Follow the same procedure:
    - do a lookup using JNDI
    - get an access to remote.
    - call the specific setter/getter member services.

    To start with, just copy the code from a working
    JavaBean into a JSP page & you should be allset.

    Note, however that using EJ-objects thru JSP is
    not scalable. It may have connection pooling
    problems even for a mid-size app.

    -z


    "Ruchi Dhar" <rdhar@verticalnet.com> wrote:
    >
    >You can call EJB from any client java application. Import the EJB packages
    >along with javax.rmi. Get the reference of the EjbHome object throught

    jndi
    >lookup and narrow it through PortableObject. You can look samples of any
    >EJB client code. You can use EJB's from the JSP pages.
    >
    >"Vikas " <Vikas.Arora@gmx.co.uk> wrote:
    >>
    >>I am running my JSP on Weblogic 5.1.0
    >>Can I call an EJB from my JSP page????
    >>If yes, How? or any ideas where can I find reference regarding these things.
    >>TIA.
    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center