Command to add activemq-cxf 2.6.0 into karaf

2013-09-05 Thread mahii.in87
Hi... Kindly adivce me how to install the following *ic-7.1.0.fuse-047 [uninstalled] [5.4.2] activemq cxf- 2.6.0.fuse-71-047* Thanks in advance -- View this message in context:

Re: Camel routing issue after upgrade into active-mq 5.8

2013-09-05 Thread prabumc...@gmail.com
*Queue name* public static final String CONSUMER_TEST_QNAME = activemq:queue:ConsumerTestHandlerjmsMessageType=TextpreserveMessageQos=true; public static final String PRODUCER_TEST_QNAME= activemq:queue:ProducerTestHandler?jmsMessageType=TextpreserveMessageQos=true; public static final

Re: Command to add activemq-cxf 2.6.0 into karaf

2013-09-05 Thread Claus Ibsen
You typically install using features features:install activemq-xxx You can use TAB completion so after activemq- press TAB and you can see all the features you can choose among to install. On Thu, Sep 5, 2013 at 7:55 AM, mahii.in87 mahesh.so...@wipro.com wrote: Hi... Kindly adivce me how

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-05 Thread Preben.Asmussen
Hi Willem No the tracing was enabled using jmx to trubleshot. Thinking of it I recall some bug in Camel with a toString method and streaming. It might be that when tracing is enabled it consumes the stream when calling toString in camel version 2.10.0 ?? What would be the best approach here to

Camel SFTP down handling

2013-09-05 Thread Monisha
Hi, I have a small camel route having SFTP location as input endpoint. I want to handle the scenario when SFTP is down. Since SFTP does not extend DefaultConsumer, I cannot use the option consumer.bridgeErrorHandler=true. For now, when SFTP is down or the credentials given are incorrect, the

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-05 Thread Claus Ibsen
Yeah converting to a String is a good idea if the data is in-memory only, eg not a 500mb file you read from the file system etc. A side note: Also the xpath engine from JDK is purely in-memory only. It cannot split / evaluate in streaming mode. You can find some links about splitting big xml

Re: Camel SFTP down handling

2013-09-05 Thread Claus Ibsen
The file/ftp components also supports the bridgeErrorHandler option. So you can use this. There is also this guy: http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/impl/LimitedPollingConsumerPollStrategy.html On Thu, Sep 5, 2013 at 8:12 AM, Monisha

Re: camel-cxf and HTTP BASIC authentication

2013-09-05 Thread contactreji
Hi Christian I have followed your steps and made my coade as follows * cxf:cxfEndpoint id=MESEndpoint address=http://server:8181/mes/bw/Service_Endpoint; serviceClass=company.pi.mes.id56.copperrecovery.ImplementationClass

Re: Problem with FailOverLoadBalancer

2013-09-05 Thread sbo13
Thank's Claus, I must admitt I hadn't thought about that. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-FailOverLoadBalancer-tp5738515p5738728.html Sent from the Camel - Users mailing list archive at Nabble.com.

Using an Expression for the delayer in the Scala DSL

2013-09-05 Thread cflockhart
Hi, It seems that only a fixed Period for the delay can be used in the Scala DSL. I want to have different values for test and production (a 1 hour message delay is no good when running unit tests). It's possible to use an expression in the Java DSL though.. so is one way to do this to override

Re: Command to add activemq-cxf 2.6.0 into karaf

2013-09-05 Thread mahii.in87
Hi Claus, i tried ,but got below error* FuseESB:karaf@root features:install activemq-cxf* Error executing command: No feature named 'activemq-cxf' with version '0.0.0' av ailable thanks -- View this message in context:

Error _in_adding_active mq dependencies

2013-09-05 Thread mahii.in87
Hi , when I try to add the active mq dependencies to an existing pom file of the type Camel CXF Contract First project. It is showing error in theexcution tag under camel-cxf-pulginartifactid in the pom file.Please take a look in the error screen shot. These are the dependencies added

Re: Command to add activemq-cxf 2.6.0 into karaf

2013-09-05 Thread Claus Ibsen
Hi You install using features. So do a features:list to see which is available. And this is an Apache Camel mailing list. You talk about Fuse ESB / ServiceMix / Karaf. So in the future please use another mailing list for these kind of questions as its not related to Apache Camel. On Thu, Sep

Re: Using an Expression for the delayer in the Scala DSL

2013-09-05 Thread Claus Ibsen
Hi What version of Camel do you use? There may be room for improvement in the Scala DSL. As we love contributions you are welcome to dive into the code base of camel-scala and provide patches to add such functionality. http://camel.apache.org/contributing.html Also you are welcome to log a

Re: MultipleConsumer on a vm: endpoint

2013-09-05 Thread Claus Ibsen
Hi Yeah multipleConsumers is not support for vm. As the consumers is not static shared. On Wed, Sep 4, 2013 at 4:38 PM, Cristiano Costantini cristiano.costant...@gmail.com wrote: Hi Claus, that what I would expect and it works if all the consumers are on the same CamelContext. If I start

Re: Error _in_adding_active mq dependencies

2013-09-05 Thread Willem Jiang
Hi, Did you put the Fuse maven repo into your pom? As you know, we don't publish the fuse artifact into the public maven repo. So you can not access the fuse jar from the maven public repo Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Re: Simple way to do some elementary bean operations

2013-09-05 Thread Claus Ibsen
Hi The DSL in camel is intended to be as identical between Java and XML as possible. In fact the XML is generated based on Java classes. This allows people to easily transition between java and xml dsl. And also read examples in Java and understand how to do that in XML - and vice versa etc. So

Re: MultipleConsumer on a vm: endpoint

2013-09-05 Thread Cristiano Costantini
Yeah multipleConsumers is not support for vm. As the consumers is not static shared. Hi, is that something intentional (sharing statically the consumers had other issues) or something, let say, a patch for is welcome? Thank you, Cristiano

Re: MultipleConsumer on a vm: endpoint

2013-09-05 Thread Claus Ibsen
On Thu, Sep 5, 2013 at 10:15 AM, Cristiano Costantini cristiano.costant...@gmail.com wrote: Yeah multipleConsumers is not support for vm. As the consumers is not static shared. Hi, is that something intentional (sharing statically the consumers had other issues) or something, let say, a

Re: Conceptual understanding of altering routes runtime

2013-09-05 Thread Claus Ibsen
Hi You can just use a java bean to query the database to get the rows you want. You can then call the bean from a Camel route, and trigger the route using a timer etc if you want. in your bean you can keep state and keep track of the row number interval to fetch. And from your bean you can use

Re: Conceptual understanding of altering routes runtime

2013-09-05 Thread Claus Ibsen
Hi Also you dont have to use Camel routes. Sometimes just use Camel as a client API and use ProducerTemplate / ConsumerTemplate to use the Camel components can be fine. On Wed, Sep 4, 2013 at 6:53 PM, lassesvestergaard lassesvesterga...@gmail.com wrote: Hi all. This is a spinoff of a

Re: Error _in_adding_active mq dependencies

2013-09-05 Thread mahii.in87
Hi Willem, Thanks a lot I am very new to camel.Could you please check the repo I added. repository idrelease.fusesource.org/id nameFuseSource Release Repository/name urlhttp://repo.fusesource.com/nexus/content/repositories/releases/url snapshots

Re: Using an Expression for the delayer in the Scala DSL

2013-09-05 Thread cflockhart
I'm using Camel 2.11.1. I'd looked at the 2.11 branch and it didn't look too hard to add it so I'll have a go at a patch. However, if we want to use a released version of Camel, is the approach of overriding onJavaBuilder() the way to go? thanks! -- View this message in context:

JAX-WS and JAX-RS Webservice with Camel

2013-09-05 Thread ravishankarhassain
How to hit (give request to) an external JAX-WS and JAX-RS service and also get the response from JAX-WS and JAX-RS service using camel ? From the documents and example, I can understand that we can create a proxy webservice and expose that proxy webservice on the fly by giving configuration

no declaration can be found for element 'broker'.

2013-09-05 Thread mahii.in87
Hi... Can you help me in resolving the error* ERROR | xtenderThread-12 | ContextLoaderListener| 113 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.outotec.mes-bw-energyconsumption-queue,

Re: no declaration can be found for element 'broker'.

2013-09-05 Thread Claus Ibsen
The xml file is invalid. You can validate that from Eclipse or other editors which can have such functionality. It may be related to broker namespace not being defined. If you dont know how to do about that, then spend time searching the internet and learn about this. Please spend a bit more

Using HTTP and HTTPS proxies with Camel HTTP Component

2013-09-05 Thread Alex Anderson
I'm writing some test code which uses and HTTP/HTTPS proxy to mock 3rd party webservices. For non-camel code, I configure the proxy using the java system properties: http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort, http.nonProxyHosts. These settings seem to be ignored by camel,

Correct use of idempotentKey in the Camel file component

2013-09-05 Thread fransguelinckx
Hi, According to the Camel documentation you can use a custom idempotentKey that determines whether a certain file is already read with a uri-option: This didn't seem to work for us and after a very long debugging session we discovered the following does work: Are we doing something wrong or

Camel 2.11.1, sql component returns a LinkedCaseInsensitiveMap for evry row, not a ArrayList

2013-09-05 Thread kalber
I configured this route : from(sql:select obj_code, prv_targa, stc_pccode, prv_prodtela, prv_modtela, prv_tipobus from cust_positions where obj_org in ('ICT') and obj_class in ('BUS') order by prv_concessi?dataSource=#dataSource.infornoop=true) .process(new

Re: SEDA queue in Camel blocks.

2013-09-05 Thread Gaurav Sehgal
Hi Christina;                This does not happen everytime; though it happens preodically; will post the thread dump once I see it. Though; I am posting the camel routes I use in my application:                     context.addRoutes(new RouteBuilder() { public void configure() {               

Re: Camel routing issue after upgrade into active-mq 5.8

2013-09-05 Thread prabumc...@gmail.com
Hi Ceposta, After enable debug i can see following log details. 2013-09-05 08:02:41,023 | DEBUG | Endpoint[activemq://queue:BOA.InboundQueue] consumer received JMS message: ActiveMQTextMessage {commandId = 24, responseRequired = true, messageId = ID:Corp-TSOpus02-50552-1378385398624-4:1:1:1:20,

Active Mq example deployment error

2013-09-05 Thread vrrajesh78
Hi, I tried deploying camel-activemq example availabe in FUSE-IDE. I am getting the below error.Thanks in advance *Caused by: java.lang.IllegalArgumentException: Could not load property editor: org.apache.activemq.util.BooleanEditor* at

Camel message router

2013-09-05 Thread luixv
We are developing an application which uses active mqueue and apache camel as router. This application is getting .html files as input (this files are NOT xml compliant). Depending on the prefix of the filename I have to route the file to different process. Actually the pattern message router

Re: Correct use of idempotentKey in the Camel file component

2013-09-05 Thread Claus Ibsen
Hi You may have some property placeholder clash with spring or something. The doc is correct you can use ${ } or $simple{ }. On Thu, Sep 5, 2013 at 2:29 PM, fransguelinckx frans.guelin...@gmail.com wrote: Hi, According to the Camel documentation you can use a custom idempotentKey that

Re: Camel message router

2013-09-05 Thread Christian Posta
give this a shot... choice when simple${header.CamelFileName} regex '^prefix.*$'/simple continue...route...here/ /when /choice On Thu, Sep 5, 2013 at 8:58 AM, luixv luisman...@gmail.com wrote: OK, thanks for your answer. How would you code this using spring xml? Luis --

Are there any Camel hack to make all the JMS component to use one and only thread?

2013-09-05 Thread gnani swami
Hi, Camel was wonderful piece of software and using it in production for more than a year. Our version of Camel was 2.10.1 I recently added few additional route (and bug in buz logic too) to interface with additional systems, all the routes are doing the similar job. They read JMS message from

Re: Are there any Camel hack to make all the JMS component to use one and only thread?

2013-09-05 Thread Christian Posta
So what's the underlying concurrency issue? Ordering? Can you just have a route that multiplexes all of those incoming queues into a single queue (or in-mem queue) and then have a route w/ only one thread that does CBR and invoke the correct bean? On Thu, Sep 5, 2013 at 9:02 AM, gnani swami

Web based camel route automation

2013-09-05 Thread Gnanaguru S
Hello, I have two file endpoints, I need to route the files using camel routes. I have a web UI where I will provide the two file endpoints detail, One I submit the details It has to create a camel context file. 1. I am able to achieve this using route builder, but this is in-memory. When

Re: Active Mq example deployment error

2013-09-05 Thread Gnanaguru S
Post the complete stack trace. Then only we can help. Thanks Guru gnanaguru.com -- View this message in context: http://camel.465427.n5.nabble.com/Active-Mq-example-deployment-error-tp5738760p5738798.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel routing issue after upgrade into active-mq 5.8

2013-09-05 Thread prabumc...@gmail.com
Pls help me... *Thanks* Prabu.N On Thu, Sep 5, 2013 at 6:41 PM, Prabu prabumc...@gmail.com wrote: Hi Ceposta, After enable debug i can see following log details. 2013-09-05 08:02:41,023 | DEBUG | Endpoint[activemq://queue:BOA.InboundQueue] consumer received JMS message:

Re: Active Mq example deployment error

2013-09-05 Thread Christian Posta
Seems to be some kind of classpath issue and a dependency cannot be found. On Thu, Sep 5, 2013 at 5:46 AM, vrrajesh78 vsmahesh...@yahoo.co.in wrote: Hi, I tried deploying camel-activemq example availabe in FUSE-IDE. I am getting the below error.Thanks in advance *Caused by:

Re: Camel message router

2013-09-05 Thread Christian Posta
Well, it doesn't have to be an xpath expression. It can be any of the supported expression language options: http://camel.apache.org/expression.html For example, when processing files off the file system, the filename would be added to the exchange message as a header, and you can do your

Re: Web based camel route automation

2013-09-05 Thread Charles Moulliard
Guru, A CamelContext is a java object which is not persisted or replicated between different JVM. So this is not possible to achieve what you would like to do. The question here is not the CamelContext or RouteBuilder object but what you transport (= files). They must be persisted (using

Re: File renaming problems under Windows

2013-09-05 Thread bocamel
I ran into a similar problem. My use case is slightly different and I am using Camel 2.11.1 and JDK 1.7. But the result is that Camel cannot delete the file from the input folder and keeps processing it indefinitely. I have two routes. The first route reads in XML files from a directory then

Traverse FTP tree

2013-09-05 Thread Tom.Fornoville
Hi everyone, On our ftp server we have a home directory for every customer where they can put their files, it look something like this: ftp-root -- 001 -- 20130905.xml -- feedback -- feedback_20130903.xml -- feedback_20130904.xml -- 002 -- 20130905.xml

Re: Camel routing issue after upgrade into active-mq 5.8

2013-09-05 Thread prabumc...@gmail.com
I am using camel 2.10.3 version On Sep 5, 2013 10:22 PM, Prabu prabumc...@gmail.com wrote: Pls help me... *Thanks* Prabu.N On Thu, Sep 5, 2013 at 6:41 PM, Prabu prabumc...@gmail.com wrote: Hi Ceposta, After enable debug i can see following log details. 2013-09-05 08:02:41,023 | DEBUG

Re: Camel message router

2013-09-05 Thread luixv
OK, thanks for your answer. How would you code this using spring xml? Luis -- View this message in context: http://camel.465427.n5.nabble.com/Camel-message-router-tp5738769p5738789.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP endpoint

2013-09-05 Thread sacauskis
Thanks for the reply. This is what the code ultimately looked like: public class CamelHTTP { public static void main(String args[]) throws Exception { // create CamelContext final CamelContext context = new DefaultCamelContext(); // add

Re: Are there any Camel hack to make all the JMS component to use one and only thread?

2013-09-05 Thread gnani swami
Some of the messages where handled by wrong service and they are all queued in FailedErrorMessages directory. Application failed to process them. So it will end up in ordering, and lost message. Looking at our various exception it is quite easy for us to understand that they are caused by

Re: Camel message router

2013-09-05 Thread Raul Kripalani
You can use the in:header() XPath function provided by Camel to access an IN message header. For example: contains(in:header('CamelFileName'), 'foo') Or combine it with any other XPath function like starts-with, matches, etc. The Camel XPath documentation page describes this function and

Re: Could not load property editor: org.apache.activemq.util.BooleanEditor

2013-09-05 Thread Christian Müller
How should we do this? Please start here: http://camel.apache.org/support.html Best, Christian Am 05.09.2013 15:27 schrieb vrrajesh78 vsmahesh...@yahoo.co.in: HI, help me in resolving this error * java.lang.IllegalArgumentException: Could not load property editor:

Re: SEDA queue in Camel blocks.

2013-09-05 Thread Raul Kripalani
Is it possible that one of your beans is blocking for some reason, and all of your 6 concurrent consumers become occupied waiting at the blocking point? When you restart your context, do you see any log statements about inflight exchanges? Regards, Raúl. On 5 Sep 2013 13:59, Gaurav Sehgal

HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException

2013-09-05 Thread Dayakar Reddy
Hi, I am new to Camel-HL7 component. It seems like you implemented this component. can you please share me the sample code base/ your project code? In my case , I need to convert the java object to HL7 format and then send those messages to an endpoint. Thanks,,,

camel2.11.0 threads

2013-09-05 Thread risen
I'm new in camel. threadPool: threadPool id=threadPcSend poolSize=8 threadName=pcSend maxPoolSize=8 maxQueueSize=1024 keepAliveTime=0 / camel-route: camel:route id=pcSendRoute camel:from uri=timer://pcSendTimer?period=2000amp;delay=5000 / threads

Securing Inbound WebService Endpoint

2013-09-05 Thread contactreji
Can I secure my inbound cxf:enpoint with *conduit name={http://example.com/}HelloWorldServicePort.http-conduit; xmlns:sec=http://cxf.apache.org/configuration/security; xmlns=http://cxf.apache.org/transports/http/configuration; authorization sec:UserNamemyuser/sec:UserName