This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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).]


<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling a EJB from JSP in weblogic , please help me fast
 
Similar Threads
Web Services for EJB Session Beans
Assertion failed (Socket closed and FD realsed)
Weblogic 8.1 Custom Tag Reuse Protocol
servlets
Tuning JSP