Hi you don't have to use demo if you want to use Rest API (although it's already configured there). Not sure from your snippet what are you trying to achieve? And what error are you getting?
Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Wed, Sep 2, 2009 at 9:51 PM, vezee <[email protected]> wrote: > > If i am adding the below content to activemq.xml .. is it not exposing the > REST interface? > ------- > <transportConnector name="http" uri="http://server1.com:61333"/> > <servlet> > <servlet-name>MessageServlet</servlet-name> > > <servlet-class>org.apache.activemq.web.MessageServlet</servlet-class> > <load-on-startup>1</load-on-startup> > <init-param> > <param-name>destinationOptions</param-name> > <param-value>consumer.prefetchSize=1</param-value> > </init-param> > </servlet> > <servlet-mapping> > <servlet-name>MessageServlet</servlet-name> > <url-pattern>/queue/*</url-pattern> > </servlet-mapping> > ----- > WHY DO WE HAVE TO USE THE "DEMO" FOR REST I/F? > > -vezee > > > James.Strachan wrote: > > > > On 19/12/2007, Rob Davies <[email protected]> wrote: > >> > >> On Dec 19, 2007, at 12:34 AM, marlet wrote: > >> > >> > > >> > Hi, > >> > > >> > I was using the ActiveMQ's REST interface for a project and wrote > >> > about that > >> > in a blog, so if you are interested: > >> > > >> > http://p-st.blogspot.com/2007/12/activemq-and-rest.html > > > > Great stuff - I've added a link to the articles page... > > http://cwiki.apache.org/ACTIVEMQ/articles.html > > > > its a wiki so if you wanna add more articles feel free to edit the > page... > > http://activemq.apache.org/how-do-i-edit-the-website.html > > > > -- > > James > > ------- > > http://macstrac.blogspot.com/ > > > > Open Source Integration > > http://open.iona.com > > > > > > -- > View this message in context: > http://www.nabble.com/Example-using-REST-interface-with-http-post-and-get-tp14408902p25264552.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >
