Hi,
Can I assume that you are storing a reference to an
EJB in the Http Session?
I'm not sure that this is good practice since it is effectively a remote object. You are advised not to store any references to other system resources such as database and network connections in the session and this probably holds for EJBs. Maybe someone else could comment?
What type of EJB is it? Session or Entity? If it is a session bean then why do you need to store a reference to it in the session? Particularly if it is a Stateless session bean, the EJB doesn't store state so it seems pointless to try and store it in the session - just look it up each time?
Regarding classpath - you can set the manifest classpath of a Jar to refernce other Jars or classes - one way of doing this is to have all common classes in the application in a Common.jar file and have all EJBs and WARs reference this common jar. However, I don't think this is the solution you require.
Cheers,
Steve