It should be possible to connect to WebLogic's JNDI and get a reference to the EJB provided you have the EJB client classes in your classpath. You'd need to create a Hashmap containing information on how to connect to the WebLogic JNDI with such entries as 'java.naming.factory.initial' identifying the factory class WebLogic needs to use (which would also have to be in your classpath), one for the URI to connect to, etc. You would then pass this Hashmap as a parameter to the constructor for javax.naming.InitialContext. Once you have this context,
you should be able to use it to find your EJB's home class and from there get an instance of the EJB itself.