Hi, i'm absolutely new to ejb, so this is a silly question. I can access the EJBs from web container using @EJB annotation. But, when i try to use JNDI, the server log shows that the JNDI name does not exist. I'm using glassfish. Can somebody tell me how the default jndi names are used in glassfish, and how i can modify and assign custom jndi names?
SCJP 1.5, SCWCD 1.4, SCBCD 5.0 It's the attitude, and not the aptitude, that determine one's altitude in life.
then when you look up for the bean in the client provide the code as follows.
where RemovableRemote is the Remote Interface, Removable is the mapped name.
I know this may be laughable but I'm also very new at this. Do I need to import the EJB application in the client application i.e have the .ear? If not, how is class "RemovableRemote" visible to the client at compile time? I understand how it works for local client since they'll be sharing the same JVM, but for remote I'm really confused.