> I solve this by including all the uses
> remote and home interfaces in the jar file.
> Is there any other way? Or does JBoss only find
> classes in lib/ext and the current JAR-file?
Yes, IIRC it should be possible with an ejb-link. Check out the DTDs and instructions for ejb-jar.xml and jboss.xml.
I would advise against using the lib/ext "trick".
It is a slippery slope.
If you are only interested in deploying to a single
JBoss instance or not writting portable EJBs then
so be it.
When JBoss 3.0 arrives with clustering, this "trick"
may not be so handy. You will have to put your jar(s)
in every nodes lib/ext. If you deploy as you
described with necessary dependent Home and Remotes
you can be deploy on ANY one node and have visibility.
Works that way with clustered WebLogic and WebSphere
and should work when clustering happens in 3.0...