On 21 Sep 2005, at 07:41, Poonam wrote:
My comments are marked below with Poonam  **
From: "James Strachan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 20, 2005 8:41 PM
Subject: Re: [servicemix-user] Http GET Request support

Poonam wrote:

I found that the BindingServlet in ServiceMix only supports POST

Request.

Does the Http Binding provided by ServiceMix support GET Request?


It does now :) I've just patchced this in CVS HEAD



Poonam  ** Thanks James for the GET Request feature . I appreciate the
instant support provided.

You're welcome.


One more question. As ServiceMix is using Jetty does it act like a
Servlet container. Can I deploy servlets into the JBI container.
If yes, how?


If you want full control over the servlet engine and to deploy WARs etc, you probably want to deploy the ServiceMix servlet inside a WAR, which
is the simplest way of doing it.

Just deploy the org.servicemix.components.http.SpringBindingServlet in your WAR and it should work now - I've made a few patches in CVS just now.

The process of using the SpringBindingServlet is documented here
http://servicemix.org/HTTP?refresh=1

Basically the servlet uses Spring to find ServiceMix and the HttpBinding
implementation it is meant to use.

There's a demo of this in action in the ServiceMix web application
(servicemix/tooling/servicemix-web) see the above page for details of
how to use it.



Poonam ** I got the SpringBindingServlet ,what I found is that the Servlet uses the HttpBinding which converts the Httprequest into a NMS and then sends it out on the deliveryChannel. It also sends back the Httpresponse.
but I am sorry that the actual purpose is still not clear.
One basic question is that can any Servlet(not ServiceMix Servlet) ,
XYZServlet be hosted inside ServiceMix ( this may be inside a WAR ).

So you've 2 options. You create an embedded Servlet Engine like Jetty and configure/control it however you like - or you use a WAR and any JBI-enabled servlets talk into JBI.


Secondly if this is possible can my JBI components talk to these Servlets?

In what way? A servlet is fired when a HTTP request comes in. A JBI component can perform a HTTP GET/POST which fires the servlet - is that what you mean?


One of my tests did not work yesterday. What I was trying to do is I tried using the HttpInvoker to send a HttpRequest to my XYZServlet residing inside
Tomcat Server. I may be wrong somewhere. but, is this possible?

Yes - absolutely.

We should create an example of doing that...
http://jira.logicblaze.com/jira/browse/SM-68

James
-------
http://radio.weblogs.com/0112098/

Reply via email to