Hi there,

I read in my EJB book that CTM's require vendor specific JDNI properties. I
thought EJB was platform/vendor independent? What are these JNDI properties
for? More importantly..when/why are they used? I see in the example EJB's
with Orion that they all have a jndi.properties file, yet I am not quite
sure how to understand them.

I can say this..I tried getting one EJB from another EJB and I kept getting
RemoteException (or maybe it was NamingException). I may have had the
ejb-jar.xml file wrong..but I don't think so. I checked it several times and
did it exactly as the examples do, so I can't see how come in my one EJB
when I did a context.lookup("java:comp/env/ejb/EJBName") it kept giving me
NamingException. Is it because in an EJB that uses another EJB you must use
the JNDI properties for the context or something?

Anyways..I need to get Entity beans working using JDBC 2.0 (DataSource) so
that I can easily plug in any database I want (if thats even possible).

Thanks.


Reply via email to