File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Bindings file in EJB 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Bindings file in EJB 3.0" Watch "Bindings file in EJB 3.0" New topic

Bindings file in EJB 3.0

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 219
Hi Ranchers,

Currenlty i am working on an enterprise project including ejb 3.0 and web. In EJB we are having both session beans and message driven beans.
Using IDE , we developed session beans and local business interfaces extended by session beans. Using annotations we have done it.
sample example of session bean:

local business interface:

In Facade Bean, i am accessing session bean like this:

and in ejb 3, ejb-jar.xml file is optional. and i am not configuring session beans at any other place like ibm-ejb-jar-bnd.xml..Is it required my sessionbeans to be configured in ibm-ejb-jar-bnd.xml file? please check my configuration and if any other configuration required, please tell me.

More over, what is the use of ibm-ejb-jar-bnd.xml file?

Vipul Kumar

Vipul Kumar
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33106

I'm not sure if it is required, but the JNDI name has to be specified somewhere. If it isn't in the bindings file, it needs to be somewhere else.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 219
Binding file is required. we configure ejb and mdb resources in ibm-ejb-jar-bnd.xml file..

Thanks to Google...

I agree. Here's the link:
subject: Bindings file in EJB 3.0
It's not a secret anymore!