• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exposing EJB methods to soap  RSS feed

 
Po-yu Chien
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, I`d like to mention that I`m a newbie in web services, so don`t laugh out too loudly to my may-be-silly assumption:-)
I`ve visited apache soap project site, read some document, and got some conclusion: if soap toolkit is meant to expose an ordinary java class method, can it be used to expose a ordinary
SLSB method? But what should be exposed? remote/local home or the bean class? Or another alternative: wrap SLSB in a java bean, and expose java bean methods.
I`m really curious about how can developer deploy their own EJB as soap services... Some insight?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The apache soap toolkit allows you to expose the remote methods of your SSB's as SOAP messages. I believe that there's an example of this.
BTW, what app server are you using? The major vendors (BEA and IBM) provide special tooling to make this easier.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Ragu Sivaraman
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Po-yu Chien:
First of all, I`d like to mention that I`m a newbie in web services, so don`t laugh out too loudly to my may-be-silly assumption:-)
I`ve visited apache soap project site, read some document, and got some conclusion: if soap toolkit is meant to expose an ordinary java class method, can it be used to expose a ordinary
SLSB method? But what should be exposed? remote/local home or the bean class? Or another alternative: wrap SLSB in a java bean, and expose java bean methods.
I`m really curious about how can developer deploy their own EJB as soap services... Some insight?

Apache has a very modular way of enabling your ejb's as a websvcs.. You can leave you ejb's hosted on your appserver and use/modify Apache RPCrouterservet so that ejb remote methods can be published for the webservices...
Like kyle mentioned, almost all of the appservers have options to enable ejb's as websvcs.. But care must be taken that some of the implementations are proprietary.. (not purely apache..)
Ragu
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!