Re: Camel 2.22.1 and Rabbitmq getting a error

2018-11-11 Thread Alireza Salemi
the vhost=test in the uri and for some reason Camel doesn't pick up the vhost value! I had to configure the virtual host at the connection factory level. Thank you for your help, Alireza Salemi > > > Hi Alireza > > I tried to reproduce your issue at the following repo: &g

Re: Camel 2.22.1 and Rabbitmq getting a error

2018-11-10 Thread Alireza Salemi
Hi Babak, I tried the port you mentioned 5672. I am getting the same result! 2018-11-10 14:07:00.819 WARN 66945 --- [ 127.0.0.1:5672] c.r.c.impl.ForgivingExceptionHandler : An unexpected connection driver error occured (Exception message: Socket closed) 2018-11-10 14:07:05.822 WARN 66945 --

Camel 2.22.1 and Rabbitmq getting a error

2018-11-09 Thread Alireza Salemi
Hi, I am trying to connect Camel to RabbitMq but I am getting the error below. Does any body have any idea why this configuration is not working? I have attached the PM and Route XML. Thank you, Ali 2018-11-09 22:19:30.764 INFO 30863 --- [ main] o.a.c.c.rabbitmq.RabbitMQComponent

Camel Rest DSL and IBM Websphere

2015-01-22 Thread salemi
Hi, I am looking to integrate use Camel Rest DSL on a IBM Websphere instance. All the servlets are mapped to http://host/services. How can I configure the rest dsl for the ibm configuration? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-14 Thread salemi
(); clientBuilder.setSSLContext(sslContext); } - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/http-client-javax-net-ssl-SSLHandshakeException-Received-fatal-alert-handshake-failure-tp5761469p5761706.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-09 Thread salemi
provided? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/http-client-javax-net-ssl-SSLHandshakeException-Received-fatal-alert-handshake-failure-tp5761469p5761538.html Sent from the Camel - Users mailing list archive at Nabble.com.

http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-08 Thread salemi
) at com.ibm.jsse2.qc.a(qc.java:613) at com.ibm.jsse2.qc.h(qc.java:266) at com.ibm.jsse2.qc.a(qc.java:214) at com.ibm.jsse2.h.write(h.java:10) What am I doing wrong here? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5

Re: Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-04 Thread salemi
what do you think about the following solution proposed under the following link? http://anydoby.com/jblog/en/camel/1931 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the

Re: Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-03 Thread salemi
Hi Claus, I am using the following to read the files in that are added if I delete the a file from a directory I don't get an exchange. I was wondering if there is a way to do that otherwise I can use a watcher for deletes. Thanks, Ali - Alireza S

Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-02 Thread salemi
Hi, is it possible to get notified when the file is deleted from a directory in the idempotent mode Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode

Re: rest client - post a json content to and http enpoint

2014-12-02 Thread salemi
I have two questions: How can implement basic authentication? Is there a way to accept all certificates using HTTPS protocol? Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759988

rest client - post a json content to and http enpoint

2014-11-25 Thread salemi
ent to the endpoint? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: weather endpoint throws exception

2014-11-20 Thread salemi
Adding a location resolved the issue. Thank you. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/weather-endpoint-throws-exception-tp5759287p5759387.html Sent from the Camel - Users mailing list archive at Nabble.com.

dynamically add endpoint configuration to the context

2014-11-20 Thread salemi
d. I was wondering is there is way to load also the configuration needed for the endpoints of the routes dynamically into camel context? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-add-endpoint-configuration-to-the-co

weather endpoint throws exception

2014-11-18 Thread salemi
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:1002) ... 33 more - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/weather-endpoint-throws-exception-tp5759274.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
great. thank you. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-add-routes-defined-in-DSL-to-a-camel-routes-tp5759221p5759273.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
Hi Claus, thank you for your respond. I used the code but is shows as deprecated. Is there a new way to do the loading of new routes from XML file? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-add-routes-defined-in-DSL-to-a

dynamically add routes defined in DSL to a camel routes

2014-11-18 Thread salemi
SL to define the routes since it is much easier on business users. Is there any solution for this out there? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamically-add-routes-defined-in-DSL-to-a-camel-routes-tp5759221.html Sent from the

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-18 Thread salemi
k I should asked to change the code? Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759220.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-14 Thread salemi
where can I find the source code for this? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759147.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-13 Thread salemi
Hi Claus, I am using Camel version 2.14.0. As far as xmljson goes I have used the follwoing parameter tor turn that off without a luck Do you know how turn off the @ sign for xml attributes? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5

camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-12 Thread salemi
": "hPa" }, "wind": { "speed": { "@value": "2.66", "@name": "Light breeze" }, "direction": { "@value": "326", &q

Re: Camel Template solution for JSON

2014-11-12 Thread salemi
I am using Jolt for now. I was hoping there is a better mapping framework out there. I looked at smooks but it seems to be old. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Template-solution-for-JSON2JSON-tp5758858p5759014.html Sent from the

Camel Template solution for JSON

2014-11-10 Thread salemi
be nice to have templating framework that would convert xml as well json to a json format. Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Template-solution-for-JSON-tp5758858.html Sent from the Camel - Users mailing list archive at

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-07 Thread salemi
props, int systemPropertiesMode){..} @Override public Properties resolveProperties(CamelContext context, boolean ignoreMissingLocation, String... uri){} } Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamicly-change

two camel instances and jms failover on a topic

2013-10-07 Thread salemi
- Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/two-camel-instances-and-jms-failover-on-a-topic-tp5741060.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-02 Thread salemi
;t overwrite it ! - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/dynamicly-change-the-url-of-the-from-element-after-the-camelcontext-is-started-tp5740599p5740781.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-01 Thread salemi
Thank you Babak. Since we are using Camel 2.10 we are using the BridgePropertyPlaceholderConfigurer as followed below: How does BridgePropertyPlaceholderConfigurer with the PropertiesComponent? Thanks, Ali - Alireza Salemi -- View this message in context: http

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread salemi
("classpath:com/mycompany/dynamic.properties"); context.addComponent("properties", pc); My developer tried to overwrite the existing values of a property using using a JVM System Property and he told me he can't get it to work. - Alireza Salemi -- View this message

dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread salemi
Hi, During the camel startup, our code will query a database and retrieve the uri information for all the jms endpoints. I was wondering how can I overwrite the uri of the elements in example below? Ali - Alireza Salemi -- View this message in

Re: Is it possible to override a property during runtime after the file has been load using BridgePropertyPlaceholderConfigurer

2013-08-26 Thread salemi
Thank for the answer but i am looking for a piece of java code to overwrite a property value in BridgePropertyPlaceholderConfigurer! - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-override-a-property-during-runtime-after-the-file-has

Is it possible to override a property during runtime after the file has been load using BridgePropertyPlaceholderConfigurer

2013-08-26 Thread salemi
else. This is not unittest code. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-override-a-property-during-runtime-after-the-file-has-been-load-using-BridgeProperr-tp5738008.html Sent from the Camel - Users mailing list archive at

Re: Incoming message from the queue need to be send to multiple consumer but keep the ordering

2013-08-13 Thread salemi
seen almost linear scalability by adding a new consumer. I have done testing with 11 concurrent consumer which is enough for our purposes. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Incoming-message-from-a-JMS-queue-need-to-be-processed-in-parallel-but

Re: Camel Performance

2013-08-10 Thread salemi
2.10.4 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Performance-tp5736810p5737083.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Performance

2013-08-09 Thread salemi
} @JsonProperty("NativeSourceType") public String getNativeSourceType() { return nativeSourceType; } public void setNativeSourceType(String nativeSourceType) { this.nativeSourceType = nativeSourceType; } } -

Re: Camel Performance

2013-08-09 Thread salemi
- Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Performance-tp5736810p5737049.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Incoming message from the queue need to be send to multiple consumer but keep the ordering

2013-08-09 Thread salemi
when use ?multipleConsumers=true in the uri="{{operational.topic.prefix}}.{{source.type}}.{{source.name}}?multipleConsumers=true" I get the error that it doesn't know the property. Or do I have to use that somewhere else? - Alireza Salemi -- View this message in context

Re: Incoming message from the queue need to be send to multiple consumer but keep the ordering

2013-08-08 Thread salemi
5000 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Incoming-message-from-a-JMS-queue-need-to-be-processed-in-parallel-but-keep-the-ordering-o

Re: Incoming message from the queue need to be send to multiple consumer but keep the ordering

2013-08-08 Thread salemi
5000 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Incoming-message-from-a-JMS-queue-need-to-be-processed-in-parallel-but-keep-the-ordering-of-messages-tp5735406p5737009.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel Performance

2013-08-06 Thread salemi
a point here. The body is a Message Class with an attribute messagetype which is string. Maybe that part is slow. I will into that as well. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Performance-tp5736810p5736821.html Sent from the Camel

Camel Performance

2013-08-05 Thread salemi
s about 2.5ms. If you have the Objectmapper already created the unmarshalling supposed to be in micro-second. 3. Creating Expression (choice) and evaluating of it takes in average 11ms. Any suggestion how to improve the performance of the 3 items mentioned above? - Alireza Salemi -- View

