NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Question about intended access to EJB Beans by interface contract.

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Zachary1234



Joined: 08 Nov 2008
Posts: 178

PostPosted: Fri Jun 19, 2009 1:31 am    Post subject: Question about intended access to EJB Beans by interface contract. Reply with quote

As I understand,

One uses an InitialContext.lookup,
with an Application Server'sEJB - JNDI registered
name for an enterprise java bean, [b]with an appropriate interface name[/b] in order to reference/use the bean.

I am familiar with the design pattern/anti-pattern "extreme coupling",
where an interface type is returned by a method
which has implemented interface methods from an inner class.

The notion with
EJB application access would stipulate
you only ever deal with a bean's
JNDI name and interface names,
never the core implementation class.

-Does JBoss and other servers
conceal the name of the core bean
class itself,
such that a correctly initialised
(set with properties)
InitialContext.list()
will NEVER return the class file name?

-is the Bean implementation
class intentionally kept invisible,
accessable only by bean interfaces?

-If not, what may one do within the bean
to acheive this?

I ask here, since the JBoss response
is somewhat confusing.
Back to top
Zachary1234



Joined: 08 Nov 2008
Posts: 178

PostPosted: Tue Jun 23, 2009 3:04 am    Post subject: Reply with quote

Don't worry, the SUN EJB 2.1/3.0 EJB Specification has answered my qestion!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo