Re: Camel instanciated as null

2017-03-27 Thread mtod09
I cleaned this up a bit it loads without any errors but does not run anyone
have any ideas why this would fail?

 
http://www.osgi.org/xmlns/blueprint/v1.0.0";
   xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0";
  
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";>
   




















 
 


http://camel.apache.org/schema/blueprint";>   





/km:FMIMessage/km:Header/km:Route/text()


Route1



org.apache.camel.ValidationException


${exception.message}













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


Re: Camel instanciated as null

2017-03-29 Thread mtod09
In JMX I get no entries for this Camel route others work fine that do not use
Artemis.
Log's give me no errors.

I'm getting this from the karaf webconsole seems that the
org.apache.activemq can't be resolved.

ESBRoute23.xmlESBRoute23.xml
Symbolic Name   ESBRoute23.xml
Version 0.0.0
Bundle Location blueprint:file:/opt/apache-karaf-4.1.0/deploy/ESBRoute23.xml
Last Modification   Wed Mar 29 20:19:18 UTC 2017
Start Level 80
Imported Packages   org.apache.activemq -- Cannot be resolved
org.apache.activemq.artemis.jms.client from
org.apache.activemq.artemis-server-osgi (84)
org.apache.camel.builder from org.apache.camel.camel-core (277)
org.apache.camel.component.jms from org.apache.camel.camel-jms (282)
org.apache.camel.processor from org.apache.camel.camel-core (277)
Manifest HeadersBundle-ManifestVersion: 2
Bundle-SymbolicName: ESBRoute23.xml
Bundle-Version: 0.0.0
DynamicImport-Package: *
Import-Package: org.apache.activemq, org.apache.activemq.artemis.jms.client,
org.apache.camel.builder, org.apache.camel.component.jms,
org.apache.camel.processor
Manifest-Version: 2



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


Re: Camel instanciated as null

2017-03-30 Thread mtod09
Hmm I'm using org.apache.camel.processor.RedeliveryPolicy should this be
something else?

Mike



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


Re: Camel instanciated as null

2017-03-30 Thread mtod09
I tried removing the redelivery policy and no change still not executing the
route.

Mike



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


Re: Camel instanciated as null

2017-03-30 Thread mtod09
Thanks Quinn,

This xml is imported by Karaf using the deploy folder so I'm not sure if the
package, bundle fit's this process.

Mike



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


RE: Camel instanciated as null

2017-03-31 Thread mtod09
I’m using Artemis 2.0 and Karaf 4.1.0 doing a quick search I did not see any 
import in the Artemis MANIFEST.MF files.

From: Quinn Stevenson [via Camel] 
[mailto:ml-node+s465427n5796787...@n5.nabble.com]
Sent: Friday, March 31, 2017 8:06 AM
To: Mike Tod 
Subject: Re: Camel instanciated as null

You’re absolutely correct about the bundle import - if you’re loading the 
blueprint via the deploy folder, Karaf is creating a bundle for you based on 
what it sees in the Blueprint.

If you’re still seeing the same resolution error (about the org.apache.activemq 
package) look at the MANIFEST.MF for the Artemis bundle you’re using and see if 
it happens to be importing the org.apache.activemq package.  BTW - what version 
of Artemis are you using?

> On Mar 30, 2017, at 4:39 PM, mtod09 <[hidden 
> email]> wrote:
>
> Thanks Quinn,
>
> This xml is imported by Karaf using the deploy folder so I'm not sure if the
> package, bundle fit's this process.
>
> Mike
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-instanciated-as-null-tp5796043p5796760.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-instanciated-as-null-tp5796043p5796787.html
To unsubscribe from Camel instanciated as null, click 
here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5796043&code=bXRvZEB0aGV0b2RzLm5ldHw1Nzk2MDQzfC0xOTk3ODExNDM0>.
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-instanciated-as-null-tp5796043p5796794.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Camel ActiveMQ JMS Calls using SSL

2017-05-18 Thread mtod09
I'm trying to setup a Camel route to a Secured ActiveMQ server over SSL +
JMS.

