This week's book giveaway is in the Spring forum.
We're giving away four copies of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 and have Marten Deinum & Iuliana Cosmina on-line!
See this thread for details.
Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring 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
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Webservice & EJB

 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm very new to webservices.
Can i do the following task using webservice ?
I have a set of Ejb's deployed in App server.
I need to create a webservice that calls this & return some thing to client.
Is there any way for a remote client to call the ejb through a web service ?
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by srini vasan:

Is there any way for a remote client to call the ejb through a web service ?



The idea would be to create to a ejb proxy method deployed as webservice.
The proxy method will locate the ejb, invoke the required ejb method and return the ejb generated result to the client(webservice user).
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Balaji Loganathan:


The idea would be to create to a ejb proxy method deployed as webservice.
The proxy method will locate the ejb, invoke the required ejb method and return the ejb generated result to the client(webservice user).



Thanks Balaji,
I have created it by seeing the documentation.
But tell me one thing To access the webservice i'm giving a proxy ( stub ) classes to the client ... that proxy refers to many classes ex: org.apache.soap does it mean that the client shd have these classes in the class path ? Although some hars are available for free download like apache jars some might be copy righted , in that case whats the solution ?
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you need that jars.
If you shipping or redistributing the jars then better check the license file bundled with every package. Apache Axis uses Apache based License which is very flexible and easy to understand.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Balaji Loganathan:
Yes you need that jars.
If you shipping or redistributing the jars then better check the license file bundled with every package. Apache Axis uses Apache based License which is very flexible and easy to understand.



Thanks Balaji..
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic