JAVA - importing EJB from a vendor

Patt

Diamond Member
Jan 30, 2000
5,288
2
81
I am pretty much a noob when it comes to Java, but I'm on a project that requires me to make use of a 3rd party vendors EJB (Enterprise Java Bean). I have their software up and running on a server, (where the .jar archive is also located), and would like to be able to access the bean through my program on another computer.

If anyone could point me in the right direction, or to a tutorial (I've searched but found nothing too useful), I'd appreciate it!

Thanks!
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
That'll depend on the app server that you are running the bean in, I think (I'm not an expert here). The basic idea is that the app server will expose a jndi server on some port and you use a client to connect to that port (not sure if it's a generic protocol or vendor specific, I suspect vendor specific though), retrieve a reference to the bean through the jndi and use it. I think you need the remote home interface on the client-side as well (and maybe something else, all the work I've done on this sort of thing has been nicely masked by code generators).

I hope that can get you started, as I obviously haven't given you any definitive answers :(
 

znaps

Senior member
Jan 15, 2004
414
0
0
You should be able to inspect the EAR file on the server (open it in WinZip or something) and check the XML config files inside that (e.g. application.xml, ejb-jar.xml ) for clues on how the services are deployed.