Re: Camel Help

2020-07-03 Thread Claus Ibsen
Hi

Maybe try to package your apps separated as two .war files with their
own JARs so you dont use shared libs in Tomcat - as that is not a good
practice.

On Mon, Jun 15, 2020 at 7:35 PM Arthur Rubin  wrote:
>
> Hi
> I don't have super, deep experience with Camel but I've been using it very 
> successfully for years.  I have a very simple route that is failing.  The 
> problem below seems to be occurring at the very last step when the message is 
> being written to an MQ.
>
> I have another route running in a separate .war file on the same box and same 
> Tomcat installation which successfully writes to this exact same MQ.  I made 
> sure the pom files are identical so that all the versions of SW are 
> identical.  I checked the two libs folder down under /opt/tomcat/webapps and 
> all the lib versions are the same.  The MQ libs are up in /opt/tomcat/lib and 
> should be shared between the two .war files.  I suspect some sort of 
> classloader issue but I don't know how that could be different across the two 
> .war files.
>
> Any help or insights would be extremely greatly appreciated.
>
> Thanks in advance,
> Arthur.
>
> Here is my version info:
>
> Camel version: 2.15.3
> MQ version: WebSphere MQ 7.5.0.2
> Tomcat version: Apache Tomcat/8.5.9
> Spring version: 5.0.4.RELEASE
> OS:  64 Bit CentOS 7.3
>
> Here is my output and error stack trace:
>
> 2020-06-15 11:15:20,138 INFO  zzzFllRouterForx -  encoding="UTF-8"?> 
>   
> 1
> 414d5120504443353050485331202020135b555eeccf3523
> ZZZ
> ZZZ_PF
> 2020-06-03T15:07:44
> 2020-02-27T19:36:59
>   
>   031507
>   
> 
>   
> XX
>   
>   XX
>   KDTW
>   22R
> 
>   
>   
> Nx 
>   
>   
> 
> 
>   
> 
> 2020-06-15 11:15:20,199 INFO  zzzFllRouterForx - Message has 
> CARRIER_ICAO Header = XXL
> 2020-06-15 11:15:20,209 INFO  zzzFllRouterForx - About to send 
> message to 
> jms:queue:ZZZ.ACARS.UPLINK?connectionFactory=xx1AcarsConnectionFactory
> 2020-06-15 11:15:20,548 INFO  error - Exchange[ExchangePattern: InOnly, 
> BodyType: String, Body:  encoding="UTF-8"?>  1
>
> 414d5120504443353050485331202020135b555eeccf3523
> ZZZZZZ_PF
> 2020-06-03T15:07:442020-02
>
> -27T19:36:59031507  
>   XX  
>   XX  KDTW
>
> 22RNx 
>   ,
>
> CaughtExceptionType: org.springframework.aop.AopInvocationException, 
> CaughtExceptionMessage: AOP configuration seems to be invalid: tried calling 
> method [public abstract javax.jms.Connection
>
> javax.jms.ConnectionFactory.createConnection() throws javax.jms.JMSException] 
> on target [|   com.ibm.mq.jms.MQQueueConnectionFactory  :-
> |   |   XMSC_ADMIN_OBJECT_TYPE :-  17
> |   |   XMSC_ASYNC_EXCEPTIONS  :-  -1
> |   |   XMSC_CLIENT_ID :-  
> |   |   XMSC_CONNECTION_TYPE   :-  1
> |   |   XMSC_CONNECTION_TYPE_NAME  :-  com.ibm.msg.client.wmq
> |   |   XMSC_RTT_DIRECT_AUTH   :-  0
> |   |   XMSC_RTT_PROXY_HOSTNAME:-  
> |   |   XMSC_RTT_PROXY_PORT:-  443
> |   |   XMSC_WMQ_BROKER_CC_SUBQ:-  
> SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_BROKER_CONTROLQ   :-  SYSTEM.BROKER.CONTROL.QUEUE
> |   |   XMSC_WMQ_BROKER_PUBQ   :-  SYSTEM.BROKER.DEFAULT.STREAM
> |   |   XMSC_WMQ_BROKER_QMGR   :-
> |   |   XMSC_WMQ_BROKER_SUBQ   :-  SYSTEM.JMS.ND.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_CCDTURL   :-  
> |   |   XMSC_WMQ_CF_DESCRIPTION:-  
> |   |   XMSC_WMQ_CHANNEL   :-  AST.SVRCONN
> |   |   XMSC_WMQ_CLEANUP_INTERVAL  :-  360
> |   |   XMSC_WMQ_CLEANUP_LEVEL :-  1
> |   |   XMSC_WMQ_CLIENT_RECONNECT_OPTIONS  :-  0
> |   |   XMSC_WMQ_CLIENT_RECONNECT_TIMEOUT  :-  1800
> |   |   XMSC_WMQ_CLONE_SUPPORT :-  0
> |   |   XMSC_WMQ_CONNECTION_MODE   :-  1
> |   |   XMSC_WMQ_CONNECTION_NAME_LIST_INT  :-
> |   |   |   0  :-  144.9.57.94(5120)
> |   |   XMSC_WMQ_CONNECTION_TAG:-  [B@33eaacb0
> |   |   XMSC_WMQ_CONNECT_OPTIONS   :-  0
> |   |   XMSC_WMQ_HEADER_COMP   :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_LOCAL_ADDRESS :-
> |   |   XMSC_WMQ_MAP_NAME_STYLE:-  true
> |   |   XMSC_WMQ_MAX_BUFFER_SIZE   :-  1000
> |   |   XMSC_WMQ_MESSAGE_RETENTION :-  1
> |   |   XMSC_WMQ_MESSAGE_SELECTION :-  0
> |   |   XMSC_WMQ_MSG_BATCH_SIZE:-  10
> |   |   XMSC_WMQ_MSG_COMP  :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_OPT_PUB   :-  false
> |   |   XMSC_WMQ_OUTCOME_NOTIFICATION  :-  true
> |   |   XMSC_WMQ_POLLING_INTERVAL  :-  5000
> |   |   XMSC_WMQ_PROCESS_DURATION  :-  0
> |   |   XMSC_WMQ_PROVIDER_VERSION  :-  unspecified
> |   |   XMSC_WMQ_PUB_ACK_INTERVAL  :-  25
> |   |   

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.


Re: Camel Help

2016-12-03 Thread souciance
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+s465427n5790971...@n5.nabble.com> 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] >
> 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] 
> > To unsubscribe from Camel - Users, click here
> >  unsubscribe_by_code=465428=c291Y2lhbmNlLmVxZGFtLnJhc2h0aU
> BnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> > .
> > NAML
> >  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>
> 
> >
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Camel-Help-tp5790968p5790971.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> 

Re: Camel Help

2016-12-03 Thread souciance
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+s465427n5790968...@n5.nabble.com> 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+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> 
> .
> NAML
> 
>




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

Re: [ camel ] Help required for simple transactional Route for forwarding messages from ActiveMQ to TCP port

2011-02-16 Thread Marcin Cylke
On 02/16/2011 01:58 PM, Tom Howe wrote:
 Hi, I'm new to Camel and I am trying to create a simple app that consumes
 messages from an ActiveMQ queue and forwards them to a TCP port (splunk). If
 the TCP connection is down I want the message left on the queue and retried
 with expontential backoff.
 
 I've been trying to understand the TransactionClient page but I find that
 whatever I try, if I raise an exception or I give it an invalid destination,
 camel retries to send 5 times and then then gives up and removes the message
 from the queue.

Hi

I've managed to do this with a little help from servicemix-jms endpoint
- since I'm deploying that component in Servicemix container. You can
find some info on that here:
http://mcl.jogger.pl/2011/01/17/jms-redelivery-with-activemq-and-servicemix/

However I've been searching for a Camel only approach for this problem
and would be happy to hear others oppinions.

Regards
Marcin