Re: Testing DSL based on Apache Camel

2013-10-21 Thread David MacDonald
I've received some feedback and refactored it to give an appearance of being a Camel-style DSL for testing, i.e. This gets rid of a lot of the bootstrap code there was with JUnit. Any more feedback is more than welcome. -- View this message in context: http://camel.465427.n5.nabble.com/Testi

Re: Testing DSL based on Apache Camel

2013-10-07 Thread David MacDonald
Yeah the name can be a bit confusing, especially with regards to unit testing but it's the closest to a 'unit' that we can achieve with certain service buses... You can also test asynchronous services i.e. if we have a message canonicalizer that takes a target-system message off a JMS destination

Re: Testing DSL based on Apache Camel

2013-10-06 Thread David MacDonald
Hi Charles, I'm not quite sure what you mean; I'm guessing you can set this via the standard CXF URI format that Camel follows. E.g. It might be possible to set WS-Policy like this but I haven't found a way yet. I was hoping to keep the Camel components quite separate to the testing dsl so that

Testing DSL based on Apache Camel

2013-10-06 Thread David MacDonald
Hi guys, I've recently started work on SOAUnit , a DSL for testing external (or Camel internal) integration artifacts that uses Apache Camel components and test framework. Basically our use case is to be able to automatically 'unit' test mega-ve

Re: Weblogic JMS Security Issues - A possible resolution

2013-07-04 Thread David MacDonald
Hiya, So runPrivilegedActionAsSubject maintains the same thread. Using the thread EIP used new threads, and there was a warning on the Camel documentation page that new threads would cause issues for Spring transactions, so I avoided this route (although not thoroughly researched). So for Inbound

Re: Weblogic JMS Security Issues - A possible resolution

2013-07-03 Thread David MacDonald
Hi, Yeah I saw most of those pages but none were particularly satisfactory. I didn't spend too much time on the solution of publishing to JMS from Camel because I haven't needed to use it in any real environment. Publishing to two different environments certainly throws a spanner in the works for

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread David MacDonald
Hi Willem, I made my own ExpressionAdapter which is effectively a copy paste of ExpressionBuilder.toExpression that accepts an additional boolean for whether to (shallow) copy the exchange, i.e. Exchange toExchange = replaceExchange ? exchange : exchange.copy(); I'll raise a JIRA/code sample it

Weblogic JMS Security Issues - A possible resolution

2013-07-02 Thread David MacDonald
Hello all, I've been attempting to use Camel/Spring JMS with Weblogic Server (10.3.6) JMS destinations and it works just fine without secure destinations, but using secure destinations results in the exception: /weblogic.jms.common.JMSSecurityException: Access denied to resource: type=, applicatio

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread David MacDonald
Hi Willem, I guessed this much. Oracle Service Bus has a service call feature out which could do callouts to internal routes without affecting the incoming message which was quite useful. I might see if I can come up with a reusable Expression that does something similar. Cheers, David -- View

Choice sendTo and overwriting exchange body

2013-06-27 Thread David MacDonald
Hi all, I'm attempting to use a sub-route via the sendTo expression to act as a filter (this involves a callout to a web-service), however I run into a problem in that the sendTo callout overwrites the original exchange body. For example, ... .choice() .when(sendTo("direct:someFilterService").isEq

Re: Help with Logging Config in WebLogic

2013-05-25 Thread David MacDonald
Hi Yaxiong, I have had similar problems with other software (not Camel) when using log4j on Weblogic. Our solution was to use: http://docs.oracle.com/cd/E21764_01/web./e13739/config_logs.htm#i1014785, and in one case we used a custom startup class to force the load of log4j configuration. Che