This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring Implementation of EJB 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Implementation of EJB 3.0" Watch "Spring Implementation of EJB 3.0" New topic
Author

Spring Implementation of EJB 3.0

kishore skipper
Greenhorn

Joined: Aug 19, 2009
Posts: 26
Hi All

i am trying to use spring implementation of ejb3.0 and stuck at configuring it in ApplicationContext.xml

Business Interface
HelloService.java


HelloServiceImpl.java


HelloServiceLocal.java

HelloServiceEJB.java

and i have the bean configuration like this



How shoud i give the jndi name to access this bean locally and remotely in applicationContext.xml...is it the same as EJB2.x implementation?


can somebody help me out in this as i could not find any articles on spring implementaion of ejb 3.0?

Thanks


Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

<jee:lookup> ???

Of course you need to add the xsd for the jee context.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
kishore skipper
Greenhorn

Joined: Aug 19, 2009
Posts: 26
Hi Mark,

Thanks for the reply..as i am new to spring i did not follow the spring implementation of ejb concept...

i am using myeclipse and weblogic 10.3 and spring 2.5

can i write spring ejbs in a web application and deploy it to weblogic server or still i need to use seperate ejb project in a EAR?
if yes where should i keep the weblogic deployment descripter?

could you please provide the information?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well, you don't really use Spring to create EJBs. I mean there are classes and apis that your EJBs can implement/extend and they make EJBs that have access to an ApplicationContext. But I feel the cleanest route is creating EJBs and doing lookups and injecting them into your classes as needed.

Now the upcoming Java EE specs might change things.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring Implementation of EJB 3.0
 
Similar Threads
Is it possible to use the wscompile tool from the Command Prompt
Error creating bean with name 'manager';def nested exception is javax.naming.NameNotFoundException:
Bean not passed to web service (SOAP / Apache CXF)
Jboss + Spring + Ejb (Null Pointer Exception Problem)
Recoment the implemented methods?