• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client view of EJB3.1

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2167
57
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 2167
57
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again Frits
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic