Re: Why I cannot run multiple CamelContext simultaneously?

2013-02-25 Thread Claus Ibsen
On Mon, Feb 25, 2013 at 6:17 AM, Willem jiang willem.ji...@gmail.com wrote: Hi, It looks like a bug of Camel. Do you mind to fill a JIRA[1] for it? [1]http://issues.apache.org/jira/browse/CAMEL That is too soon to tell. The user needs to provide more details what happens, for example if

Re: Problems using a osgi bundle in a camel route

2013-02-25 Thread Claus Ibsen
On Sun, Feb 24, 2013 at 5:06 PM, Smith-John mich...@gmail.com wrote: Hi, I have problems using a OSGI-Service/bundle in a camel route. Read tutorial-osgi-camel but didn't get it to work. The setup: bundle 1 defines a Service interface (separate bundle for interface because there can be

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread sarfaraj
FYI: The project running on camel local context. ( means using mvn camel:run command) But not able to run on servicemix 4.4.2. So i dont think its related to CustomerServiceSoapServiceLocator. /Sarfaraj -- View this message in context:

Re: Problems using a osgi bundle in a camel route

2013-02-25 Thread Claus Ibsen
You most likely need to create a osgi registry and pass that into the constructor of the osgi default camel context OsgiServiceRegistry On Mon, Feb 25, 2013 at 12:07 PM, Smith-John mich...@gmail.com wrote: /So your problem is that you cannot invoke the bean (impl in bundle 2) from a Camel

Re: camel-quickfix RequestReplyExample java.io.IOException

2013-02-25 Thread stevebate
I'll need to refresh my memory since the original code was written four years ago. However, I'm sure the example worked at that time or I wouldn't have submitted or taken the time to document the example. When I have some time, I'll set up a Camel development environment to take a look at the

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread Willem jiang
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelega tedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteR

cxf response

2013-02-25 Thread Smith-John
Hi, I have a route that looks like from(cxf:cxfEndpoint?wsdlURLdataFormat=PAYLOAD).unmarshal(jaxb).process(new Processor() { (here I do some app logic) }).to(bean:myBean); The myBean just returns a string. The wsdl of the cxf endpoint specifies the response with xs:complexType

A little problem with annotation @CsvRecord

2013-02-25 Thread jeff
Hey ! I am a newbie with this framework. I am designing a little MAVEN/SPRING/CAMEL P.O.C. ( I hope I don't spam, I have already post by mail, put I am not really used to nabble :) ) By the way, I don't understand why spring tell me : The separator has not been defined in the annotation

Cannot get @Consumed to work for JpaConsumer endpoint

2013-02-25 Thread Chris Wolf
I have a route whose first endpoint is .from(jpa:...) - i.e. a consumer. I have consumeDelete=false and in my entities, I have a method marked with @Consumed - in this method, I invoke another setter to set a nullable persistent field of type DATE. Everything works, but this date field is still

Re: A little problem with annotation @CsvRecord

2013-02-25 Thread Claus Ibsen
Hi I think BindyCsvDataFormat you should specify the package name and not the FQN class name. On Mon, Feb 25, 2013 at 5:32 PM, jeff jflebesc...@gmail.com wrote: Hey ! I am a newbie with this framework. I am designing a little MAVEN/SPRING/CAMEL P.O.C. ( I hope I don't spam, I have already

ClassNotFoundException

2013-02-25 Thread Carl Buxbaum
Hi all, I am trying to deploy a Camel route application into apache Servicemix that I have previously deployed as a war. I ported the application into FUSE IDE, and was able to do an initial run of the application via right click/run on the camelContext.xml. However, when I deploy into

Re: camel-quickfix RequestReplyExample java.io.IOException

2013-02-25 Thread Babak Vahdat
://svn.apache.org/repos/asf/camel/branches/camel-2.8.x/ Then as lawkai has already reported by the first post in this thread this is what you would get: 20130225-18:17:20, FIX.4.2:MARKET-TRADER, event (Session FIX.4.2:MARKET-TRADER schedule is daily, 00:00:00-UTC - 00:00:00-UTC) 20130225-18:17:20, FIX

Re: Help regarding reading multiple response

2013-02-25 Thread Shinta802
Hi Willem Jiang, Thanks for the reply. I started using the ConsumerTemplate and I am still not getting the response back, below is the snippet that I have used. ProducerTemplate camelTemplate = context.getBean(camelTemplate, ProducerTemplate.class); ConsumerTemplate consumerTemplate =

Re: A little problem with annotation @CsvRecord

2013-02-25 Thread jeff
Thanks @Claus for the help, but it don't works too... I have found a solution which consist to retrieve the bean from the context from the routebuilder : spring bean xml : bean id=cSVLineFormatAED class=com.myapp...package.CSVLineFormatAED @CsvRecord(separator = ; , crlf = UNIX) public class

Re: Cannot get @Consumed to work for JpaConsumer endpoint

2013-02-25 Thread Chris Wolf
Problem solved. The issue was that even though the documentation states that JPA consumer must specify the entitytype, I found that it worked without it and I never got an explanation *why* it was needed. Since I already had a big, giant URI, I left it out. Apparently one of the reasons the JPA

My First Camel Route. Need help unit testing and refactoring.

2013-02-25 Thread shyenuganti
Here is a sample route written in Camel for our application. This is our first ever route in camel. This route reads Event Table in Oracle and AS400 systems, extracts an XML message from the record and send the message to JMS queue. All the JDBC and JMS endpoints are based on JNDI Lookup. This

Re: ClassNotFoundException

2013-02-25 Thread Christian Müller
Which versions of SMX, Spring, Camel, ... do you use? You don't have to wrap the Spring jar because it's already an OSGI bundle... Sent from a mobile device Am 25.02.2013 10:27 schrieb Carl Buxbaum cbuxb...@tradestonesoftware.com : Hi all, I am trying to deploy a Camel route application into

Re: camel-exec in camel blueprint: ExecBinding.* headers read?

2013-02-25 Thread Christian Müller
The WIKI points to the java constants. If you use the XML DSL, you have of course to use the constant value as Claus mentioned. Best, Christian Sent from a mobile device Am 25.02.2013 08:36 schrieb MatteoRedaelli matteo.redae...@gmail.com: Hello It works if you set other header variables

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Christian Müller
You have to build your own solution on top of what Camel already provides... Best, Christian Sent from a mobile device Am 25.02.2013 08:01 schrieb Paul Gale paul.n.g...@gmail.com: Hi, FYI: I am using ActiveMQ 5.8 with Camel 2.10.3. Is it possible to implement 'last value queue' type

Re: cxf response

2013-02-25 Thread Christian Müller
Do you have problems to implement it? Or for which kind of comments do you looking for? Best, Christian Sent from a mobile device Am 25.02.2013 06:46 schrieb Smith-John mich...@gmail.com: Hi, I have a route that looks like

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread Christian Müller
Did you told us already which version of Camel do you use? I'm asking, because Axis is not supported at Camel since a while. See: http://camel.apache.org/tutorial-axis-camel.html Sent from a mobile device Am 25.02.2013 05:20 schrieb sarfaraj sarfarajsay...@gmail.com: Could someone help ? I

Confused : ModelCamelContext Vs CamelContext and RouteDefinition Vs Route?

2013-02-25 Thread shyenuganti
I am trying to write tests to my route. CamelTestSupport has camel context which is of type ModelCamelContext. We have a method in that : ModelCamelContext.getRouteDefinitions(). When I try that using a regular CamelContext like CamelContext.getRouteDefinitions(), it says the method is

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Paul Gale
What are you defining as 'on top'? - Do you mean by combining existing Camel EIPs somehow? If so please provide a possible solution for this scenario. - Or do you mean by implementing something lower level like a custom component perhaps? All detailed constructive guidance is much appreciated.

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Raul Kripalani
You might be better off using Redis or another technology rather than a message broker. Your use case doesn't fit with the concept of messaging, lightweight DB storage is better suited. While you can find ways to implement it on AMQ, the solution will be suboptimal. We offer a camel-redis

Questions about testing came routes

2013-02-25 Thread shyenuganti
I am going through this example in the documentation: http://camel.apache.org/camel-test.html public class FilterTest extends CamelTestSupport { @EndpointInject(uri = mock:result) protected MockEndpoint resultEndpoint; @Produce(uri = direct:start) protected ProducerTemplate

Re: What is the difference between the two jasypt libs?

2013-02-25 Thread Hadrian Zbarcea
The camel-jasypt library is a wrapper of the org.jasyp library that allows it to be used for securing secrets on camel routes. It is not a port nor a wrapper of jasypt. I hope this helps, Hadrian On 02/25/2013 03:33 PM, Pulkit Singhal wrote: Hello, There are two jasypt libraries available

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Willem jiang
I think it could be more easy to be done by using the caching for the last update, then store the result into some place. I don't think the delayer is good solution if you have lots values need to be checked. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web:

Re: Confused : ModelCamelContext Vs CamelContext and RouteDefinition Vs Route?

2013-02-25 Thread Willem jiang
Hi, CamelContext is a SPI of Camel , we add to ModelCamelContext to make the API clean. ModelCamelContext provides the Model level options those could be used across Java DSL, Spring DSL, Scala DSL etc. RouteDefinition is same with the ModelCamelContext, is a part of Camel modeling data,

Re: cxf response

2013-02-25 Thread Willem jiang
If you are just want to set the response with PAYLOAD data formate, you need to build the response xml document yourself. Please take a look at this unit test[1].

Re: ClassNotFoundException

2013-02-25 Thread Willem jiang
I'm not sure if your application bundle imports the package of org.springframework.beans.factory.config. You should be able to change the import packages from the pom.xml which use used to build up the bundle. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web:

Re: My First Camel Route. Need help unit testing and refactoring.

2013-02-25 Thread Willem jiang
When we write the unit tests for the camel route, we just want test the route logical. Because it is hard to setup all the environment, we don't want to get touch with the other camel component in the unit test. You can break the whole route into some small pieces with the help of direct

Re: A little problem with annotation @CsvRecord

2013-02-25 Thread Willem jiang
BindyCsvDataFormat supports to set the Class or the PackageName for it. Did you have a chance to create a new BindyCsvDataFormat with below lines ? BindyCsvDataFormat camelDataFormat = new BindyCsvDataFormat( com.mycomp.mediation.simpleExemple.CSVLineFormatAED.class); -- Willem Jiang Red

Re: Help regarding reading multiple response

2013-02-25 Thread Willem jiang
It looks like the REQUEST QUEUENAME consumer doesn't know about the replyTo property of the message. BTW, I think it could be more easy for you to handle the multiple response with lower level JMS API with the correlation id. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Paul Gale
Your use case doesn't fit with the concept of messaging I don't see why as the concept of last value queues originates in queuing. In fact JBoss, HornetQ and Qpid all offer last value queues. It's just that none of those products are an option for me. I've since found out that ActiveMQ does

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Christian Müller
Probably in Camel 3.0 which we will not see in short term. May be end of the year... Sent from a mobile device Am 25.02.2013 19:10 schrieb Paul Gale paul.n.g...@gmail.com: Your use case doesn't fit with the concept of messaging I don't see why as the concept of last value queues originates in

Re: Questions about testing came routes

2013-02-25 Thread Christian Müller
In the createRouteBuilder method you can simply instantiate your own route builder. Sent from a mobile device Am 25.02.2013 14:52 schrieb shyenuganti shyenuga...@gmail.com: I am going through this example in the documentation: http://camel.apache.org/camel-test.html public class FilterTest

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread sarfaraj
I am using wsdl2java plugin (below) to generate the web service client. And used java code(in one of the processor i.e. prepareBulkGetRequest) to get the result. plugin plugin groupIdorg.codehaus.mojo/groupId

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread sarfaraj
I am using camel 2.8.5 I believe its supported to axis 1.4. is it ? /Sarfaraj -- View this message in context: http://camel.465427.n5.nabble.com/OSGI-axis-1-4-jar-tp5728065p5728139.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it possible to implement Last value queue using Camel?

2013-02-25 Thread Claus Ibsen
On Tue, Feb 26, 2013 at 4:09 AM, Paul Gale paul.n.g...@gmail.com wrote: Your use case doesn't fit with the concept of messaging I don't see why as the concept of last value queues originates in queuing. In fact JBoss, HornetQ and Qpid all offer last value queues. It's just that none of those

Re: OSGI axis 1.4 jar ?

2013-02-25 Thread Claus Ibsen
On Tue, Feb 26, 2013 at 4:31 AM, sarfaraj sarfarajsay...@gmail.com wrote: I am using wsdl2java plugin (below) to generate the web service client. And used java code(in one of the processor i.e. prepareBulkGetRequest) to get the result. Camel does NOT support Axis out of the box with a Camel

Camel smpp special characters for sending sms

2013-02-25 Thread fclose
Hello, I'm working on a project where I'm sending messages coming from an activeMQ queue to an sms-c. This works fine except that I'm currently unable to send special characters used in french like: é è à : those characters are not displayed correctly on mobile phones. Do you have any idea what