• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

How to inject sessionbean local reference in webservice(soap)

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i have a web service which has to expose the session bean which is in same project. for that i need to call that session bean in the web service. i was tried with

but it is not working . please help me to resolve.

regards
Guru...
 
author & internet detective
Posts: 41774
887
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of class is the web service class? You can only inject EJBs in other EJBs or servlets. For a standalone class, you need to do a JNDI lookup the "old fashioned" way.
 
blv krishna
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:What kind of class is the web service class? You can only inject EJBs in other EJBs or servlets. For a standalone class, you need to do a JNDI lookup the "old fashioned" way.



hi,

the web service is stateless session bean!!!

i have another problem that is , in my application i have a generic local/remote interface the all the beans has to implement the same interfaces . i am getting the following error.



sample code



regards
Guru...
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i have another problem that is , in my application i have a generic local/remote interface the all the beans has to implement ...



That's been answered in your other thread here https://coderanch.com/t/470650/EJB-Other-Java-EE-Technologies/java/implementing-same-interface-by-more
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic