Re: CXFRS and Processing

2012-03-29 Thread Willem Jiang
You should take a look at the CxfRsConsumerTest instead of working on CxfRsProducerTest. You can find more useful Spring configuration for client and server here[1] BTW, as there are quit difference between the server and client side, the we cannot us the rsClientProxy or rsClientHttp as the be

Re: getting error while deploying application with apache cxf2.5.2

2012-03-29 Thread Stefan Burkard
Hmmm, the following snippet of the stacktrace sounds like one class was compiled against another class version than the available one. So I guess SpringBus was compiled against another version of AssertionBuilderFactory than the one that is loaded in your environment. Has the appserver an internal

Re: Enrichment and Type Conversion

2012-03-29 Thread Christian Müller
More complicated for me... ;-) But it's possible... Best, Christian Sent from a mobile device Am 29.03.2012 08:36 schrieb "Raul Kripalani" : > You can create a proxy route that consumes from a direct: endpoint, > converts the content to a higher-level object, and lastly uses the > recipientList

strange file polling consumer blocking

2012-03-29 Thread jmh
Hello, I would like to understand this strange behavior with my route starting with a file polling consumer : I have sometimes two .camelLock remaining and some files waiting (blocked) while some new files are processed with success. These files blocked remain blocked until I delete manually the

Re: getting error while deploying application with apache cxf2.5.2

2012-03-29 Thread Willem Jiang
Hi, Did you try to disable the jaxws engine ? To disable for the whole JVM, set the JVM property com.ibm.websphere.webservices.DisableIBMJAXWSEngine=true or to disable the engine just for a specific module by adding DisableIBMJAXWSEngine: true to WAR/META-INF/MANIFEST.MF. Willem On 3/29/12

Re: Get HTTP Headers In CXF Bean

2012-03-29 Thread Willem Jiang
Hi, I'm not sure how did you hold the header inside of the camelCXFBean. If you just want to pass the header, you can change the route by using the setHeader. If you want to get full control of it, you can use Processor or Bean to do this kind of job. On Thu Mar 29 04:46:22 2012, Sergey Be

Re: CXFRS and Processing

2012-03-29 Thread Sergey Beryozkin
Hi Shan On 28/03/12 23:34, GPRSLyons wrote: Sergey Beryozkin-3 wrote I was implying something like and then refer to the endpoint with "direct:bookStore". Give it a try please... I gave it a shot with and got similar results. The first two tests throw the same e

Re: [Bindy] Having trouble with the "required" field

2012-03-29 Thread Aida
Hi again, thank you for the quick answers. I think I have been able to replicate the problem in an easy way. I have built some test cases and I have found the one in which I'm having trouble. The "required=false" option is working for me always except in one case. This case is when the two missin

Re: getting error while deploying application with apache cxf2.5.2

2012-03-29 Thread bhushand
Hello Willem, Yes, I disabled the WAS jaxws engine by setting JVM property under generic JVM arguments -Dcom.ibm.websphere.webservices.DisableIBMJAXWSEngine=true That also did note resolved the problem. Following is my extract from my web.xml org.springframework.web.context.Con

Re: [Bindy] Having trouble with the "required" field

2012-03-29 Thread Magnus Palmér
I can confirm, I get the same error as you do when I remove the two last fields at the end of the line as you did. I think this is the where it starts to get wrong: BindyCsvDataFormat.java 138 // Read the line 139 String line = scanner.nextLine().trim(); String.trim(

webservices in camel

2012-03-29 Thread madhu
can any one tell me , what is the differences between the implementation of webservices, in apache camel and mule. how to migrate their implementation from mule to camel? -- View this message in context: http://camel.465427.n5.nabble.com/webservices-in-camel-tp5603427p5603427.html Sent from the C

Updating database records with Java DSL JPA component

2012-03-29 Thread Borut Bolčina
Hello, I do not dare to hope there is a one liner in Java DSL using JPA component to update records such as: ... .to("jpa:my.model.entities.weather.WeatherCurrent?persistenceUnit=weather"&unique=someDbColumn) I am successfully ADDING the records, but I want to update them. Let's say there was

Re: quartz compoent in camel 2.6

2012-03-29 Thread madhu
thank you .I missed the dependency -- View this message in context: http://camel.465427.n5.nabble.com/quartz-compoent-in-camel-2-6-tp5481467p5603615.html Sent from the Camel - Users mailing list archive at Nabble.com.

Best way to implement this usecase?

2012-03-29 Thread Stefan Burkard
Hi I have to implement the following usecase: - messages are processed and finally delivered to a queue - from this messages I need to generate multiple files (which message-content goes to which file is determined by header value) - I need to create a file based on multiple triggers: 1. when

RE: Get HTTP Headers In CXF Bean

2012-03-29 Thread Calvert, Zach (Zach)** CTR **
The CXF component swallows all headers and doesn't pass them through. So I can't just copy headers around. UriInfo definitely does not report the header correctly. So from all avenues, I can't find an answer. So far, my current method has been to simply hardcode the base path as a configurat

Re: Get HTTP Headers In CXF Bean

2012-03-29 Thread Willem Jiang
I Fixed the CXFRS Producer doesn't copy the message header issue last weekend. Can you try the latest Camel 2.9.2-SNAPSHOT to see if it works for you? On Thu Mar 29 21:38:17 2012, Calvert, Zach (Zach)** CTR ** wrote: The CXF component swallows all headers and doesn't pass them through. So I c

Still no MINA 2 / RxTx support on Camel 2.9 ?

2012-03-29 Thread c031917
I have seen activities to introduce MINA 2 in Camel instead 1.1.7, which would give us also support for tty interfaces , as far as i understood. But maven still pulls mina-core.1.1.7 for camel 2.9.1. Is there a chance to get tty / mina 2 in the near future ? I'd like to get rid of the python/st

Re: Still no MINA 2 / RxTx support on Camel 2.9 ?

2012-03-29 Thread Claus Ibsen
Camel 2.10 will have a camel-mina2 component. On Thu, Mar 29, 2012 at 4:42 PM, c031917 wrote: > I have seen activities to introduce MINA 2 in Camel instead 1.1.7, which > would > > give us also support for tty interfaces , as far as i understood. > > But maven still pulls mina-core.1.1.7 for cam

Re: Still no MINA 2 / RxTx support on Camel 2.9 ?

2012-03-29 Thread Alex Anderson
Hi Peter, Out of interest, what's the current problem with ttyUSB? Are serial ports not supported at all? Alex On 29 March 2012 18:49, Claus Ibsen wrote: > Camel 2.10 will have a camel-mina2 component. > > > On Thu, Mar 29, 2012 at 4:42 PM, c031917 wrote: >> I have seen activities to introdu

Re: RESTful web service support from Camel

2012-03-29 Thread Reuben Garrett
Zemin, let's take this conversation to the users' list , where participants focus on usage issues and will be better equipped to assist you. if you're interested in dynamic endpoint construction, take a look at these resources: http://camel.apache.org/dynamic-router.html http://camel.apache.org/

Re: Still no MINA 2 / RxTx support on Camel 2.9 ?

2012-03-29 Thread c031917
Hi Alex, no way today to collect data from serial/parallel ports and feed them onto the messaging bus without help from external programs. I do it with a python app who connects via stomp to the broker / router . But as Claus states to my question, in Camel 2.10 we should get it via MINA 2.

RE: C3P0 cannot load Jtds Driver in OSGi env

2012-03-29 Thread raad
Thanks Sven. I've seen the issue in several blogs. I appreciate the response. -- View this message in context: http://camel.465427.n5.nabble.com/C3P0-cannot-load-Jtds-Driver-in-OSGi-env-tp5601253p5604416.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: C3P0 cannot load Jtds Driver in OSGi env

2012-03-29 Thread raad
Reuben, I chose your method and it worked fine. Thanks for the response. But I do like the idea of having a fractional bundle where the dbcp and the jdbc driver live in the same classpath. Again thank for responding. -- View this message in context: http://camel.465427.n5.nabble.com/C3P0-cann

Re: C3P0 cannot load Jtds Driver in OSGi env

2012-03-29 Thread Reuben Garrett
glad it worked for you! Sven's example sounds more elegant and robust for a larger scenario, but it's pushing the boundaries of my current skill level. i'll revisit once i've learned more. ~ Reuben On Thu, Mar 29, 2012 at 12:02, raad wrote: > Reuben, I chose your method and it worked fine. T

support for RESTful endpoint or dynamic endpoint construction

2012-03-29 Thread Zemin Hu
Hi, I am new here, I posted this to developer forum which seems not good place for this, so I am re-posting it here. I have couple of RESTful web service that I want to use Camel as integration point. I had a brief review for restlet which is supposed to be the solution, but from I have seen, it's

Re: File-component not transacted?

2012-03-29 Thread Christian Müller
The file protocol per se doesn't support transactions. In Camel we try to mimic the transactional behavior with error compensation if something went wrong. But if we hit an error after we committed the JMS messages (which supports transactions), we cannot do anything else. Best, Christian On Thu,

Re: Updating database records with Java DSL JPA component

2012-03-29 Thread Christian Müller
The Camel JPA component doesn't support this use case at present, but I think it would be useful. Feel free to raise a JIRA [1] for it. And as you may know, we love contributions [2], [3]... ;-) [1] http://camel.apache.org/contributing.html [2] https://issues.apache.org/jira/browse/CAMEL [3] http:

Re: getting error while deploying application with apache cxf2.5.2

2012-03-29 Thread Christian Müller
I'm not sure if this is related to your problem, but you use the wrong namespaces in your xml. http://www.springframework.org/schema/util/spring-util-2.0.xsd should be http://www.springframework.org/schema/util/spring-util.xsd http://www.springframework.org/schema/beans/spring-beans-2.0.xsd should

Re: File-component not transacted?

2012-03-29 Thread Reuben Garrett
yes, i remember filesystem operations in java tending towards the "lowest common denominator" (e.g. locks are advisory [1]). maybe idempotency [2] in flows downstream of the file consumption could help achieve the desired behaviour? [1]: http://docs.oracle.com/javase/6/docs/api/java/nio/channels/

Re: File-component not transacted?

2012-03-29 Thread David Karlsen
Either that or commons. Transactions from apache. I have a spring transactionmanager abstraction of that again on github - could be interesting or not. Den 29. mars 2012 22:16 skrev "Reuben Garrett" følgende: > yes, i remember filesystem operations in java tending towards the "lowest > common den

Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-03-29 Thread Bilgin Ibryam
> if I did > getContext().getRegistry(); > I can not use "bind" because it is not a method of Registry (but of > JndiRegistry). > Why don't you do getContext().getRegistry() and then cast the Registry to JndiRegistry Then you can bind to the registry used I think Bilgin

Re: Have available data in several points of the route?

2012-03-29 Thread Bilgin Ibryam
Thanks Christian. I was wondering, what about if I need a context to store objects and access them from a different exchange (next on one the same route)? But probably in this case the best option is to have context object in the Registry and access registry from each exchange. hhhmm Bilgin On

Re: support for RESTful endpoint or dynamic endpoint construction

2012-03-29 Thread Bilgin Ibryam
Hi Zemin, inline On 29 March 2012 18:25, Zemin Hu wrote: > Hi, > I am new here, I posted this to developer forum which seems not good place > for this, so I am re-posting it here. > > I have couple of RESTful web service that I want to use Camel as > integration > point. I had a brief review fo

ProducerTemplate for sending mails with attachements

2012-03-29 Thread vcheruvu
Hi, I am using Camel-mail component to send emails out to clients for given byteOutputStream (content is html email) and imagesData in byte[] (image used in html content). ProducerTemplate.sendBodyandHeaders() has all the mail paramter details to send to client. However, I am not able to find a

Re: camel event cnotext

2012-03-29 Thread madhu
thank you and i will try it -- View this message in context: http://camel.465427.n5.nabble.com/camel-event-cnotext-tp5501233p5605651.html Sent from the Camel - Users mailing list archive at Nabble.com.

extract header from camel-mail component

2012-03-29 Thread Filippo Balicchia
Hello All, I need to extract one header from exchange when i try to send an email with camel-mail: For example from(blal).process("here i put my header") .to("smtps:/gmailcdjicjd") //at this point I' d like to filter my headers without delete it .process("Here i need to use my header"). Is it pos