Re: Programmatic vs URI based endpoint definition

2013-09-02 Thread James Strachan
On 2 September 2013 21:52, Tom Ellis wrote: > 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

Re: camel-jetty + authentication JAAS

2013-09-02 Thread contactreji
Hi Charles I am also in the task of achieving the JAAS auth. I need your help. Would you mind posting the dependencies you have used. Would be really nice if you let me know how did you configure the JAAS. Have you pasted the above code in a separate XML file? I am getting issues with resolving

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 dropLocation

Re: JAAS Basic Auth using http:conduit

2013-09-02 Thread Christian Müller
{http://example.com/}HelloWorldServicePort.http-conduit == {}.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 thread you are ask

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. W

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 not

Re: Netty and requestTimeout

2013-09-02 Thread fbarbat
As a workaround, I implemented a handler which modifies the pipeline on every request so the ReadTimeoutHandler is removed once the response is read. Specifically, a CamelRequestTimeoutHandler is inserted before Camel's ClientChannelHandler. My handler inserts a ReadTimeoutHandler on write and remo

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: https://www.apache.org/foundat

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: 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 org

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 wrote: > Hi, > > Thank you for clarifying on the jetty component.This application will start > off as a proxy service doing nothing but passing the requests/response

Re: camel-exception-handler

2013-09-02 Thread Christian Müller
Checkout [1]. A global scoped example: java.lang.Exception A route scoped example: java.lang.Exception [1] http://camel.apache.org/exception-clause.html Best, Christian - Software Integration Specialist Apache Camel committer: https://cam

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: 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 except

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 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 wrote: > > Hi > > > > Do you have the stac

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 wrote: > 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-

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 { publi

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 thrid

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.

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 mail

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 Mon,

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 wrote: > Hi,The camel cache implementation which provides an ehcache

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 excha

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 b

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: http://www.r

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 = "http://localhost:11000/cxf/proxy/

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. http://cam

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 t

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 creating/accessing

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 s

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 wrote: > Before converting the event to JSON, I would like to store some v