-
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.
-
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.
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks