This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes to Richard Does EJB endpoint involve web container? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "to Richard Does EJB endpoint involve web container?" Watch "to Richard Does EJB endpoint involve web container?" New topic
Author

to Richard Does EJB endpoint involve web container?

Ping Pong
Greenhorn

Joined: Apr 29, 2004
Posts: 3
I try to find the hint about how the EJB endpoint involve web container. I read J2EE WEB Services book, I cann't find the hint, when webservice client access your webservice, client have no knowledge about how you implement your webservice JSE or EJB endpoint, client post soap message to url such as
http://www.xys.com/webservices/test, this is web container or web server, how the request delegate to EJB container, for JBOSS, it's EJB container only, how client can access the webservice by http protocol? Maybe I am only one to warry about that, I knew Weblogic expose stateless bean as webservice, implment as added a servlet to do that( it's weblogic 6.1, two years ago, it's not EJB 2.1).
Your book clear my brain a lot, this is the only question I have, ( except part III UDDI, I can not handle and it's not useful in "my real life")
Thanks !
Ping Pong
Greenhorn

Joined: Apr 29, 2004
Posts: 3
Anybody know ?
Bruno Souza
Greenhorn

Joined: Apr 26, 2004
Posts: 17
Hi Ping Pong,
--> I try to find the hint about how the EJB endpoint involve web container. I read J2EE WEB Services book, I cann't find the hint, when webservice client access your webservice, client have no knowledge about how you implement your webservice JSE or EJB endpoint, client post soap message to url such as http://www.xys.com/webservices/test, this is web container or web server, how the request delegate to EJB container ?
First, the client really don't know how do you implement the web service. It's ok. The url used to send soap messages are normally a alias to one servlet that will dispatch the request. The way that the servlet foward your request is container specific. I work with websphere and the way the things occurs are this (RPC based service request):
1. Client Proxy: Client send SOAP RPC Request
2. RPCRouterServlet: Lookup deployment descriptor with ServiceManager
3. RPCRouterServlet: Pass request to provider (PluggableProvider)
4. PluggableProvider: Invoke service (Service Implementation: EJB,JSE,...)
5. Return response

--> for JBOSS, it's EJB container only,
JBoss works with one web container, normally tomcat or other.
--> how client can access the webservice by http protocol?
I didn't tryed JBoss yet, but I think that it should implement one servlet to dispatch the request. You need one SOAP engine too, it will do the XML-JAVA conversions.

--> Maybe I am only one to warry about that,
Certainly not! I'm working on this issue (discover the secrets) for at least two months!!!
--> I knew Weblogic expose stateless bean as webservice, implment as added a servlet to do that( it's weblogic 6.1, two years ago, it's not EJB 2.1).
Don't know Weblogic...
--> Your book clear my brain a lot, this is the only question I have,
I need to buy the book!!! Everyone is reading it ...
--> ( except part III UDDI, I can not handle and it's not useful in "my real life")
Did you have implemented web services in production enviroment ? How do you expose the service definition ?
I hope that this help,
Sorry about the poor english ...
Bruno.
Ping Pong
Greenhorn

Joined: Apr 29, 2004
Posts: 3
Thank you for rely!
I have developed webservice in production env, and it exposed to partener, we pointed the WSDL url to them, and it's the case.
Ping
Bruno Souza
Greenhorn

Joined: Apr 26, 2004
Posts: 17
Thakns for answering!
I think that we will do the same way, exposing the url of the WSDL.
But we are estabilishing the security constraints to use the service, and SSL isn't enougth.
[]'s
Bruno
 
Don't get me started about those stupid light bulbs.
 
subject: to Richard Does EJB endpoint involve web container?
 
Similar Threads
Webservices Help in WSAD 5 for Beginner
Webservice and remote ejbs
EJB & Webservice
EJB End Point Design?
communicate non java client with java server side components ?