activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cristisor <>
Subject Re: Using BlobMessage with ActiveMQ inside ServiceMix
Date Thu, 20 Jun 2013 08:22:58 GMT
I managed to deploy a component bean like this:
<beans xmlns:bean="">
  <bean:endpoint service="test:service" endpoint="endpoint"
  <bean id="jettyServer" class=""/>

and inside I start a Jetty server:

import org.mortbay.jetty.webapp.WebAppContext;
import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Handler;
import org.mortbay.jetty.Server;
import javax.annotation.PostConstruct;

 * A simple bootstrap class for starting Jetty in your IDE using the local
web application.
 * @version $Revision: 356269 $
public class JettyServer {

    public static final int PORT = 8080;

    public static final String WEBAPP_DIR = "src/webapp";

    public static final String WEBAPP_CTX = "/";

        public void main() throws Exception {
        int port = PORT;
        System.out.println("Starting Web Server on port: " + port);
        Server server = new Server();
        SocketConnector connector = new SocketConnector();
        WebAppContext webapp = new WebAppContext();
        server.setHandlers(new Handler[] { webapp });
        server.setConnectors(new Connector[] { connector });

When I deploy it in hotdeploy I see the component starting:
2934081 [Timer-2] INFO org.mortbay.log - Started

but I still can't upload blob messages because it complains that the PUT
method is not supported.

So do I need a fully operational web server? 

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message