Re: camel blueprint - unit tests

2013-09-09 Thread AlanFoster
@Claus - This is true when deployed to an OSGi container. However, within the context of camel testing this is not true. When using the camel testing framework you need to supply all of the camel routes within your `getBlueprintDescriptor` @fs I just wanted to add; In my experience i have found it

Re: camel blueprint - unit tests

2013-09-09 Thread AlanFoster
Hi there, if you scroll up in your logging/console you may see that the route has failed to deploy? You also seem to be mixing Spring and Blueprint XML configuration, for instance `import` is relevant to Spring, and not blueprint, and you can safely delete the `` code also. It's also worth notin

Re: Web based camel route automation

2013-09-09 Thread AlanFoster
Hi there, My suggestion would be to host your camel application in a container such as Karaf/SMX and run it as a OS service. This will allow you to restart your container automatically on a failure etc. It would be advisable to make use of Transactions in your routes and a persisted transport mec

Re: aggregator duplicate messages

2013-09-09 Thread AlanFoster
Hi there, Could you post the rest of your code/logs please? And, you're using `equals`, and not `==` I hope? :) -- View this message in context: http://camel.465427.n5.nabble.com/aggregator-duplicate-messages-tp5738848p5738850.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: IntelliJ plugin for Camel / Blueprint / Karaf

2013-08-27 Thread AlanFoster
No problem! If you run into problems or have any ideas, be sure to create an issue on Github :) -- View this message in context: http://camel.465427.n5.nabble.com/IntelliJ-plugin-for-Camel-Blueprint-Karaf-tp5737966p5738068.html Sent from the Camel - Users mailing list archive at Nabble.com.

IntelliJ plugin for Camel / Blueprint / Karaf

2013-08-26 Thread AlanFoster
Hey guys, Just letting you know that if you're doing any sort of Blueprint Camel development using IntelliJ that I've just released a new plugin to help with developer productivity :) The project is open source and further information is available here https://github.com/AlanFoster/C

RE: Hello World? Maybe not :)

2013-07-18 Thread AlanFoster
It's worth noting that if you are not in the context of a test, then making use of the "direct" component will not allow for the route to be called externally. If you are calling this from a unit test, then you will be able to call your route with a producer template for template.sendBody("direct

Re: REST best practices

2013-07-14 Thread AlanFoster
Hi, I imagine your implementation may be able to leverage the enrich enricher[0] pattern after receiving the initial request - or make use of recipientsList with in/out MEP and an expression language of your choice to extract out the required URL if it's dynamic - as suggested by your last line; T

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Thanks for the great answer Babak :) -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-method-attribute-bean-and-ref-tp5733348p5733371.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Hi, I wonder if there a way to provide any sort of deprecated metadata within the generated Camel xsd? For instance this metadata would be great for tooling, as I would really like to highlight elements/attributes as being deprecated within camel routes when inside an IDE; Having this information

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Thanks for your reply Claus. Will the documentation for http://camel.apache.org/bean-language.html need to be updated to use the 'ref' attribute maybe? This is from the documentation page above Shall I update the page and add a note for this, or is there an existing dedica

Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Hi, I was just wondering what the differences between the 'ref' and 'bean' attribute are within the method XML type. For example and Thanks, Alan -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-method-attribute-bean-and-ref-tp5733348.html Se

Re: How to avoid sending message headers with mail component ?

2013-05-08 Thread AlanFoster
Hi, Are there any examples of using a header filter strategy with the camel mail component? I can not see this option within the camel-mail page, not in the camel-mail MailConfiguration.java I assumed camel might be handle this filtering itself, but this I'm not sure this is true as the document

Re: Links to empty pages on website?

2013-03-27 Thread AlanFoster
I wonder if confluence allows link checking at all? It would be be nice to have an automated process of checking dead links -- View this message in context: http://camel.465427.n5.nabble.com/Links-to-empty-pages-on-website-tp5729759p5729859.html Sent from the Camel - Users mailing list archiv

Re: My camel-CXF tests fails, if they run together

2013-03-26 Thread AlanFoster
Hi milanmilas, There's also a helper method that will return the next available port, which might be relevant to what you're doing :) It can be found under AvailablePortFinder, here is an example of its usage `vailablePortFinder.getNextAvailable()` There's more information here about it here too

Re: Drools with Camel

2013-03-18 Thread AlanFoster
For those guys who arrive at this question from Google, here's a quick answer to this question: There is a basic maven archetype for a drools+camel example - the source can also be found he re https://github.com/FuseByExample/camel-drools-example. Also try looking at the drools integration docu

Re: Camel blueprint and drools

2013-03-12 Thread AlanFoster
camel drools example > (still with spring) to see if I could eliminate more of the uberjar > stuff... > > You may want to try your tests against latest snapshot to see if at > least the OSGi parts work better... > > Scott > > On Fri, Mar 8, 2013 at 7:53 AM, AlanFoste

Re: Camel blueprint and drools

2013-03-08 Thread AlanFoster
his is because the camel context doesn't know about the GridNode class declared in a completely different bundle... I wonder if there's an easy way to make this work at all? I would greatly appreciate any help you can give :) Claus Ibsen-2 wrote > On Thu, Mar 7, 2013 at 2:04 PM,

Re: Camel blueprint and drools

2013-03-07 Thread AlanFoster
is a Camel and Drools example here > https://github.com/FuseByExample/camel-drools-example > > > On Thu, Mar 7, 2013 at 1:03 PM, AlanFoster < > alan@ > > wrote: >> Hi all, >> >> Just wondering if there's any examples of drools running under bl

Camel blueprint and drools

2013-03-07 Thread AlanFoster
Hi all, Just wondering if there's any examples of drools running under blueprint? I can see that there is a camel-spring example, which works great, but not a camel-blueprint example anywhere I'd appreciate if anyone knows anything about this :) Thanks, Alan -- View this message in context:

Re: How to stop CXF to generate it's own wsdl

2012-12-16 Thread AlanFoster
As Christian Mueller mentioned, it would be good to see your cxf endpoint... I assume you are using wsdl2java and giving the cxf endpoint a SEI? If you are using payload/message format then it's probably worth a mention you don't need the java classes and you can simply give cxf your desired wsdl,

Re: Simple Expression With And Condition doesnt work in Camel 2.8

2012-12-09 Thread AlanFoster
Oh, I just noticed another small mistake. You've wrapped everything in speech marks, this isn't necessary in the xml dsl ${property.noun} contains 'Hello' and ${property.verb} contains 'World' -- View this message in context: http://camel.465427.n5.nabble.com/Simple-Expression-With-And-Condit

Re: Simple Expression With And Condition doesnt work in Camel 2.8

2012-12-09 Thread AlanFoster
You have stored the information on the exchange's properties, so you need to use the correct simple syntax ("${property.noun} contains 'Hello' and ${property.verb} contains 'World'") -- View this message in context: http://camel.465427.n5.nabble.com/Simple-Expression-With-And-Condition-doesn

Re: Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-23 Thread AlanFoster
Thanks Christian for the links. This will be my 6th patch now however! :) The link for the patch is here : https://issues.apache.org/jira/browse/CAMEL-5643 And the relevant Camel Development post: http://camel.465427.n5.nabble.com/Patch-CAMEL-5643-Allow-users-to-store-body-and-arbitrary-headers-a

Re: Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-09 Thread AlanFoster
@Claus I think adding such an option to the existing JDBC AggregationRepository would be a good idea too. Particularly as the current JDBC AggregationRepository code is not very friendly for extending/encapsulating - as everything useful is marked final or private. I shall work on an implementatio

Re: Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-08 Thread AlanFoster
Thanks for your Response Christian I wonder if there's a nice way to keep all of the functionality of the current Jdbc aggregator that the sql-component offers, but just change the way it marshalls the data? Through blueprint property setters I looked into the source code for this area, and I not

Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-07 Thread AlanFoster
Hi All I am currently using camel's sql-component in order to define a aggregationRepositoryRef for the aggregator component. The aggregator currently stores all of the information in the Aggregator table as a BLOB. Is there a way to change this? The documentation here http://camel.apache.org/sq

Re: Accessing osgi blueprint property-placeholder across multiple bundles

2012-09-03 Thread AlanFoster
@Freeman-2 Hm, this isn't good to hear :( Do you happen to know of any alternatives for this? I wish to share common configuration across bundles with blueprint somehow Alan -- View this message in context: http://camel.465427.n5.nabble.com/Accessing-osgi-blueprint-property-placeholder-acro

Accessing osgi blueprint property-placeholder across multiple bundles

2012-09-01 Thread AlanFoster
Hi I have a question concerning this example : http://camel.apache.org/properties.html#Properties-UsingBlueprintpropertyplaceholderwithCamelroutes I wonder if these inlined proerties can be accessed across many bundles? IE bundle A defines a property-placeholder and bundle B is able to access tho

Debugging Live Camel Routes

2012-08-28 Thread AlanFoster
Hi, I have a quick question about whether it is possible to debug the java code in a processor on a deployment to the ESB container. I currently have Fuse IDE and it allows me to inspect the running routes at runtime, but I wonder if it is possible to add break points into the processor's java co

Using Simple header notation to define where to send a message

2012-08-14 Thread AlanFoster
Hi, I'm wondering if it's possible to define a header to set up where an exchange should be send to, then access it through simple within the "to" uri. For instance I have one route which sets up what service I need to send a message to. Then the other message sends it to the required service, th