Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes EJB - Remote or Local (JBoss) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "EJB - Remote or Local (JBoss)" Watch "EJB - Remote or Local (JBoss)" New topic

EJB - Remote or Local (JBoss)

Kumar Saravanan
Ranch Hand

Joined: Aug 25, 2004
Posts: 40
Hi gurus,

Quick question regarding the local and remote interface in EJB?

I am working on an application where we are using EJB's. We generate the necessary interfaces using XDoclet.

We annotated the EJB view-type as "remote" in the class level (Class level annotation will apply to all the business methods, so all the business methods will be viewed as remote from the client).

My coworkers are arguing that if we did not mention anything in the business method then the JBoss will treat them as "local" by default even though we mention the class level annotation as "remote" or not.

Is it true?...

Please assist.

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9960

Not sure, i understood the question right. Whether a local or remote interface has to be used, depends on the client which is doing the lookup. The client can either lookup the local interface or the remote interface.

[My Blog] [JavaRanch Journal]
Don't get me started about those stupid light bulbs.
subject: EJB - Remote or Local (JBoss)
Similar Threads
Doubt in SessionBean contract(ejb 3.0 core)
doubts in @Remote and @Local
From section 4.6.6 of EJB 3.0 Core Specification:
Implementing Interfaces in Bean - Required?
The place where we define Annotations inside the EJB Bean class