You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "jdev.hari" <jd...@gmail.com> on 2013/03/05 23:25:52 UTC

Camel - ActiveMQ

Hi,

I am trying a simple program to read from a queue and handle it. I have
started active mq locally and is running

===========

	try {
	    CamelContext context = new DefaultCamelContext();
	    context.addComponent("activemq",
		    ActiveMQComponent.activeMQComponent("tcp://localhost:8161"));
	    context.addRoutes(new RouteBuilder() {
		@Override
		public void configure() {
		    from("activemq:queue:TEST").to("file://c:/test");
		}
	    });
	    context.start();
	    while (true) {
	    }
	} catch (Exception e) {
	    e.printStackTrace();
	}
    ===========


I am getting the following error. Any help.

javax.jms.JMSException: Frame size of 1157 MB larger than max allowed 100 MB
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1380)
	at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1466)
	at
org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:503)
	at
org.springframework.jms.listener.AbstractJmsListeningContainer.startSharedConnection(AbstractJmsListeningContainer.java:440)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer.startSharedConnection(DefaultMessageListenerContainer.java:764)

I am unable to figure out the issue.



Thanks,




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-tp5728603.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel - ActiveMQ

Posted by "jdev.hari" <jd...@gmail.com>.
Spot on!

Changing the port fixed the issue.

Thanks


On Tue, Mar 5, 2013 at 6:59 PM, Raul Kripalani [via Camel] <
ml-node+s465427n5728616h40@n5.nabble.com> wrote:

> Port 8161 tends to be the port to access the AMQ Web Console from a
> browser.
> You should make Camel connect to the transportConnector exposed by
> ActiveMQ, which by default listens on port 61616.
> Check the <transportConnector /> element of the AMQ broker XML
> configuration file.
>
> Does this help?
>
> Regards,
> Raúl.
>
> On Mar 5, 2013, at 22:25, jdev.hari wrote:
>
> >    ActiveMQComponent.activeMQComponent("tcp://localhost:8161"));
> >    context.addRoutes(new RouteBuilder() {
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Camel-ActiveMQ-tp5728603p5728616.html
>  To unsubscribe from Camel - ActiveMQ, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5728603&code=amRldi5oYXJpQGdtYWlsLmNvbXw1NzI4NjAzfC0xMTAxNDI0Mzky>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-tp5728603p5728618.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel - ActiveMQ

Posted by Raúl Kripalani <ra...@evosent.com>.
Port 8161 tends to be the port to access the AMQ Web Console from a browser.
You should make Camel connect to the transportConnector exposed by ActiveMQ, which by default listens on port 61616.
Check the <transportConnector /> element of the AMQ broker XML configuration file.

Does this help?

Regards,
Raúl.

On Mar 5, 2013, at 22:25, jdev.hari wrote:

> 		    ActiveMQComponent.activeMQComponent("tcp://localhost:8161"));
> 	    context.addRoutes(new RouteBuilder() {