Encrypted Blueprint property-placeholders doesn't (shouldn't?) work inside Camel Context

2016-05-23 Thread sohrab
This item was raised with the Red Hat guys where we were told that using
 doesn't decrypt the messages inside Camel
Context (works only in Blueprint beans):

https://issues.jboss.org/browse/ENTESB-5482

So I am a little confuse when I look at this sample:

https://github.com/apache/camel/blob/master/tests/camel-blueprint-cxf-test/src/test/resources/org/apache/camel/test/cxf/blueprint/CxfEndpointBeans.xml

Do encrypted property-placeholders somehow get decrypted when used in
http://camel.apache.org/schema/blueprint/cxf but not in
http://camel.apache.org/schema/blueprint?

Can anyone shed some light on this?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Encrypted-Blueprint-property-placeholders-doesn-t-shouldn-t-work-inside-Camel-Context-tp5782987.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Can you add a RouteDefinition to a CamelContext while it's running?

2016-05-23 Thread Matt Sicker
This could be handy for OSGi environments, but the javadocs aren't explicit
about what you can modify after you execute CamelContext::start().

-- 
Matt Sicker 


Re: Strange issue with JDBC add Postgres

2016-05-23 Thread patelp7
Hi Tim,
Can you possible provide me a snippet of what your route actually looks like
with the workaround? I ran into same problem where my fetchsize is not
working and I want to have a work around while still using camel.

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/Strange-issue-with-JDBC-add-Postgres-tp5758548p5782983.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Routing with logic

2016-05-23 Thread Steve Huston
I am not a Camel expert, but one way to approach this would be to have a 
process that reads from your external APIs and put the resulting messages into 
a queue (for example, using AMQP). Then your camel route can read messages 
'from' the queue.

If your external APIs have a camel component integration, that would be easier.

-Steve Huston

> -Original Message-
> From: miri eyni [mailto:miri.e...@sapiens.com]
> Sent: Monday, May 23, 2016 6:39 AM
> To: users@camel.apache.org
> Subject: Routing with logic
> 
> hi
>  i need to implement routing with processing.
> processing the request should read from different APIs (external API ) for
> create a new request to the endpoint.
> 
> how is the best way to implements it?
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Routing-
> with-logic-tp5782944.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


camel-jdbc fetchSize out of memory error

2016-05-23 Thread patelp7
I am trying to ingest data from postgres to another DB and I am using
camel-jdbc component to do it. I have a large table so I want to read few
rows at a time instead of the whole table altogether. so my route looks like
below (only for testing purpose)
from(fromUri).setBody("select * from 
 limit
10").to("jdbc://myDataSource?resetAutoCommit=false=2").split(body()).streaming().process(test)

As shown above, I am only getting 10 rows at a time for testing purpose and
I have set fetchSize to 2 to only receive 2 rows at a time. However, I am
still receiving all 10 rows altogether. When I remove the "limit 10" from
the query I get Out of Memory error just before the split command which
tells me that its trying to load the entire result set in memory.

What am I missing here or what am I doing wrong? 

Thanks for help.



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-jdbc-fetchSize-out-of-memory-error-tp5782974.html
Sent from the Camel - Users mailing list archive at Nabble.com.


are camel routes non blocking

2016-05-23 Thread kumar5
Hi 

I am using spring rest and calling camel routes (rest client camel route or
camel kafka producer ).
is camel  non- blocking .  if not, are we have future plan to add non
blocking in camel routes.
how camel producer or consumer  works.
Please help me to understand this.



--
View this message in context: 
http://camel.465427.n5.nabble.com/are-camel-routes-non-blocking-tp5782967.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel netty detect client disconnect

2016-05-23 Thread souciance
Hello,

Is there any way for the camel netty 4 component to detect when a client
channel has disconnected? I need to clear out some data specific to clients
when they disconnect. 

I know if I write my own handler than I can access the netty methods to
listen for disconnect events but was wondering if these are exposed via
Camel or if there is another recommended approach? Otherwise I would be
duplicating a lot of the code already written here:
https://github.com/apache/camel/blob/337a6756480354afea7531a1a4216de9d232f211/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/handlers/ServerChannelHandler.java

Best
Souciance



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-netty-detect-client-disconnect-tp5782966.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Help w/ rest response JSON binding with Jackson

2016-05-23 Thread Patrick696
Hi,
I am having a heck of a time figuring out how to return raw json from my
camel rest routes.

If I do something like:
.marshal(format)
.convertBodyTo(String.class)
I always get something like:
"{\"status\":200,\"error\":success,\"data\":...}"

If I don't add  .convertBodyTo(String.class), I get the binary inputstream
from my response POJO. 
I just want plain old JSON as a response. 

Any ideas what I am missing here?

Thanks,
Patrick



--
View this message in context: 
http://camel.465427.n5.nabble.com/Help-w-rest-response-JSON-binding-with-Jackson-tp5782958.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Routing with logic

2016-05-23 Thread miri eyni
hi
 i need to implement routing with processing. 
processing the request should read from different APIs (external API ) for
create a new request to the endpoint.

how is the best way to implements it?  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Routing-with-logic-tp5782944.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: SpringBoot application and connect to Websphere MQ Activation Specification using Camel

2016-05-23 Thread arunkabraham
I am able to get it working with below code using Queue/Topic connection
factory.


  

   
   
   



   

But I need it to be working with Activation specification(JNDI). Can you
please help on this?



--
View this message in context: 
http://camel.465427.n5.nabble.com/SpringBoot-application-and-connect-to-Websphere-MQ-Activation-Specification-using-Camel-tp5782826p5782948.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Routing question

2016-05-23 Thread miri eyni
hi ,


i need to implements routing with logic.
i will get the request , processing the request should  read from different
APIs (external API) to make a  new request for the endpoint.

for example : 

process (){
S1 =  consume  API1
s2 = consume API2
s3= consume API3

newRequest.setS1(s1)
newRequest.setS2(s2)
newRequest.setS3(s3)

exchange.getIn().setBody(newRequest)
}
what is the best way to implements?



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


Re: Routing question

2016-05-23 Thread souciance
Have you tried it yourself first? Where have you failed?

On Mon, May 23, 2016 at 12:49 PM, miri eyni [via Camel] <
ml-node+s465427n5782945...@n5.nabble.com> wrote:

> hi ,
>
>
> i need to implements routing with logic.
> i will get the request , processing the request should  read from
> different APIs (external API) to make a  new request for the endpoint.
>
> for example :
>
> process (){
> S1 =  consume  API1
> s2 = consume API2
> s3= consume API3
>
> newRequest.setS1(s1)
> newRequest.setS2(s2)
> newRequest.setS3(s3)
>
> exchange.getIn().setBody(newRequest)
> }
> what is the best way to implements?
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Routing-question-tp5782945.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/Routing-question-tp5782945p5782949.html
Sent from the Camel - Users mailing list archive at Nabble.com.