Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread dantam74
Importing the resource sounds like a good idea :-) I tried it but unfortunately I get the following error: Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'import'. One of '{http://www.osgi.org/xmlns/blueprint/v1.0.0:description,

camel cache

2013-09-02 Thread lmanchanda75
Hi,The camel cache implementation which provides an ehcache integration component forces a serializable object though ehcache allows non-serializable objects too if clustering is not required. This makes in unusable for some scenarios. Any specific reason for doing so?Regdslalit -- View this

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread Willem jiang
Oh, you are using Blueprint. Current Blueprint doesn't support to import the resource like the Spring does. You may need to consider export the camel-conetxt as a service and import this service in another blueprint. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: How to pass properties between endpoints...

2013-09-02 Thread Claus Ibsen
There is 2 kind of properties with Camel - properties on Exchange - property placeholder They are very different. You can find details on the Camel doc if you search a bit and read. On Mon, Sep 2, 2013 at 4:06 AM, apara ap...@standardset.com wrote: Before converting the event to JSON, I would

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread dantam74
Aha :-) I tested in Spring and it works. I think the service approach actually is what I'm looking for, since the import seems to run the xml-file again, which means if I include it in many files, camel will try to define the routes in the included files as many times as it's included. Where

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-09-02 Thread pradeep
Hi, I think you can refer the below mentioned link for creating a service in one blueprint and use the same service in other blueprint. http://www.ibm.com/developerworks/xml/library/os-osgiblueprint/index.html You have to use Service reference managers and Service managers for

Change timer runtime

2013-09-02 Thread lassesvestergaard
Hi all. I have a problem regarding changing the timer period on the fly. My concrete problem is that I have around 1.200.000 historic records I need to extract at one time, and the database table is updated every 24 hours. Furthermore I'm extracting from a Microsoft SQL database. My preliminary

Re: Change timer runtime

2013-09-02 Thread Marco Westermann
Hi, I think you have more opinions to reach your goal. One easy solution would be to use the quarz component instead of the timer. You can configure the quarz component by a cron config. Therefor you could configure that it should run as many times as you need to process all rows.

Re: The Message header with the name of CxfConstants.OPERATION_NAME

2013-09-02 Thread Ernest Lu
Thanks for your reply I have a test case like this: public class CXFTest extends CamelTestSupport { protected static Endpoint endpoint; protected static WebServiceTestImpl implementor; public static String proxyAddress =

Re: The Message header with the name of CxfConstants.OPERATION_NAME

2013-09-02 Thread Willem jiang
CXF client is using the operation qName to look up the request method. As you specify another targetNamespace which we cannot tell from the SEI package name, you need to specify the header of CxfConstants.OPERATION_NAMESPACE at the same time. -- Willem Jiang Red Hat, Inc. Web:

camel-exception-handler

2013-09-02 Thread mahii.in87
Hi , How to handle target invocation exception in camel.The secnario is like this .If the target in the jaxwsclient throws any invocation exception .The exception hadler shoud handle the exception and update the database table with sme error information.What change should i need to make in this

Re: Change timer runtime

2013-09-02 Thread Claus Ibsen
Hi You can also use a route policy, and then just mark the exchange to stop if you do not want to route anymore today. Then the timer keeps running. There is an onExchangeBegin method where you can mark the exchange to stop with // mark the exchange to stop continue routing

Re: camel cache

2013-09-02 Thread Claus Ibsen
Hi There is no specific reason. We welcome contributions so feel free to log a JIRA and if possible provide a patch with this improvement. http://camel.apache.org/contributing.html On Sun, Sep 1, 2013 at 7:11 PM, lmanchanda75 lmanchand...@gmail.com wrote: Hi,The camel cache implementation

Re: Referencing OSGi services with RouteBuilder classes for use in CamelContext

2013-09-02 Thread Claus Ibsen
Hi Do you have the stacktrace for this? Not sure why blueprint gives you the proxy class, could be that the osgi registry in camel-core-osgi should detect its a proxy class and get the target class automatic. But a stacktrace / or sample project to reproduce would be lovely to play with. On

Re: camel cache

2013-09-02 Thread lmanchanda75
Hi Claus, I have created the following Jira ticket. https://issues.apache.org/jira/browse/CAMEL-6698 Will work to do the improvement and submit. Regds lalit -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-tp5738435p5738509.html Sent from the Camel - Users

Re: New book about Apache Camel

2013-09-02 Thread ABouchama
Congratulations! We have ordered a copy, and we are waiting now the delivery :) Regards, Abdellatif -- View this message in context: http://camel.465427.n5.nabble.com/New-book-about-Apache-Camel-tp5738426p5738514.html Sent from the Camel - Users mailing list archive at Nabble.com.

Problem with FailOverLoadBalancer

