This is of course very subjective, but I would recommend that your JSPs not
talk directly to an EJB. Can be done, obviously, as JSPs can contain any
Java code. But JSPs are meant as a presentation layer. I would recommend
you use a simple Java Bean (like the interest client) to talk with the EJB,
then have your JSP instantiate the client bean. That way (1) your JSP
developers don't need to know about EJBs, how to connect with them, etc, and
(2) the JSP code can talk to the client bean as though everything were
taking place locally. This approach let's your creative people focus on
presentation, while your developers focus on the business logic, and also
gives you more location independence. If you use this approach, you've
already got an interest client in the sample code.
----- Original Message -----
From: "Vishal Chawla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 3:04 PM
Subject: [JBoss-user] Using JSP with JBoss
> Hello,
> I am working with the first example (Interest ejb ) in the documentation.
> Instead of the Java application calling the ejb method, I have a simple
ejb
> that invokes the method and displays the result. My question is how can I
> use this JSP. I am not clear about the structure of the ejb "jar" file,
the
> web "war" file and the application "ear' file. What goes into each?
>
> If I load the jsp file (located in the webapps directory of tomcat) in the
> browser, it does not compile because it cannot find the interest ejb
> classes.
>
> Looking for help,
> --vishal
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user