I have setup connections using other technologies can this be done with
Camel?

If so is there an example available?

Thanks

Mike



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


Re: AW: Camel ActiveMQ JMS Calls using SSL

2017-05-18 Thread mtod09
Thanks this helps.

What I'm looking for is a Java Camel Client example using JMS SSL ie
ssl://broker:61617
Note: I'm using SpringBoot for creating a Camel Microservice for AWS I'll
need to have all the connections run over SSL.

Example:

@Component
public class ESBRoute1 extends RouteBuilder {

private String validatorStr =
"validator:http://x-dev.xx.com/messaging/esb/ESBMessageV3.xsd";;
private String namespaceStr = "http://x.x.com/messaging/esb";;

 @Override
public void configure() throws Exception {

from("activemq:queue:esb.*")
.doTry()
.to(validatorStr)
.setHeader("Route1",
xpath("/km:FMIMessage/km:Header/km:Route/text()",String.class).namespace("km",namespaceStr))
.setHeader("FMIHeader",
xpath("/km:FMIMessage/km:Header").namespace("km",namespaceStr))
   
.recipientList().header("Route1").delimiter(",").convertBodyTo(String.class)
.log(LoggingLevel.DEBUG,simple("Full Message Sent:\r\n
${body}").toString())
.log(LoggingLevel.INFO,simple("Header Message:\r\n
${header.FMIHeader}").toString())
.end();
}
}



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


Camel routing based on an xpath value in an XML message.

2014-03-31 Thread mtod09
I would like to perform a Camel route based on an xpath value in an XML
message.

The XML Message example:



1
Event
App1
topic.A
AppA




ActiveMQ example:

http://camel.apache.org/schema/spring";>

 






Is it possible to query the XML using an xpath expression to return the
destination value to a variable then use that to define the to uri?

Thanks

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp5749578.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
I'm having a problem getting the value from the Dest Element and using it in
the recipient list.
I don't get any errors but the message does not show up in the topics.

I'm using an input queue "activemq:queue:queue.ESB.incoming" then it should
route to 2 topics based on the Dest values.

XML Message example:



Pipeline
1.1
topic:trftracking, topic:test





ActiveMQ.xml :

http://camel.apache.org/schema/spring";>



/Header1/Dest




Note: I'm using ActiveMQ 5.9




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp5749578p5749629.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
Thanks for the update.

I'm still have issues updating the header.

http://camel.apache.org/schema/spring";>


 

/Header1/Dest/text()





I tried setting the header but when I run this I don't get the correct
value.
Only the to uri is set.

I tried using a different header name "Route1" but that did not work.

Thanks

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp5749578p5749640.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel routing based on an xpath value in an XML message.

2014-04-01 Thread mtod09
I was able to get this to work using the following:

ActiveMQ XMl:

http://camel.apache.org/schema/spring";>


 
/FMIMessage/Header1/Dest/text()


Route1




Message:



Pipeline
1.1
activemq:topic:trftracking




Thanks for the insight.

Mike





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-routing-based-on-an-xpath-value-in-an-XML-message-tp5749578p5749642.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Recommend a platform for running Camel

2017-03-12 Thread mtod09
I have been running ActiveMQ and Camel for a few years now.
Our organization is in the process of growing to multi locations across the
globe.
We are in the process of developing a microservice and agile AWS / docker
environment.

I have been looking at Servicemix but the community seems not as focused as
it was in the past.

What would be a good framework to support Camel microservices & Activemq
multi regional model in a multi location environment?

Some of what I have been looking at has been Fabric8, Karaf,  Kubernetes and
docker. I know it would be most likely a combinations but I was hoping I
could get some feed back from the community on what the trend is so I don't
spend to much time focusing on outdated approaches. 

Thanks for the help.

Mike





--
View this message in context: 
http://camel.465427.n5.nabble.com/Recommend-a-platform-for-running-Camel-tp5795331.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Recommend a platform for running Camel

2017-03-12 Thread mtod09
Thanks everyone for the feedback it really helps.

And Claus I have the first book and look forward to the 2nd. 
I have been watching your videos they have been a great help.

So far I have been testing out Servicemix and setup it up on docker I think
I'll take a look at Spring Boot and fabric8/kubernetes thats looks
interesting.

Thanks 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Recommend-a-platform-for-running-Camel-tp5795331p5795335.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Recommend a platform for running Camel

2017-03-13 Thread mtod09
Thanks Christian,

I agree I think we will need more ability to manage the processes as we
scale.

I tried the SpringBoot approach over the weekend very easy to get going but
I'm not seeing any way to manage a large number of processes. 

On to the next option fabric8/kubernetes.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Recommend-a-platform-for-running-Camel-tp5795331p5795364.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Recommend a platform for running Camel

2017-03-13 Thread mtod09
Thanks Mark,

I was just logging on to ask that exact question. The Spring Boot seems like
a pretty clean way of packaging and delivering Camel to Docker.

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/Recommend-a-platform-for-running-Camel-tp5795331p5795397.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camelContext not found in karaf 4.1.0

2017-03-23 Thread mtod09
I'm running into a few issues also.

I'm running Karaf 4.1.0 and Camel 2.18.3 on AWS.

What are the current approved versions?

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/camelContext-not-found-in-karaf-4-1-0-tp5795994p5796041.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camelContext not found in karaf 4.1.0

2017-03-23 Thread mtod09
Hmm checking the Camel FAQ web site I come up with this:

Important changes to consider when upgrading
Java 1.8 is now required.
*Karaf 2.4.x is no longer supported. Karaf 4.x is the primary supported OSGi
platform.*
Jetty 8.x is no longer supported and camel-jetty8 has been removed
spring 4.0 is no longer supported and camel-test-spring40 has been removed
spring 3.x is no longer supported
Upgraded to Spring 4.3.x and Spring Boot 1.4.x

http://camel.apache.org/camel-2180-release.html

So I guess I'm ok.

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/camelContext-not-found-in-karaf-4-1-0-tp5795994p5796042.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel instanciated as null

2017-03-23 Thread mtod09
Background :
I'm running camel 2.18.3 on a AWS karaf 4.1.0 platform.

I have a simple route using restlet that works fine but when using a route
with a endpoint activemq artemis it fails with the following error.

org.osgi.service.blueprint.container.ComponentDefinitionException: Name
jmsConnectionFactory is already instanciated as null and cannot be removed.

I'm not sure what I'm doing wrong thanks for the help.

My route.xml

 
http://www.osgi.org/xmlns/blueprint/v1.0.0";
   xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0";
  
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";>
   
 
 
 


 
 
 


 














http://camel.apache.org/schema/blueprint";>   





/km:FMIMessage/km:Header/km:Route/text()


Route1



org.apache.camel.ValidationException


${exception.message}













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


Sending to Syslog

2014-12-10 Thread mtod09
I would like to setup a ActiveMQ queue for syslog messages and use Camel to
send to the Syslog Server.

I looked at the following link but I'm unable to get this to work.

http://camel.apache.org/syslog.html

I'm using Spring for the configuration.

http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd";>





file:${activemq.conf}/credentials.properties













http://camel.apache.org/schema/spring";
xmlns:km="http://xsdrepo.foundationmedicine.com/messaging/esb";> 











I keep getting an error loading the datatype.

"because of Data format 'syslog' could not be created"

Any help would be appreciated.

Mike







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


Re: Sending to Syslog

2014-12-11 Thread mtod09
Thanks for the response.

I get errors when I try using the dataFormats element.
  
  
  

Error:  "because of Data format 'syslog' could not be created"  

Seems like there is a Jar missing but I saw no reference to it in the
documentation.
Is there a specific JAR required?

I'm on ActiveMQ 5.10 not sure what version of Camel that uses.

Mike




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


Re: Sending to Syslog

2014-12-12 Thread mtod09
I think I'm seeing a pattern.

I thought I could do this using just Spring XML and no code.

I'm not a Java programmer so I was hoping to use Spring XML to do all this
work.

Thanks




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


Re: Sending to Syslog

2014-12-16 Thread mtod09
Thanks

I have added the Jar's things are looking better.
The route is running now when I send it a formatted message I get the
following error:

*Message:* <2>Jul 10 12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT

ERROR | Failed delivery for (MessageId:
ID:FM-WLTP082-56545-1418751719052-7:1:1:1:1 on ExchangeId:
ID-FM-WLTP082-56542-1418751718711-0-1). Exhausted after delivery attempt: 1
caught: org.apache.camel.TypeConversionException: Error during type
conversion from type: java.lang.String to the required type:
org.apache.camel.component.syslog.SyslogMessage with value <2>Jul 10
12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT due java.lang.NoSuchMethodError:
org.apache.camel.component.syslog.SyslogMessage.setTimestamp(Ljava/util/Calendar;)V


Seems like I'm missing something.


My Route:




http://www.springframework.org/schema/beans";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns:camel="http://camel.apache.org/schema/spring";
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
   http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

http://camel.apache.org/schema/spring";>















Thanks

Mike



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


Re: Sending to Syslog

2014-12-16 Thread mtod09
I have it working I guess I was missing some more Jar's.

Interesting the 1st message seems to work but the second one times out then
works.

Error Message:

ERROR | Failed delivery for (MessageId:
queue_syslogMessages_ID_FM-WLTP082-60537-1418754256058-7_1_1_1_1 on
ExchangeId: ID-FM-WLTP082-60535-1418754255614-0-1). Exhausted after delivery
attempt: 1 caught: org.apache.camel.ExchangeTimed OutException: The OUT
message was not received within: 3 millis.
Exchange[JmsMessage[JmsMessageID:
ID:FM-WLTP082-60537-1418754256058-7:1:1:1:1]]

I'm not sure why this would have an issue both systems are local.

Thanks 

Mike




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


Re: Sending to Syslog

2014-12-16 Thread mtod09
Ok I have the solution now.

I added sync=false to the uri

 

It was using request / reply model and waiting for a response.

Thanks for all the help.

Mike



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


Camel Spring XML working with variables from xml message

2014-12-16 Thread mtod09
I'm developing a route that will read the incoming xml message and create a
new message to pass to an outbound route.

I need to extract some data via xpath then concat the data  elements to send
to a new route.

Example


   My
   home


var1 = data1
var2 = data2

var3 = var1 + " " + var2

var3 = "My home"

I'm not sure how to do this with Spring XML does any one have an example or
pointer?

My Route so far:

http://camel.apache.org/schema/spring";>









/km:FMIMessage/km:Header/km:Payload/se:SystemEvent/se:EventTime/text()


/km:FMIMessage/km:Header/km:Payload/se:SystemEvent/se:LevelID/text()


/km:FMIMessage/km:Header/km:Payload/se:SystemEvent/se:ServerName/text()


/km:FMIMessage/km:Header/km:Payload/se:SystemEvent/se:MessageText/text()


"<2> DateValue Hostname Message"












Thanks 

Mike




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Spring-XML-working-with-variables-from-xml-message-tp5760788.html
Sent from the Camel - Users mailing list archive at Nabble.com.


suppress error from Camel Route on slave

2015-12-28 Thread mtod09
I'm running ActiveMQ 5.13 on a leveldb cluster. 
My ActiveMQ.xml config contains a Camel route in an include file. 



I route xml from one queue to a topic but when slave is in standby mode I
keep getting this error : 

INFO   | jvm 1| 2015/12/28 18:10:26 | ERROR | Could not refresh JMS
Connection for destination 'esb.*' - retrying using
FixedBackOff{interval=5000, currentAttempts=181, maxAttempts=unlimited}.
Cause: Could not create Transport. Reason: java.io.IOException: Broker named
'localhost' does not exist. 

Is there a way to suppress this error or Non-Error due to it being a slave? 

Thanks 

Mike 



--
View this message in context: 
http://camel.465427.n5.nabble.com/suppress-error-from-Camel-Route-on-slave-tp5775556.html
Sent from the Camel - Users mailing list archive at Nabble.com.