2013-09-02 Thread Sebastian Bösl
Hi, I've a problem calling a REST based service with dynamic uris in combination with a failover load balancer. Below is how I do it at the moment but I'm open to better solutions. It would also be great if there is a way that I can inject a dynamic number of endpoints, so I could inject a

Help required with Camel for HTTP service.

2013-09-02 Thread yvsandeep
Hi, I am new to Apache Camel.I am trying to create a HTTP ping-pong service using Apache Camel.Here is the flow. HTTP Client - Apache Camel - HTTP Webserver Here are the programs that I am using. Main pgm --- import org.apache.camel.spring.Main; public class Test { public

Re: Referencing OSGi services with RouteBuilder classes for use in CamelContext

2013-09-02 Thread Claus Ibsen
I was able to reproduce the issue and logged a ticket https://issues.apache.org/jira/browse/CAMEL-6699 On Mon, Sep 2, 2013 at 1:19 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Do you have the stacktrace for this? Not sure why blueprint gives you the proxy class, could be that the osgi

Re: Referencing OSGi services with RouteBuilder classes for use in CamelContext

2013-09-02 Thread Martin Stiborský
wow you are fast, thank for checking this out On Mon, Sep 2, 2013 at 3:35 PM, Claus Ibsen claus.ib...@gmail.com wrote: I was able to reproduce the issue and logged a ticket https://issues.apache.org/jira/browse/CAMEL-6699 On Mon, Sep 2, 2013 at 1:19 PM, Claus Ibsen claus.ib...@gmail.com

Re: Help required with Camel for HTTP service.

2013-09-02 Thread Christian Posta
The jetty component is by default in-out.. so there isn't anything special you need to do to get the response from remoteIP to get sent back to the calling HTTP client. The real question here is, what does this do? Do you see your debug statements printing out (Routing)? Do you see any

Re: Help required with Camel for HTTP service.

2013-09-02 Thread yvsandeep
Hi, Thank you for clarifying on the jetty component.This application will start off as a proxy service doing nothing but passing the requests/responses between the clients and servers.We will add additional functionality such as XML transformation etc in future. Yes,I do see the debug messages

Re: camel-exception-handler

2013-09-02 Thread Christian Müller
Checkout [1]. A global scoped example: onException redeliveryPolicyRef=sapRedelivery exceptionjava.lang.Exception/exception to uri=.../ /onException route from uri=cxf:bean:.../ to uri=.../ /route A route scoped example: route from uri=cxf:bean:.../ onException

Re: Help required with Camel for HTTP service.

2013-09-02 Thread Christian Posta
Maybe you can try a curl command on the remoteIP endpoint to make sure it's responding? On Mon, Sep 2, 2013 at 8:10 AM, yvsandeep sandeep.venk...@bt.com wrote: Hi, Thank you for clarifying on the jetty component.This application will start off as a proxy service doing nothing but passing

Re: Netty and requestTimeout

2013-09-02 Thread fbarbat
Hi, This test reproduces the exception. The System.in.read() at the end is just to wait for the exception to appear. Any ideas? Thanks. package camel.test; import java.io.IOException; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.junit4.CamelTestSupport; import

Re: Netty and requestTimeout

2013-09-02 Thread fbarbat
Sorry, I forgot to mention I'm using 2.11.1 -- View this message in context: http://camel.465427.n5.nabble.com/Netty-and-requestTimeout-tp5738341p5738534.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf and HTTP BASIC authentication

2013-09-02 Thread Christian Müller
Yes, we got it working. I can post the relevant code snippets here tomorrow. Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member:

Re: Time to deliver a message?

2013-09-02 Thread Christian Müller
I'm afraid we need a (simple) unit test which shows this issue to investigate on it. We also using ActiveMQ in our PROD environment and don't see this issue. May be it's related to your use of the producer template or an issue in your custom code... Can you share your original route (if you are

Re: JAAS Basic Auth using http:conduit

2013-09-02 Thread Christian Müller
{http://example.com/}HelloWorldServicePort.http-conduit == {namespace}port name.http-conduit The configuration you posted is, I assume, borrowed from [1] and shows the client side configuration. But you are asking for the server side configuration... I will post my solution tomorrow in the other

Re: Time to deliver a message?

2013-09-02 Thread John D. Ament
Yeah, one theory I have is that the webservice we have to call in the middle is taking longer than expected. I also found an issue (on my side) where certain routes weren't getting set up right. I'm going to leave debug on for a while on my machine, see what the logs produce and go from there.

Programmatic vs URI based endpoint definition

2013-09-02 Thread Tom Ellis
Hi All, I asked this on stackoverflow [1] and didn't get a response, but this is obviously a better spot to get questions answered. Consider the following: public class MyRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { FileEndpoint