Re: camel restlet usage

2016-07-26 Thread souciance
Hi Lw

I don't see a problem using the same port for the first two services.

For the third service, you get use the same port here too, 200 times in 24h
hours is not much. It depends more on the amount of data you are receiving.
If there is no particular requirement then all three can use the same port.

Best
Souciance

On Tue, Jul 26, 2016 at 6:44 PM, lw [via Camel] <
ml-node+s465427n5785477...@n5.nabble.com> wrote:

> Hello everyone,
> I want to get a better idea on internal server process that gets created
> when camel restlet is used. So far I have these 2 endpoints in production:
> http://localhost:29123/camel/cms/bulkLoader?restletMethods=get,post"/>
> http://localhost:29124/camel/rdf/bulkLoader?restletMethods=get,post"/>
> The 2 endpoints I use on a very rare occasions for bulk loading data, but
> the endpoints are always available, so the processes are always running.
> My understanding is that I have 2 separate internal servers running at the
> same time, although I rarely use them.
> Would it be better to use the same port instead of two? Should I keep the
> script commented out until I actually need to run them?
>
> I have a task right now in test that's set up a third endpoint:
> http://localhost:29125/camel/otv/item/update?restletMethods=get,post"/>
> This end point is going to get hit externally with regularity of about 200
> times in 24 hours. Is this a good use for a restlet? Or would it be better
> to set up a server?
> Also, would it be better to use the same port for all 3 endpoints?
> Thank you for your time. lw
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/camel-restlet-usage-tp5785477.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-restlet-usage-tp5785477p5785483.html
Sent from the Camel - Users mailing list archive at Nabble.com.

How to dynamically change/redirect choice/when option?

2016-07-26 Thread David Hoffer
We have several file routes that have several 'when' clauses in a 'choice'
element (XML config).  I need a way to let the user disable some of the
'when' options at runtime.  Each 'when' clause currently just has a 'to'
file URI.

Note I can't just stop the route that picks up the file at the above 'to'
URI because if I did that the files would continue to be produced at the
'to' URL.

I need to somehow disable the 'when' so that the files never get directed
anywhere because we have an ortherwise/stop clause in the choice...so files
that are not recognized go nowhere which is the correct behavior.

I could possibly wrap each of the when elements with another choice/when
that simply checks a bean if the 'when' is enabled but it feels like Camel
might already handle this more elegantly.


Part 2:
If I go with the custom bean idea, is there a way to pass method parameters
to the bean inline in the simple (or some other) expression?  Currently I
set the method parameter in a camel header and then the bean gets it via
annotations but would prefer to pass it directly if possible.  E.g.
currently I have this just to check if the when is enabled.


ingestXdomain_OC



bean:routeEnabled?method=isEnabled







-Dave


camel restlet usage

2016-07-26 Thread lw
Hello everyone, 
I want to get a better idea on internal server process that gets created
when camel restlet is used. So far I have these 2 endpoints in production: 
http://localhost:29123/camel/cms/bulkLoader?restletMethods=get,post"/>
http://localhost:29124/camel/rdf/bulkLoader?restletMethods=get,post"/>
The 2 endpoints I use on a very rare occasions for bulk loading data, but
the endpoints are always available, so the processes are always running. 
My understanding is that I have 2 separate internal servers running at the
same time, although I rarely use them. 
Would it be better to use the same port instead of two? Should I keep the
script commented out until I actually need to run them? 

I have a task right now in test that's set up a third endpoint:
http://localhost:29125/camel/otv/item/update?restletMethods=get,post"/>
This end point is going to get hit externally with regularity of about 200
times in 24 hours. Is this a good use for a restlet? Or would it be better
to set up a server?
Also, would it be better to use the same port for all 3 endpoints? 
Thank you for your time. lw



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-restlet-usage-tp5785477.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camel-jcifs SMB issues

2016-07-26 Thread ET
I'am facing the same issues. See my post in stackoverflow 
http://stackoverflow.com/questions/38432220/error-message-unable-to-create-new-native-thread-using-smb-endpoint

  
SMB causes a peak in the number of threads. I only see this in my Production
environment, in my test environment there is no problem.

Did you find the cause of this issue?




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-jcifs-SMB-issues-tp5778553p5785475.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Spring Bean error Handling

2016-07-26 Thread Vitalii Tymchyshyn
Then it's up to you to check the connectivity in some @PostConstruct method.

Вт, 26 лип. 2016 00:14 користувач fxthomas  пише:

> hi,
>
> I am not using any specific camel componenet to access DB. just plain old
> JDBC after getting the datasource which is injected in the bean.
>
> My main issue to track the DB connection issues which is happening in my
> custom code when the issue goes more than a limit suspend all the routes
> running in the camelcontext.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Spring-Bean-error-Handling-tp5785414p5785450.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Why is camel ignoring Startp event error

2016-07-26 Thread fxthomas
hello ,

 I see in my logs the below 
*2016-07-26 15:39:11,523  WARN [org.apache.camel.spring.Main.main()]
(EventHelper.java   :807)   - Error notifying event Starting
CamelContext: camel-1. This exception will be ignored. *
java.sql.SQLException: Cannot create PoolableConnectionFactory (IO Error:
The Network Adapter could not establish the connection)

I am not sure why camel is ignoring this exception. 

I have tried to use a Onexception clause but apparantely my bean does not
get called also.

below the camelcontext

 http://camel.apache.org/schema/spring; >
  
java.sql.SQLException
   
  true
   
   




--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-is-camel-ignoring-Startp-event-error-tp5785465.html
Sent from the Camel - Users mailing list archive at Nabble.com.