Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Accessing EJB 2.1 Entity Beans via Spring services

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm new to Spring, and have a basic question regarding Spring-EJB Integration.

I have an application developed using EJB 2.1. The application uses both session beans and entity beans. I have a separate module developed using Spring.

Now I need to access the EJB entity beans through a Spring service.
1) Is this technically possible as far as Spring-EJB Integration support is concerned?
2) If yes, please be kind enough to share any useful resources.

Thanks in advance.
 
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
Yes, you can inject EJBs into your Spring beans. There is a namespace "jee" with tags to lookup remote or local stateless SessionBeans

<jee:remote-slsb id="aSessionBean" business-interface="" jndi-name=""></jee:remote-slsb>

Mark
 
Anuradha Karunamuni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply Mark.

I managed to get the Remote, Local Session beans and Remote Entity bean working. Still struggling with the Local Entity bean injection. Both the EJBs and the Spring services are deployed under the same VM, so accessing the Local Entity bean methods should be theoretically feasible, even though I could not find any online resources to confirm it. Trying to figure it out.

Thanks again ...
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic