How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-20 Thread Frank Ertl
Hi guys, we have the following scenario: Orders are stored to an Oracle AQ queue from where we read the messages by a JmsComponent and deliver the content to a webservice. If anything goes wrong we should redeliver the messages with exponential backoff starting with a delay of 15 minutes. er

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-21 Thread Frank Ertl
Hi Claus, thanks for the info, even if that's not what I hoped for In fact it's not so easy to do this things with OracleAQ, furthermore it leeds to distributing logic between application and database which should be avoided IMHO. By the way I already configured asyncConsumer=true My JmsCompone

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-21 Thread Frank Ertl
Hi Preben, yeah, redelivery is no problem creating the queue, exponential backoff is... You can have a workaroung using propagation but this leads to logic distribution as I mentioned in my answer to Claus above. Unfortunately the exponential backoff is definitely required. Perhaps we should move

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-22 Thread Frank Ertl
Hi Preben, a real snip would be really useful indeed. Still I'm not shure how this is going to work, taking into account that the last backoffintervall will be 12 hours. Regards, Frank -- View this message in context: http://camel.465427.n5.nabble.com/How-to-avoid-blocking-threads-in-JmsCo

JPA-Endpoint in onException is not committed

2015-04-15 Thread Frank Ertl
Hi folks, I have the following RouteBuilder: onException(Throwable.class) .handled(true) .bean(orderStateChanger, "changeOrderStateToWaiting") .to("jpa:Order"); from("jms:order_queue") .routeId("Order_Route") .transacted() .setHeader(ORDER_

Re: JPA-Endpoint in onException is not committed

2015-04-16 Thread Frank Ertl
OK, I found it out myself: somehow the TransactionErrorHandler and Spring's PlatformTransactionManager don't work so well together. If I remove the .to("jpa:Order"); in the onException everything works well. So I got another question: Should I update the wiki.description for the jpacomponent and

How to Use ProducerTemplate for testing secure CXF-WS?

2013-04-15 Thread Frank Ertl
Hi there, currently I'm trying to test a route starting with an cxf-endpoint using a ProducerTemplate. I add the necessary securityheaders like this: Document document = message.getSOAPPart(); WSSecHeader securityHeader = new WSSecHeader(); securityHeader.setMustUnderstand(false); securityHeader

Re: How to Use ProducerTemplate for testing secure CXF-WS?

2013-04-16 Thread Frank Ertl
Hi Willem, thanks for your response. I'm using PAYLOAD-mode in my cxf consumer. I already found the page you referred to and tried to set the headers of the CxfPayload-object like this: Processor soapHeaderProcessor = new Processor() { public void process(Exchange exchange) throws E

Custom component for weird legacy format

2013-05-23 Thread Frank Ertl
Hi everybody, we have to implement a route that listens on a defined http-port and receives a message with a very strange legacy format. Partly XML, partly TLV (tag-length-value). I wonder what would be the best option to overcome this mess. Writing a custom component that could work as a consume

Re: Custom component for weird legacy format

2013-05-24 Thread Frank Ertl
Hi all, many thanks for your helpful responses. As I don't have to deal with headers I'll write a custom DataFormat. Regards, Frank -- View this message in context: http://camel.465427.n5.nabble.com/Custom-component-for-weird-legacy-format-tp5733030p5733070.html Sent from the Camel - Users ma

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-26 Thread Frank Ertl
Hi, I had a similar problem when deploying camel 2.10.2 to weblogic 12c. Tracking the problem down I found it was a classloader issue. Could you try to put a file "weblogic.xml" with the following content in your WEB-INF-folder? http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="ht

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Frank Ertl
Hi, try to remove the slf4j-jars from your deployment. The error states that the slf4j-classes got mixed up between two classloaders. Could be that there will be following errors of the same type. This happens when weblogic loads singleton classes at startup. I found it sometimes really painful t

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-29 Thread Frank Ertl
Hi Claus, you're absolutely right. It is this thread: http://camel.465427.n5.nabble.com/Help-on-deploying-Camel-on-Weblogic-12c-Name-Collision-td5720837.html I had the same issue and this

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-29 Thread Frank Ertl
Sorry, my fault. Sometimes my memory is like a sieve. I looked at my patched camel-spring-2.x.y.jar and found that the class mentioned in the above post ist not the correct one (at least for my combination of camel, spring and java-version). In my jaxb.properties I have the line as follows: javax.

Re: Camel Weblogic 12c

2013-05-30 Thread Frank Ertl
Hi Jose, as I stated in this thread: http://camel.465427.n5.nabble.com/Spring-Camel-Context-initialization-error-in-weblogic-12c-td5733202.html the error concerning JAXB is a classloadi

Security: Input validation in camel

2013-06-20 Thread Frank Ertl
Hi folks, is there any input validation in camel regarding secure coding guidelines as the OWASP suggests (check for nullbytes, hazardous characters, and so on)? My research in the mailinglist and the wiki didn't turn up anything, but that doesn't mean there is no such thing. If there is really

Does Jetty change CRLF?

2013-06-28 Thread Frank Ertl
Hi, I experience a strange behaviour using jetty as a consumer. When I send a POST-request from my client-application the line separator is \r\n as per http-spec. When I look at the InputStreamCache of the exchange there is only \n left. Is there a way to change this behaviour? Camel-Version is