Re: best practice for logging execution time

2013-08-01 Thread salemi
? ${body.entity} - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/best-practice-for-logging-execution-time-tp2844045p5736667.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: best practice for logging execution time

2013-07-30 Thread salemi
javaspaces. So the question how to measure the times from receiving the 10 messages received until they get written in javaspaces. ${body.entity} - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/best-practice-for-logging-execution-time

Re: best practice for logging execution time

2013-07-29 Thread salemi
I like to identify the average execution time spent in Camel. I have a aggregator that aggregate 10 messages before it send them out to the endpoint. Would EventNotifier still work? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/best-practice-for

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-26 Thread salemi
it will pick a different one. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Incoming-message-from-a-JMS-queue-need-to-be-processed-in-parallel-but-keep-the-ordering-of-messages-tp5735406p5736271.html Sent from the Camel - Users mailing list archive

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-15 Thread salemi
Thank you for your respond. I am not sure if I can use concurrent consumer option since I have to keep the order of messgaes for the buckets. I like your idea to have a route that calculates the Group header but doing that is it not going to be the bottleneck for the processing. I have to run at l

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-12 Thread salemi
Yep, I was thinking about this approach as well. Using Seda is the transnational integrity preserved? Let say the delivery of one message using seda fails, does camel recognize it and redeliver it? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com

Re: Incoming message from a JMS queue need to be processed in parallel but keep the ordering of messages

2013-07-10 Thread salemi
Thank you for the responds. The problem I have is that I don't have any control of producer and I can't ask the producer to put information in the header of the message in order to use the grouping of ActiveMQ. - Alireza Salemi -- View this message in context: http://camel

Incoming message from the queue need to be send to multiple consumer but keep the ordering

2013-07-09 Thread salemi
e "b" has to be processed in order and All the messages of type "c" has to be processed in order. Is there a way to consume the messages from the JMS and split them up in to buckets for a, b and c and send the a, b,c messages in parallel to JavaSpaces?

Re: Exception doesn't get cauhgt in the route

2013-06-15 Thread salemi
Thank you. Looking at the tst helped us resolving the issue. - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Exception-doesn-t-get-caught-in-the-route-tp5733381p5734234.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread salemi
Camel 2.10 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/No-bean-named-CamelBeanParameterMappingStrategy-is-defined-tp5733753p5733832.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread salemi
Thank you for your answer. Do you know where it gets instantiated and which class is referring to it? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/No-bean-named-CamelBeanParameterMappingStrategy-is-defined-tp5733753p5733821.html Sent from the Camel

No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-03 Thread salemi
Hi, I started profilng my code with an APM software and I seeorg.springframework.beans.factory.NoSuchBeanDefinitionException and the message detail is No bean named 'CamelBeanParameterMappingStrategy' is defined. Did I miss something in my Spring Context? Thanks, Ali - Alir

Re: Exception doesn't get cauhgt in the route

2013-05-29 Thread salemi
redeliveries don't get executed. I am wondering why the exceptions are not caught by onException clause and also why the error handler redeliveries are not executed ! Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Exception-doesn-

Exception doesn't get cauhgt in the route

2013-05-28 Thread salemi
org.springframework.dao.DataAccessException true - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Exception-doesn-t-get

Start and stop a route using sping xml

2013-05-01 Thread salemi
Hi, I know you can stop and start route using CamelContext. Is there a way to do it in XML? I saw in the documentation but there not much desription? Is there something like ? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Start-and

Re: Turn off the stack trace for EndpointMessageListener

2013-05-01 Thread salemi
(AsyncProcessorConverterHelper.java:61) - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Turn-off-the-stack-trace-for-EndpointMessageListener-tp5730681p5731870.html Sent from the Camel - Users mailing list archive at Nabble.com.

delete all messages in jms queue

2013-05-01 Thread salemi
Hi, I need to delete all existing messages in a jms queue once of receive a specific message. Does camel provide an option to delete all jms messages in a queue? Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/delete-all-messages-in-jms

Turn off the stack trace for EndpointMessageListener

2013-04-10 Thread salemi
(ThreadPoolExecutor.java:1110)[:1.7.0_11] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_11] at java.lang.Thread.run(Thread.java:722)[:1.7.0_11] - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Turn

The exchange in.body object doesn't include the respond when cxf-rs (restfull) endpoint is called

2013-03-14 Thread salemi
I am having trouble with one use case in camel. In this use case we receive a JMS message from ActiveMq (MEP is InOnly) and in the route I extract some information and use the details to call the restFull Api. The call to retrieveSourceId is successful but the respond doesn’t get saved off in