Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
santosh vashist
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic