In version 1.1 of JSP can an session EJB be called from
a JSP, or do I have to call a Javabean to call the EJB.
I believe I have to call the Javabean.
Discussions
Web tier: servlets, JSP, Web frameworks: Can EJB session beans be called directly from a JSP?
-
Can EJB session beans be called directly from a JSP? (2 messages)
- Posted by: doug mortson
- Posted on: November 24 2000 09:15 EST
Threaded Messages (2)
- Can EJB session beans be called directly from a JSP? by VenuGopal Burra on November 24 2000 13:17 EST
- Can EJB session beans be called directly from a JSP? by Madhavi Gupta on November 28 2000 14:57 EST
-
Can EJB session beans be called directly from a JSP?[ Go to top ]
- Posted by: VenuGopal Burra
- Posted on: November 24 2000 13:17 EST
- in response to doug mortson
Yes U can call the EJB Session Bean from JSP.
Implement same clientcode in JSP.
Import all packages with JSP import tag like this
<%@ page import="javax.ejb.*,javax.naming.*,weblogic.jndi.*,<here your package>.*" %>
<% Environment e=new Environment();
Context c=e.getInitialContext();
sampleHome sh=(sampleHome)c.lookup("here your jndi name which you have given xml file";
sampleRemote sr=sh.create(....); %>
include your extra code.
This will help you.
Ok: Venu Gopal Burra
-
Can EJB session beans be called directly from a JSP?[ Go to top ]
- Posted by: Madhavi Gupta
- Posted on: November 28 2000 14:57 EST
- in response to VenuGopal Burra
Hi,
I'm new to j2ee and i was wondering if somebody can give me one sample each for
i) calling a servlet from jsp
ii) calling a session bean from jsp.
Simple samples like both the servlet and ejb could just be printing "hello world".
Thanks in advance,
sushma