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

Access a web service from a j2ee component

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Say we have a complex J2ee application which is running in a J2EE container. Which consists of all sorts of components such as jsp, servlets, stateless session beans, entity beans, MDBs etc. Some part of this application needs to access a web service running on a differrnt machine. What is the best way of doing this?. My main concern is accessing external web serive ultimately involves socket calls and it is not recomneded to initiate socket calls from a J2EE application.
 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dasun,

With web services, I am quite sure you as a developer do not have to work with sockets directly. It is utilizing SOAP over http/https. In my opinion you should be able to invoke a web service from your Servlet, EJB or MDB's. You can checkout the web services tutorial from java.sun.com for some samples and tutorial.
[ December 25, 2007: Message edited by: Shailesh Kini ]
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic