• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

JAVA - importing EJB from a vendor

Patt

Diamond Member
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!
 
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 🙁
 
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.
 
Back
Top