Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservices and J2EE

 
Varun Narula
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do webservices relate to J2EE ?
In the much proclaimed platform SunONE by Sun, there is a lot of talk on webservices. How do they fit into the entire concept?
Thanks,
Varun
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Varun,
IMO Web services is an approach of achieving integration of existing enterprise applications, especially written in J2EE, in most case of different organizations. So Web Services fit well into J2EE.
Moreover, For B2B EAI, Web services is the fastest and cheapest solution.
Regards,
Doug
[ May 08, 2002: Message edited by: Doug Wang ]
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Web Services provides a way to make your business rule available through the internet in a secure and reliable way, and most inportant a standarized manner to do so.
"One of the big promisses of web services is seamless, automatic business integration: a piece of software will discover, access, integrate, and invoke new services from unknown companies dynamically without the need for human intervention. Dynamic integration of this nature requires the combined involvement of SOAP, WSDL, and UDDI to provide a dinamic, standard infrastructure for enabling the dynamic business of tomorrow." (from Java Web Services) book.
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Automatic business integration.
Web services is just something like EDI, which exchanges business data between large companies, but works in a different way - in a cheaper, easier, and more intelligent way.
[ May 08, 2002: Message edited by: Doug Wang ]
 
Varun Narula
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Doug,
Could assume that in an N-tier architecture, the web services would be in the Nth tier ( along with databases, legacy apps etc.) ??
Varun
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Varun,
Since Web Services mainly act as an approach of integrating B2B, I have no idea whether it fits into such N-tier architecture.
Web Services allow us to deploy any existing component made by JavaBeans, CORBA, COM and EJBs as a service via a network. The message sent via network is XML.
Personally I view web service as Client/Server architecture. The service provider acts as Server, and the service consumer as Client. But such position is not immutable, as long as the "consumer" exposes his service.
Maybe these two articles give you more concept on this topic - EAI and Web Services and B2Bi and Web Services.
 
Varun Narula
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Doug,
Thanks for the links. They made for valuable reading.
However, I disagree with you on calling it a Client/Server concept - I feel its far more distributed to make it a simple or even an extended C/S concept. Web services are also thought of being applied to P2P networks which are distinctly difference from the C/S concept in the sense that every node is a server as well as a client. See this link
http://www.webservicesarchitect.com/content/articles/samtani05.asp

Varun Narula
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your recommendation.
Yes, you hit it. I should call it an extended C/S concept, which is quite different from traditional C/S architecture.
The common between P2P and Web services is that both are service-based technology. So both of them have built-in discovery and binding mechanism. But there explicitly are consumers and providers out there in the case of Web Services, becoz web services work in a centralized model.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic