Re:Re: Camel S3 Issue - Loop for ever

2016-12-04 Thread

Hello , Willem, Thanks for your reply, I am using camel 2.17.3 , My problem is, 
when I start the route using s3 , it will loop for ever (it will consume the 
same file again and again),  is it normal ? or is it a bug ?


Thanks Billy.





At 2016-12-05 12:57:53, "Willem Jiang"  wrote:
>Hi,
>
>Which version of Camel are you using?
>There are some JIRAs[1][2] may relate to the problem.
>
>[1]https://issues.apache.org/jira/browse/CAMEL-8431
>[2]https://issues.apache.org/jira/browse/CAMEL-9784
>
>
>
>Willem Jiang
>
>Blog: http://willemjiang.blogspot.com (English)
>  http://jnn.iteye.com  (Chinese)
>Twitter: willemjiang
>Weibo: 姜宁willem
>
>On Mon, Dec 5, 2016 at 11:15 AM, 孙  wrote:
>
>> Hello,
>>
>>
>> I am using Camel S3 as a consumer to consume files which were stored in
>> AWS S3 Server , But When I start the route ,it will always execute even I
>> added "deleteAfterRead" option , then it will raise an exception, because
>> there is no file left.
>>
>>
>> Source code like this:
>>
>>
>>
>> from("aws-s3:csun-bucket-test" + "?amazonS3Client=#cAWSS3_cAWSConnection_1"
>> + "=abcd.txt")
>>
>> .routeId("s3consumer_cAWSS3_1").process(new org.apache.camel.Processor() {
>>
>> publicvoid process(org.apache.camel.Exchange exchange) throws Exception {
>>
>>
>>
>>
>> BufferedReader br = new BufferedReader(
>>
>> new InputStreamReader((InputStream) exchange.getIn().getBody()));
>>
>> System.out.println("FileName: " + exchange.getIn().getHeader("CamelAwsS3Key")
>> + " Content: "
>>
>> + br.readLine());
>>
>> br.close();
>>
>>
>>
>>
>> }
>>
>>
>>
>>
>> }).id("s3consumer_cProcessor_1").to("log:s3consumer.cLog_1" +
>> "?level=WARN")
>>
>>
>>
>>
>> .id("s3consumer_cLog_1");
>>
>>
>>
>>
>>
>>
>>
>> Is it normal or it is a bug ?
>>
>>
>>
>>
>> Thanks.
>>
>> Billy.
>>
>>
>>


Re: Camel S3 Issue - Loop for ever

2016-12-04 Thread Willem Jiang
Hi,

Which version of Camel are you using?
There are some JIRAs[1][2] may relate to the problem.

[1]https://issues.apache.org/jira/browse/CAMEL-8431
[2]https://issues.apache.org/jira/browse/CAMEL-9784



Willem Jiang

Blog: http://willemjiang.blogspot.com (English)
  http://jnn.iteye.com  (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem

On Mon, Dec 5, 2016 at 11:15 AM, 孙  wrote:

> Hello,
>
>
> I am using Camel S3 as a consumer to consume files which were stored in
> AWS S3 Server , But When I start the route ,it will always execute even I
> added "deleteAfterRead" option , then it will raise an exception, because
> there is no file left.
>
>
> Source code like this:
>
>
>
> from("aws-s3:csun-bucket-test" + "?amazonS3Client=#cAWSS3_cAWSConnection_1"
> + "=abcd.txt")
>
> .routeId("s3consumer_cAWSS3_1").process(new org.apache.camel.Processor() {
>
> publicvoid process(org.apache.camel.Exchange exchange) throws Exception {
>
>
>
>
> BufferedReader br = new BufferedReader(
>
> new InputStreamReader((InputStream) exchange.getIn().getBody()));
>
> System.out.println("FileName: " + exchange.getIn().getHeader("CamelAwsS3Key")
> + " Content: "
>
> + br.readLine());
>
> br.close();
>
>
>
>
> }
>
>
>
>
> }).id("s3consumer_cProcessor_1").to("log:s3consumer.cLog_1" +
> "?level=WARN")
>
>
>
>
> .id("s3consumer_cLog_1");
>
>
>
>
>
>
>
> Is it normal or it is a bug ?
>
>
>
>
> Thanks.
>
> Billy.
>
>
>


Re: problems when call Kafka api

2016-12-04 Thread meng
Hi Willem,

Your are right, the problem is related to my request body. I can post
message to kafka server now.
Thanks for your help!

Meng



--
View this message in context: 
http://camel.465427.n5.nabble.com/problems-when-call-Kafka-api-tp5790965p5790996.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel S3 Issue - Loop for ever

2016-12-04 Thread
Hello, 


I am using Camel S3 as a consumer to consume files which were stored in AWS S3 
Server , But When I start the route ,it will always execute even I  added 
"deleteAfterRead" option , then it will raise an exception, because there is no 
file left.  


Source code like this:



from("aws-s3:csun-bucket-test" + "?amazonS3Client=#cAWSS3_cAWSConnection_1" + 
"=abcd.txt")

.routeId("s3consumer_cAWSS3_1").process(new org.apache.camel.Processor() {

publicvoid process(org.apache.camel.Exchange exchange) throws Exception {




BufferedReader br = new BufferedReader(

new InputStreamReader((InputStream) exchange.getIn().getBody()));

System.out.println("FileName: " + exchange.getIn().getHeader("CamelAwsS3Key") + 
" Content: "

+ br.readLine());

br.close();




}




}).id("s3consumer_cProcessor_1").to("log:s3consumer.cLog_1" + "?level=WARN")




.id("s3consumer_cLog_1");







Is it normal or it is a bug ? 




Thanks.

Billy.




Re: Camel Websockets : NoClassDefFoundError: org/eclipse/jetty/http/ssl/SslContextFactory

2016-12-04 Thread Claus Ibsen
Jetty 9.3 is not supported in that version of Camel. And also not in
the latest release.

You the Jetty version that Camel 2.14.1 is tested and compiled with.

And make sure to use the same Jetty version for all the jetty dependencies.

On Sun, Dec 4, 2016 at 1:29 PM, reddy.janke  wrote:
> Hello Team,
>
> I am trying to expose Camel Websocket component. I am using 2.14.1 version
> of camel. I am attaching POM dependencies as well.
>
> 
> 
> 
>  "websocket://127.0.0.1:8080/test?sendToAll=true" />
>  logName="com.skandha.eim.air" />
>
> 
>
> Exception :
> =
> java.net.URLClassLoader@2626b418
> ] failed; nested exception is java.lang.NoClassDefFoundError:
> org/eclipse/jetty/http/ssl/SslContextFactory
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:157)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:336)
> at
> org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
> at
> org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:87)
> at
> org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:366)
> ... 35 more
> Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/jetty/http/ssl/SslContextFactory
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
> at java.lang.Class.getDeclaredConstructors(Class.java:2020)
> at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:153)
> ... 43 more
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.jetty.http.ssl.SslContextFactory
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
> ... 47 more
>
> POM:
> 
> 
> org.apache.camel
> camel-websocket
> ${camel.version}
> 
>
> 
> org.eclipse.jetty
> jetty-websocket
> 8.2.0.v20160908
> 
>
>
>
> 
> org.eclipse.jetty
> jetty-util
> 9.3.14.v20161028
> 
>
> 
> org.eclipse.jetty
> jetty-io
> 9.3.14.v20161028
> 
>
> 
> org.eclipse.jetty
> jetty-io
> 9.3.14.v20161028
> 
>
> 
> org.eclipse.jetty
> jetty-http
> 9.3.14.v20161028
> 
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Websockets-NoClassDefFoundError-org-eclipse-jetty-http-ssl-SslContextFactory-tp5790976.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Re: Camel body is coming as null to processor

2016-12-04 Thread reddy.janke
Thank you Guys. It is resolved. for me below solution worked perfectly.






--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-body-is-coming-as-null-to-processor-tp5790902p5790977.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel Websockets : NoClassDefFoundError: org/eclipse/jetty/http/ssl/SslContextFactory

2016-12-04 Thread reddy.janke
Hello Team,

I am trying to expose Camel Websocket component. I am using 2.14.1 version
of camel. I am attaching POM dependencies as well. 









Exception : 
=
java.net.URLClassLoader@2626b418
] failed; nested exception is java.lang.NoClassDefFoundError:
org/eclipse/jetty/http/ssl/SslContextFactory
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:157)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:336)
at
org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
at
org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:87)
at
org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:366)
... 35 more
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/jetty/http/ssl/SslContextFactory
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getDeclaredConstructors(Class.java:2020)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:153)
... 43 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.http.ssl.SslContextFactory
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
... 47 more

POM:


org.apache.camel
camel-websocket
${camel.version}



org.eclipse.jetty
jetty-websocket
8.2.0.v20160908





org.eclipse.jetty
jetty-util
9.3.14.v20161028



org.eclipse.jetty
jetty-io
9.3.14.v20161028



org.eclipse.jetty
jetty-io
9.3.14.v20161028



org.eclipse.jetty
jetty-http
9.3.14.v20161028





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Websockets-NoClassDefFoundError-org-eclipse-jetty-http-ssl-SslContextFactory-tp5790976.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Help

2016-12-04 Thread kaiser75
No im using the opensource version of it. I'm looking at the examples from
the camel distibution.  The best I can find is the Restlet CRUD example but
that does not render graphically in the IDE.  


souciance wrote
> If you have bought the license for it I suggest it is better to ask Red
> Hat
> about it.
> 
> In general I think the graphical tool, although quite useful and nice,
> will
> probably require a few versions until it is stable enough for everyday
> use.
> I think there is a graphical mapper also released that you can test. It
> was
> the same for other graphical based tools such as IBM's WMB which didn't
> really because a stable until version 7 and 8.
> 
> I can tell you that once you get familar with the java dsl there isn't
> that
> much code to write. What takes time is knowing how to organize your
> routes,
> increase performance and stuff like that. Those things you would need to
> do
> regardless of which approach you use.
> 
> On Sun, Dec 4, 2016 at 12:40 AM, kaiser75 [via Camel] <

> ml-node+s465427n5790971h64@.nabble

