wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes calling a EJB from JSP in weblogic  , please help me fast Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "calling a EJB from JSP in weblogic  , please help me fast" Watch "calling a EJB from JSP in weblogic  , please help me fast" New topic
Author

calling a EJB from JSP in weblogic , please help me fast

santosh vashist
Greenhorn

Joined: May 14, 2001
Posts: 25
Hi all
I want to call an EJB(which is deployed) from a JSP page in weblogic , can any one please give an detailed steps for, how to do this.
thanks in advance
sans
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
Santosh,
The steps for calling EJB deployed in any AS would be as follows.

    [list]Set up the environmental properties specific to your container

    [/list][list]Create a InitialContext using the environmental settings.

    [/list][list]Get the reference (factory) of your HomeObject

    [/list][list]Use the HomeObject factory to create the EJB Object

    [/list][list]Call any of your business methods using the EJBObject reference.

    [/list]
    Also, note that most like BEA would be using RMI-IIOP protocol.In that case,Step 3 might change to :

    Hope this helps,
    Sandeep
    [This message has been edited by Desai Sandeep (edited May 26, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: calling a EJB from JSP in weblogic , please help me fast