[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making the move from Web components to ejb's



Hello fellow members, I'm currently in the process of trying to make
the move from web components to ejb's or to say it better, I'm trying
to get an application server running.

Due to budget restrictions I went with jboss.  I got the server up and
running
and even got my first ejb's deployed.  I couldn't get the built in tomcat
server to
configure correctly though and had to go back to using my original tomcat.

I managed to get a java program client to work accessing my beans plus
a jsp page to access the beans.

Everything sounds pretty good so far huh.  Well not quite.

In order to get them both to work I had to place my ejb's jar file in the
classpath
of my client.  For the java program inside my environment CLASSPATH and
for the jsp in the WEB-INF/lib directory.

My question is.  Is this normal.

For some reason I've got this idea that with RMI the client downloads the
stub
from the server at runtime and shouldn't need the actual object.

for example

HelloWorld.jar contains
	HelloWorldEJB     SessionBean
	HelloWorldHome   EJBHome
	HelloWorld	   EJBObject

HelloWorld.jsp gets the Home interface and calls the create function getting
a stub of HelloWorld which I assume is a wrapper for HelloWorldEJB

for HelloWorld.jsp to work  I have to deploy the jar file into jboss and
also place it in the /webapps/HelloWorld/WEB-INF/lib/ directory.

Hopefully someone understands what I'm trying to say here.  I'm not sure I'm
explaining well.

Thanks
Ashley Jones


*****
"The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material.  Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.  If you received
this in error, please contact the sender and delete the material from all
computers."