>> wrote:
> 
>> I am doing the simple examples first.  As far the my rest service is
>> considered, it will invoked by one of our internal systems.  I understand
>> that you can code it using the Java DSL but I was trying to avoid it and
>> I
>> wanted to see if I can orchestrate the flow I mentioned graphically using
>> the fuse IDE, I have not had any luck doing it.
>>
>> souciance wrote
>> Hello,
>>
>> Well, how far have you got so far?
>>
>> Basically, Camel in a very simple way tries to make the connection
>> between
>> the sender and receiver as simple as possible and is based on various
>> components. So you have a component for http, another for rest, another
>> for
>> transform and another for rabbitmq. You then have to use these and
>> "connect
>> the dots" to get a fully functioning publisher and consumer. So your
>> consumer can be something like:
>>
>> from("rabbitmq://localhost?yourExchange)
>> .choice()
>>   .when(header("someheader")
>> .isEqualTo("someValue)
>> .to("someendpoint")
>>   .otherwise()
>>   .("someotherendpoint)
>> end();
>>
>> I have not filled in all the parameters for routing key and the
>> subscriber
>> queue. You can find more details on the Camel rabbitmq page.
>>
>> As for your publisher. How will your publisher be triggered? Something
>> needs to trigger that http post.
>>
>> I would say best approach is to not start building your project. Start
>> with
>> a hello world example and then move to more complicated scenarios. Build
>> a
>> simple file transfer example. Just move a file from one folder to
>> another.
>> Once you figured that out you understand the basics and can then move to
>> more complicated scenarios.
>>
>> Best
>> Souciance
>>
>>
>>
>> On Sat, Dec 3, 2016 at 6:47 PM, kaiser75 [via Camel] <
>> [hidden email]
>> http:///user/SendEmail.jtp?type=nodenode=5790971i=0;>
>> wrote:
>>
>> > Hello,
>> >
>> > I'm going thru the camel in action book , its informative but not very
>> > prescriptive.  I'm looking to a build a simple publisher and consumer
>> flow
>> > using the Fuse opensource IDE with minimum coding, but there are so
>> many
>> > ways of doing of what I need but not much clarity on the how to. Can
>> > somebody  please shed some light on it.
>> >
>> > My publisher would be something like this
>> >
>> > http post -> Rest Service -> transform -> write to RabbitMQ
>> >
>> > My consumer is
>> >
>> > Read from RMQ -> Route to other RMQ's based on content
>> >
>> > Any help in guiding me is much appreciated.
>> >
>> > Thanks
>> > Kaiser
>> >
>> >
>> > --
>> > If you reply to this email, your message will be added to the
>> discussion
>> > below:
>> > http://camel.465427.n5.nabble.com/Camel-Help-tp5790968.html
>> > To start a new topic under Camel - Users, email
>> > [hidden email]
>> http:///user/SendEmail.jtp?type=nodenode=5790971i=1;
>> > To unsubscribe from Camel - Users, click here
>> > http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=
>  unsubscribe_by_code=465428=c291Y2lhbmNlLmVxZGFtLnJhc2h0aU
>> BnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
>> > .
>> > NAML
>> >
>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_
> 
> viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.
>> BasicNamespace-nabble.view.web.template.NabbleNamespace-
>> nabble.view.web.template.NodeNamespace=
>> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
>> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml%3E;
>> >
>>
>>
>>
>> --
>> If you reply to 

Re: Camel Help

2016-12-04 Thread kaiser75
I am doing the simple examples first.  As far the my rest service is
considered, it will invoked by one of our internal systems.  I understand
that you can code it using the Java DSL but I was trying to avoid it and I
wanted to see if I can orchestrate the flow I mentioned graphically using
the fuse IDE, I have not had any luck doing it.


souciance wrote
> Hello,
> 
> Well, how far have you got so far?
> 
> Basically, Camel in a very simple way tries to make the connection between
> the sender and receiver as simple as possible and is based on various
> components. So you have a component for http, another for rest, another
> for
> transform and another for rabbitmq. You then have to use these and
> "connect
> the dots" to get a fully functioning publisher and consumer. So your
> consumer can be something like:
> 
> from("rabbitmq://localhost?yourExchange)
> .choice()
>   .when(header("someheader")
> .isEqualTo("someValue)
> .to("someendpoint")
>   .otherwise()
>   .("someotherendpoint)
> end();
> 
> I have not filled in all the parameters for routing key and the subscriber
> queue. You can find more details on the Camel rabbitmq page.
> 
> As for your publisher. How will your publisher be triggered? Something
> needs to trigger that http post.
> 
> I would say best approach is to not start building your project. Start
> with
> a hello world example and then move to more complicated scenarios. Build a
> simple file transfer example. Just move a file from one folder to another.
> Once you figured that out you understand the basics and can then move to
> more complicated scenarios.
> 
> Best
> Souciance
> 
> 
> 
> On Sat, Dec 3, 2016 at 6:47 PM, kaiser75 [via Camel] <

> ml-node+s465427n5790968h71@.nabble

>> wrote:
> 
>> Hello,
>>
>> I'm going thru the camel in action book , its informative but not very
>> prescriptive.  I'm looking to a build a simple publisher and consumer
>> flow
>> using the Fuse opensource IDE with minimum coding, but there are so many
>> ways of doing of what I need but not much clarity on the how to. Can
>> somebody  please shed some light on it.
>>
>> My publisher would be something like this
>>
>> http post -> Rest Service -> transform -> write to RabbitMQ
>>
>> My consumer is
>>
>> Read from RMQ -> Route to other RMQ's based on content
>>
>> Any help in guiding me is much appreciated.
>>
>> Thanks
>> Kaiser
>>
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://camel.465427.n5.nabble.com/Camel-Help-tp5790968.html
>> To start a new topic under Camel - Users, email
>> 

> ml-node+s465427n465428h31@.nabble

>> To unsubscribe from Camel - Users, click here
>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=465428code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=;
>> .
>> NAML
>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=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-Help-tp5790968p5790971.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel JMS XA Client

2016-12-04 Thread dpravin
Hi All,

Requirement - Transacted route, we have to consume messages from MQ queue.
Multiple resources involved, hence use XA transactions. 

Environment - Jboss Fuse 6.2.1, JDK 8, MQ 7.5.0.3

I use following to create the JMSComponent in blueprint and everything works
fine as expected.































With respect to above configuration I created a custom bean that extends
from JMSComponent and tried to create JMS XA connection factory 

1) defined a custom bean com.ai.jms.WmqJmsComponent that extends from
JMSComponent
2) Inside this bean I am instantiating and wiring all above components 

The XA connection works fine when I send the message to MQ, however when I
am using the same connection to consume message from MQ it produces
following warnings/errors in log file,


PooledSession| 189 - org.apache.activemq.activemq-osgi -
5.11.0.redhat-621107 | Caught exception trying close() when putting session
back into the pool, will invalidate.
com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0020: This
session is closed.
n  | An application called a method that must not be used after the session
is closed.
n  | Ensure that the session is not closed before calling the method.
com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0020: This
session is closed.
An application called a method that must not be used after the session is
closed.
Ensure that the session is not closed before calling the method.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.8.0_25]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_25]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_25]
at
java.lang.reflect.Constructor.newInstance(Constructor.java:408)[:1.8.0_25]
at
com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)[357:com.ibm.msg.client.osgi.commonservices.j2se:7.5.0.3]
at
com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:233)[358:com.ibm.msg.client.osgi.jms:7.5.0.3]
at
com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:109)[358:com.ibm.msg.client.osgi.jms:7.5.0.3]
at
com.ibm.msg.client.jms.internal.State.checkNotClosed(State.java:150)[358:com.ibm.msg.client.osgi.jms:7.5.0.3]
at
com.ibm.msg.client.jms.internal.JmsSessionImpl.checkNotClosed(JmsSessionImpl.java:2526)[358:com.ibm.msg.client.osgi.jms:7.5.0.3]
at
com.ibm.msg.client.jms.internal.JmsSessionImpl.setMessageListener(JmsSessionImpl.java:1730)[358:com.ibm.msg.client.osgi.jms:7.5.0.3]
at
com.ibm.mq.jms.MQSession.setMessageListener(MQSession.java:1004)[360:com.ibm.msg.client.osgi.wmq:7.5.0.3]
at
org.apache.activemq.jms.pool.PooledSession.close(PooledSession.java:103)[189:org.apache.activemq.activemq-osgi:5.11.0.redhat-621107]
at
org.springframework.jms.support.JmsUtils.closeSession(JmsUtils.java:108)[215:org.apache.servicemix.bundles.spring-jms:3.2.12.RELEASE_2]
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.clearResources(DefaultMessageListenerContainer.java:1142)[215:org.apache.servicemix.bundles.spring-jms:3.2.12.RELEASE_2]
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1001)[215:org.apache.servicemix.bundles.spring-jms:3.2.12.RELEASE_2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_25]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_25]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]


Appreciate any help to resolve this issue.

Thanks,
Pravin



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


Camel Help

2016-12-04 Thread kaiser75
Hello,

I'm going thru the camel in action book , its informative but not very
prescriptive.  I'm looking to a build a simple publisher and consumer flow
using the Fuse opensource IDE with minimum coding, but there are so many
ways of doing of what I need but not much clarity on the how to. Can
somebody  please shed some light on it.

My publisher would be something like this

http post -> Rest Service -> transform -> write to RabbitMQ

My consumer is 

Read from RMQ -> Route to other RMQ's based on content

Any help in guiding me is much appreciated.

Thanks
Kaiser




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