Camel CXF - Security (Authentication)

2015-12-23 Thread zied123456
I created a webservice with apache camel using CXF component as bellow : blueprint.xml: http://localhost:9050/route"; serviceClass="ngtrend.ws.Testws" /> http://camel.apache.org/schema/blueprint";> Testws.java: public class Testws { @GET

Re: Can we create custom route policy

2015-12-15 Thread zied123456
i want to do the same thing. have you found a solution ? -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-create-custom-route-policy-tp5753970p5775084.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel Shiro Security

2015-12-15 Thread zied123456
I'm using camel blueprint.xml and I want to secure routes with Shiro. I created the following class : public class ShiroSecurity { // Shiro configuration file path private static final String iniResourcePath = "shiro.ini"; // Object used to encrypt/decrypt the tok

Camel iMap - ignore SSL certificat

2015-11-24 Thread zied123456
i'm using imap endpoint and i try to ignore SSL certificat by using: the First class *DummySSLSocketFactory* : public class DummySSLSocketFactory extends SSLSocketFactory { private SSLSocketFactory factory; public DummySSLSocketFactory() { try { SSLContext sslcontext

Fabric Ensemble CXF load balancing

2015-11-09 Thread zied123456
Hi, i have deloyed my application into a container (server1) under a Fabric-Ensemble that contains 3 Fabric servers separated on 3 Servers (Machine) at the same LAN , until this stage every things work very Well. My question is: what if i face a problem with my first machine wich contains the app

Re: Handle Mail exception

2015-10-20 Thread zied123456
Also with only : public void handleException(final String message, final Exchange originalExchange, final Throwable exception) { template.sendBody("file://mail?fileName=mailtext3.txt", "Cannot connect:" +exception); } } it doesn't work. --

Handle Mail exception

2015-10-20 Thread zied123456
I want to write the excpetion in a file : *This is the route:* this is what i set in *myExceptionHandler class:* public class MyExceptionHandler implements ExceptionHandler { private ProducerTemplate template; public void *handleException*(String message,Throwable exception

Re: CAMEL imap component: invalid provider

2015-10-16 Thread zied123456
I already used: Also i use a split before to browse file. After, i extract ${header.adressemail} and ${header.password} from each line and send them dynamically to iMap. -- View this message in context: http://camel.465427.n5.nabble.com/CAMEL-imap-component-invalid-provider-tp5772621p5772706

Re: CAMEL imap component: invalid provider

2015-10-16 Thread zied123456
i should read mails not send. -- View this message in context: http://camel.465427.n5.nabble.com/CAMEL-imap-component-invalid-provider-tp5772621p5772698.html Sent from the Camel - Users mailing list archive at Nabble.com.

CAMEL imap component: invalid provider

2015-10-13 Thread zied123456
This is the route: This is the route: when i run it i got this error: javax.mail.NoSuchProviderException: invalid provider at javax.mail.Session.getTransport(Session.java:724) at javax.mail.Session.getTransport(Session.java:668) at javax.mail

How can i limit retrying CAMEL HTTP REQUEST (setting timeout and Redeliveries)?

2015-10-12 Thread zied123456
Hi I try to set timeout to 2 seconds and Redeliveries to 1 This is the route: http://URi"/> here by default the delievrry time is 3. How can i change this ? httpClient.soTimeout=100 dont work ! -- View this message in context: http://camel.465427.n5.nabble.com/How-can-i-limit-retrying-CA

Re: HTTP Basic Authentication

2015-10-01 Thread zied123456
Hello, I try to send request to a webservice with camel and i dont found how to set httplogin and httppass with POJO i can do this: final String s = my_httpLogin+":"+my_httpPwd; final byte[] authBytes = s.getBytes(StandardCharsets.UTF_8); final String encoded = Base64.getEncoder().encodeToString