This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exposing EJBs as WebServices... WHY ?

 
Sudeep Agrawal
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi :
Could some one tell me what is the purpose of exposing EJBs as webservices ?
I have read much about RPC way of implementing Webservices in Weblogic.

What I donot understand is why epose EJBs as webservices, when you can make a JNDI lookup with the EJB and call it as usual?

I know interoperability is one good reason, but then are there any other PROs for this approach.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JNDI will only work for Java clients, as you point out. But is also uses some non-standard ports which you may not want to open up to the world. Web Services require only port 80 (and/or 443), which are usually open already.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic