Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Spring Implementation of EJB 3.0

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<jee:lookup> ???

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

Mark
 
kishore skipper
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I think she's lovely. It's this tiny ad that called her crazy:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic