GeeCON Prague 2014*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Client view of EJB3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Client view of EJB3.1" Watch "Client view of EJB3.1" New topic
Author

Client view of EJB3.1

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi,
I have an EJB defined like this and I see JNDI bindings on my Jboss7.1 application server console.

Business Interface - ICounter.java



Singleton Bean class








I understand the first four JNDI names are related to Remote client view. Also, the last three are related to no-interface view? But, how are they bound? I have not specified @LocalBean on my bean class.


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1687
    
  25

No, they are all related to the remote view as well. Note that the part behind the exclamation mark is optional ( interface) and only is only needed when the bean name is not enough to specify the EJB.


Regards,
Frits
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Thanks Frits.

That means if there is more than one view associated with a bean, then we may not see this?

Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1687
    
  25

Then we will see only those JNDI names with explicit interfaces. If you add @LocalBean to your DeletableBean for instance you won't see this:
but you will see something like this:

The JNDI "java:global/ActionBazaarEar/ActionBazaar/DeletableBean" cannot be used as there are two different client views to it.

Regards,
Frits
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Thanks again Frits
 
GeeCON Prague 2014
 
subject: Client view of EJB3.1