RE: Need advice on application architecture with camel

2017-12-04 Thread Matthew Shaw
Lol - no worries. Matthew Shaw Lead Solutions Architect HRIS Program Integration Work: 36353103 -Original Message- From: Craig Taylor [mailto:ctalk...@ctalkobt.net] Sent: Tuesday, 5 December 2017 1:03 PM To: users Subject: Re: Need advice on application architecture with camel

RE: Need advice on application architecture with camel

2017-12-04 Thread Matthew Shaw
Sounds like he is doing message driven architecture. I would recommend a simple high level camel route (java dsl), which in-turn routes to a destination, based on structured message, which contains enough info for the event, including any dynamic stuff. -Original Message- From: Craig

RE: Multiple instance of a camel service

2017-11-16 Thread Matthew Shaw
Hi, How is the binary data state persisted? My point being I don't think there would be a component in any implementation that would do what you're asking without a great deal of customisation for your process needs. Can you apply state to your binary data, then it doesn't matter what instance

RE: activemq component osgi classnotfound platformtransacitonmanager

2017-09-25 Thread Matthew Shaw
dle in your karaf runtime. Cheers, Matt. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Tuesday, 26 September 2017 12:47 AM To: users@camel.apache.org Subject: Re: activemq component osgi classnotfound platformtransacitonmanager On Mon, Sep 25, 2017 at 2:27 PM,

RE: activemq component osgi classnotfound platformtransacitonmanager

2017-09-25 Thread Matthew Shaw
On Mon, Sep 25, 2017 at 2:16 PM, Matthew Shaw wrote: > Hi Claus, > > I've bought your book and looked at the examples, but I'm still not > understanding why I am getting this error. My code below appears to be > correct in everything I'm reading, can you offer a

RE: activemq component osgi classnotfound platformtransacitonmanager

2017-09-25 Thread Matthew Shaw
part1 And also the transaction chapter in the Camel in Action 2nd edition book has that with OSGi. https://www.manning.com/books/camel-in-action-second-edition On Mon, Sep 25, 2017 at 1:03 AM, Matthew Shaw wrote: > Getting a class not found PlatformTransactionManager when trying to con

RE: activemq component osgi classnotfound platformtransacitonmanager

2017-09-25 Thread Matthew Shaw
nd-edition On Mon, Sep 25, 2017 at 1:03 AM, Matthew Shaw wrote: > Getting a class not found PlatformTransactionManager when trying to configure > activemq component with latest karaf, here is my config: > > ConnectionFactory connectionFactory = new > ActiveMQConnectionF

activemq component osgi classnotfound platformtransacitonmanager

2017-09-24 Thread Matthew Shaw
Getting a class not found PlatformTransactionManager when trying to configure activemq component with latest karaf, here is my config: ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(System.getProperty("activemq.broker.url")); //camelContext.addComponent("mtaa

file streaming with dynamic file name

2017-09-20 Thread Matthew Shaw
Hi All, Trying to stream to a file using message header properties to describe the file name, however it is always creating a file with the literal property references. .to("stream:file?fileName="+System.getProperty("file.streaming.location")+"/${header.JMSCorrelationId}_${header.LASN}.csv") H

cxf web service and relative address with pax exam4

2017-09-14 Thread Matthew Shaw
Hi All, Using pax exam4 with karaf 4.1.2 to run my integration tests with my camel route. Using java dsl I declare from producer endpoint which works fine deploying the bundle into a stand-alone karaf container. CxfEndpoint endpoint = new CxfEndpoint(); endpoint.setCamelContext(getContext());

RE: exception handling in karaf differs to my test

2017-09-05 Thread Matthew Shaw
emote-service-paymenttimesheet", exchange); }else throw new RuntimeException(e); } }) from(blah) .to(toEndpoint); Mary Cochran Red Hat Consulting mcoch...@redhat.com (419) 543-0531 On Tue, Aug 29, 2017 at 12:25 AM, Matthew Shaw < matthe

RE: Consuming Web Services

2017-09-05 Thread Matthew Shaw
Hi Carlos, There are a number of camel components to use for consuming web services, I assume you mean SOAP, although the url does not look SOAP like, do you require REST? Either way, I've been using the camel cxf component. Step1: Create a CxfEndpoint in your camel route like the following:

exception handling in karaf differs to my test

2017-08-28 Thread Matthew Shaw
Hi All, I have a strange error. I am using camel 2.20.1 and I have a test working perfectly for a route which uses onException to handle a known exception from invoking a web service. However, if I deploy this into apache karaf, the onException handler never gets entered into. I am running cxf

xslt xsi attribute not allowed

2017-08-25 Thread Matthew Shaw
Hi, I'm using camel 2.19.2 and getting the following error when trying to run an xslt transformation over my message. Caused by: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXException: "xsi:type" attribute is not allowed on the

DataFormat.PAYLOAD binding error

2017-08-25 Thread Matthew Shaw
Hi All, I'm using the cxf endpoint and having a route exposing a web service. My unit test is sending a soap request that looks like the following http://www.w3.org/2003/05/soap-envelope"; xmlns:tim="http://services.ambulance.qld.gov.au/data/messaging/entity/services/corporate/hri/mta/eta/timesh

deploying cxf webservice via camel into karaf 4.1.1

2017-08-23 Thread Matthew Shaw
Hi All, Using karaf 4.1.1 which ships with cxf 3.x as a feature. I've installed features and CXF is running fine. However, I have a bundle which is depending on camel2.19.1 (feature also installed in karaf), which is declaring a route with a web service. My bundle installs fine and is active a

camel-example-cxf-osgi

2017-08-23 Thread Matthew Shaw
Hi, I'm trying to run the camel-example-cxf-osgi example in karaf 4.1.1, and the service is successfully deployed through the bundle. However when trying to view the wsdl I'm getting the following exception, any ideas? javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.st

RE: restlest service deployment to karaf

2017-08-23 Thread Matthew Shaw
23, 2017 at 7:03 AM, Matthew Shaw wrote: > This maybe a stupid question, but I'm using camel to expose rest > endpoints from my bundle, into karaf. How do I deploy multiple > services to the same host and port with restlet? Here is my dsl > > restConfiguration().compo

RE: restlest service deployment to karaf

2017-08-22 Thread Matthew Shaw
servlet engine. On Wed, Aug 23, 2017 at 7:03 AM, Matthew Shaw wrote: > This maybe a stupid question, but I'm using camel to expose rest > endpoints from my bundle, into karaf. How do I deploy multiple > services to the same host and port with restlet? Here is my dsl > &g

restlest service deployment to karaf

2017-08-22 Thread Matthew Shaw
This maybe a stupid question, but I'm using camel to expose rest endpoints from my bundle, into karaf. How do I deploy multiple services to the same host and port with restlet? Here is my dsl restConfiguration().component("restlet").host("localhost").port(8095).bindingMode(RestBindingMode.json);

RE: camel route to remote EJB using karaf blueprint

2017-07-27 Thread Matthew Shaw
! For sure, would be nice see a public version of your project. Can you share a gist or a public git repo? Thanks ;-) Em 26 de jul de 2017 1:04 AM, "Matthew Shaw" < matthew.s...@ambulance.qld.gov.au> escreveu: > Hi, > > For anyone that's interested I got a working s

RE: CxfEndpoint and wsdl message part issue

2017-07-27 Thread Matthew Shaw
ut if you haven't there is an example with Camel and CXF in OSGI[1] that you can try to play with, zoran [1] https://github.com/apache/camel/tree/master/examples/camel-example-cxf-osgi On Thu, Jul 27, 2017 at 3:14 AM, Matthew Shaw wrote: > Hi, > > I'm configuring a camel ro

CxfEndpoint and wsdl message part issue

2017-07-26 Thread Matthew Shaw
Hi, I'm configuring a camel route with a cxf web service endpoint and deploying into osgi/karaf via declarative services. Service starts up ok and I can browse the wsdl. However invoking from soapui with a valid request I am getting the following error: org.apache.cxf.interceptor.Fault: Messag

RE: camel route to remote EJB using karaf blueprint

2017-07-25 Thread Matthew Shaw
ssLoader method you can try using. On Mon, Jul 10, 2017 at 1:37 AM, Matthew Shaw wrote: > Thanks Claus, I can't change the source system, so I have to consume the ejb > from osgi unfortunately. In the scenario below, I do have it working, > partially, as you say, I'm now ba

RE: restlet and declarative services DI

2017-07-20 Thread Matthew Shaw
- org.apache.camel.camel-core - 2.19.1 | Apache Camel 2.19.1 (CamelContext: camel-1) started in 0.707 seconds -Original Message- From: Matthew Shaw [mailto:matthew.s...@ambulance.qld.gov.au] Sent: Friday, 21 July 2017 1:03 PM To: users@camel.apache.org Subject: restlet and declarative services DI Hi All

restlet and declarative services DI

2017-07-20 Thread Matthew Shaw
Hi All, I'm using osgi declarative services DI with apache karaf for deployment. I can see in the karaf logs that the camel context is loading and my routes are being started, however the restlet server is not starting, here is the route config: restConfiguration().component("restlet").host("lo

RE: camel route to remote EJB using karaf blueprint

2017-07-09 Thread Matthew Shaw
. Then its "fighting" the OSGi classloading and get all that sorted. On Fri, Jul 7, 2017 at 3:51 AM, Matthew Shaw wrote: > As an addendum, I think the issue maybe that using jndi and the weblogic > initial context is outside the camel context, but the way I am invoking it. >

RE: camel route to remote EJB using karaf blueprint

2017-07-09 Thread Matthew Shaw
really must, then try first to get a non OSGi example / unit test etc up and running so you at least know that this part works. Then its "fighting" the OSGi classloading and get all that sorted. On Fri, Jul 7, 2017 at 3:51 AM, Matthew Shaw wrote: > As an addendum, I think the i

RE: camel route to remote EJB using karaf blueprint

2017-07-06 Thread Matthew Shaw
- From: Matthew Shaw [mailto:matthew.s...@ambulance.qld.gov.au] Sent: Friday, 7 July 2017 11:07 AM To: users@camel.apache.org Subject: camel route to remote EJB using karaf blueprint Hi All, I've been banging my head against the wall now for a week, trying to get a camel route going which consu

camel route to remote EJB using karaf blueprint

2017-07-06 Thread Matthew Shaw
Hi All, I've been banging my head against the wall now for a week, trying to get a camel route going which consumes a remote service on an EJB2 container in weblogic 10.3. I keep getting class versioning issues between my client and the server.I have the exact same versions of the server jars i