RE: Email attachment lost with poll enrich

2023-09-06 Thread Daniel Langevin
Hi, You can try "org.apache.camel.component.mail.SplitAttachmentsExpression" Here a part of my code to achieve with attachment, hope it's Help Daniel ,,, ,,, ,,, result="null" def MimeUtility = new javax.mail.internet.MimeUtility(); if (

RE: Camel : camel-jetty on Karaf

2023-01-19 Thread Daniel Langevin
nse JSON de l'ESB {"env":"{{env}}","api":"TTT","version":"{{SYS.VER}}","codeRetour":"${header.zzcodeRetour}","msgRetour":"${header.zzmsgRetour}","msgCourt":"

RE: How can i retrieve file name when SftpException Occured

2022-11-16 Thread Daniel Langevin
l.component.file.GenericFileOperationFailedException Hoping that can help. Daniel Langevin -Message d'origine- De : André kouamé Envoyé : 15 novembre 2022 11:14 À : users@camel.apache.org Objet : How can i retrieve file name when SftpException Occured Hi a

RE: netty http component - SNI missing in SSL handshake

2022-09-15 Thread Daniel Langevin
Hi, Is it possible to get more of your code stuff… may be I can help you. If you want to call HTTPS rest services…. you have to set more stuff in SSLContextParameters, (like your certificate) because netty won’t switch in https… Daniel Langevin De : Bheda, Nitesh Envoyé : 15 septembre

RE: Poll enrich with mail component will lose attachments

2022-09-01 Thread Daniel Langevin
Hi Jane, I make a little test with my environment Camel version 3.14.3 running into karaf 4.3.3 Here a simple rest service extract from a blueprint deployment and it works very well, with and without an attachment TTT - Poll imap read With PollEnrich imaps://{{SHQ_imap_s

RE: Poll enrich with mail component will lose attachments

2022-09-01 Thread Daniel Langevin
Hello Jane, you say you don't have an attachment, did you make sure you got at least a message body ??? Because the problem may come from the PollEnrich. Regards, Daniel -Message d'origine- De : Mi Jane 米静 Envoyé : 1 septembre 2022 00:31 À : users@camel.apache.org Objet : RE: Poll

RE: Poll enrich with mail component will lose attachments

2022-08-31 Thread Daniel Langevin
Hi, You can try adding &disconnect=false, in your imaps parameter. Hope it's help. Daniel -Message d'origine- De : Mi Jane 米静 Envoyé : 31 août 2022 04:29 À : users@camel.apache.org Objet : Poll enrich with mail component will lose attachments Dear community, When I used Camel 3.

RE: Class Not Found betwwen Camel 3.14.3 and ( 3.14.4 or 3.14.5 )

2022-08-29 Thread Daniel Langevin
D&reserved=0 On Fri, Aug 26, 2022 at 8:06 PM Daniel Langevin < daniel.lange...@shq.gouv.qc.ca> wrote: > Hi, > > I am using CAMEL 3.14.3 with KARAF 4.3.3 and it works well from > several months. > > I tried to upgrade my KARAF / camel environment from camel 3.14.3

RE: Class Not Found betwwen Camel 3.14.3 and ( 3.14.4 or 3.14.5 )

2022-08-26 Thread Daniel Langevin
Finally, you got it right. I ran my KARAF OSGI with version 11 and all my Camel blueprint's deployment goes right : - ) So I will have to plan to upgrade also the version of my JAVA Thanks a lot Raymond. ! Regards. Daniel -Message d'origine- De : Daniel Langevin Envoyé

RE: Class Not Found betwwen Camel 3.14.3 and ( 3.14.4 or 3.14.5 )

2022-08-26 Thread Daniel Langevin
-javax-xml-bind-does-not-exist On Fri, Aug 26, 2022 at 8:06 PM Daniel Langevin < daniel.lange...@shq.gouv.qc.ca> wrote: > Hi, > > I am using CAMEL 3.14.3 with KARAF 4.3.3 and it works well from > several months. > > I tried to upgrade my KARAF / camel environment from ca

Class Not Found betwwen Camel 3.14.3 and ( 3.14.4 or 3.14.5 )

2022-08-26 Thread Daniel Langevin
s the problem, someone have any idea or suggestion. Thanks Daniel Langevin Direction de l'assistance et des technologies Direction des ressources informationnelles et matérielles Societe d'habitation du Québec

RE: Mail Attachment not available after mail consumer

2022-07-08 Thread Daniel Langevin
ication}_${header.zzLoop}.eml REGUL zPjTemp = new File( request.headers['zzTEMPPJ'] ) zz = zPjTemp.listFiles(); zresult = "" for (int i = 0; i < zz.length; i++) { zresult = zresult + zz[i].getName()+"," } zresultArray

RE: FTP or pollEnrich not working well in Camel 3.14.2

2022-04-21 Thread Daniel Langevin
21T10:50:17,794 | Outside loop 2022-04-21T10:50:17,796 | Body: C2202010 - Copie.psl 164271546 C2202010.psl 164271546 C2202170.LOG 164450604 2022-04-21T10:50:17,796 | Ftp List Done Regards Daniel Langevin -Message d'origine- De : Daniel Langevin

RE: Component master example

2022-04-21 Thread Daniel Langevin
Hi, Sorry this is beyond my understanding and skills. Maybe it's possible to define in one bundle and refer to it in the others like we do with a connection factory. Good luck and regards! Daniel Langevin -Message d'origine- De : Ephemeris Lappis Envoyé : 21 avril

RE: Component master example

2022-04-21 Thread Daniel Langevin
Hi, I think you only missed to define your cluster in your blueprint like this Before the camelcontext only add this line. Hope it's help Daniel Langevin -Message d'origine- De : Ephemeris Lappis Envoyé : 21 avril 2022 06:33 À : users@camel.apache.org Objet : Compon

FTP or pollEnrich not working well in Camel 3.14.2

2022-04-13 Thread Daniel Langevin
Copie.psl 164271546 2022-04-13T13:33:39,468 | Ftp List Done As you may have noticed, only one file is read instead of the 3 files present in the Directory. I've looked at this every which way, but I can't find what's wrong. has the way of doing FTP or Enrich changed? Someone can help ! Regards. Daniel Langevin Daniel Langevin Direction de l'assistance et des technologies Direction des ressources informationnelles et matérielles

RE: Camel "master" component

2022-03-18 Thread Daniel Langevin
gards. Daniel Langevin -Message d'origine- De : Ephemeris Lappis Envoyé : 18 mars 2022 12:41 À : users@camel.apache.org Objet : Camel "master" component Hello. Our customer currently uses Fuse 6.3 for its ESB features. We'd like to propose moving them to ServiceMix. I

RE: camel-DNS / Camel 3.11.5 / should import org.slf4j* optional

2022-01-19 Thread Daniel Langevin
gine- De : Claus Ibsen Envoyé : 18 janvier 2022 12:32 À : users@camel.apache.org Objet : Re: camel-DNS / Camel 3.11.5 / should import org.slf4j* optional Hi You need to have slf4j-api installed in karaf as camel uses slf4j-api for its logging. On Tue, Jan 18, 2022 at 5:20 PM Daniel Lang

camel-DNS / Camel 3.11.5 / should import org.slf4j* optional

2022-01-18 Thread Daniel Langevin
eservice;version=3.3.1, org.xbill.DNS.tools;uses:=org.xbill.DNS;version=3.3.1, org.xbill.DNS.utils;version=3.3.1 Import-Package = javax.crypto, javax.crypto.spec, android.os;resolution:=optional, sun.net.spi.nameservice;resolution:=optional, junit.framework;resolution:=optional Regards Daniel Langevin Direction de l'assistance et des technologies Direction des ressources informationnelles et matérielles

RE: Simple language

2021-11-26 Thread Daniel Langevin
OK here is a solution to get UnixTimeStamp in SIMPLE LANGUAGE camel 2.xx ${header.CamelCreatedTimestamp} ${header.wTimeStamp.getTime()/1000} Hope it's help! Daniel Langevin -Message d'origine- De : ski n Envoyé : 26 novembre 2021 09:48 À : users@camel.apache.org

RE: Simple language

2021-11-26 Thread Daniel Langevin
Sorry to fast for time, Here is: ${date:now:-MM-dd' à 'HH:mm:ss.fff' ('yyy'.'D')'} Daniel -Message d'origine- De : Daniel Langevin Envoyé : 26 novembre 2021 08:37 À : users@camel.apache.org Objet : RE: Simple language Hi Raymond,

RE: Simple language

2021-11-26 Thread Daniel Langevin
Hi Raymond, For date: ${date:now:-MM-dd' à 'HH:mm:ss' ('yyy'.'D')'} For addition 1 to value of Var1 ${header.Var}++ Regards Daniel Langevin -Message d'origine- De : ski n Envoyé : 26 novembre 2021 07:18 À : users@camel.apache.org

RE: Read HTML mails

2021-11-24 Thread Daniel Langevin
t.getCount(); i++) { ii = i; bodyPart = mimeMultipart.getBodyPart(i); if (bodyPart.isMimeType("message/rfc822")) { zresult = zresult + 1; mail822filename = request.headers['zzTEMP822']+"PJ_

Re: Suspecting conflict with stax2-api and woodstox version between camel and cxf

2021-10-21 Thread Daniel Langevin
e.org/jira/browse/CAMEL-16888 > > Since you are on top of this, wonder if you would attempt to fix this > and submit a PR against camel-karaf, for the next version (eg the main > branch) > https://github.com/apache/camel-karaf > > > On Tue, Oct 19, 2021 at 5:28 PM Daniel Lang

Suspecting conflict with stax2-api and woodstox version between camel and cxf

2021-10-19 Thread Daniel Langevin
because i dont noticed problem at this time ! Then i redo my test, and it's works... all the time, Initial deployment (10/10) Stop and start karaf (10/10) Modification of camel-route using cxf bean (10/10) Hope this can help you while waiting for a fix Daniel Langevin Societe

Re: Try to Convert Unicode UTF-8 Encoding / CAMEL 3.x

2021-09-17 Thread Daniel Langevin
n Wed, Sep 15, 2021 at 10:39 AM Daniel Langevin > wrote: > > > Hi all, > > > > Here is my case, > > i have a body containing some Unicode characters, this body is the > > RESPONSE of a JDBC connection Query. > > > > In camel 2.x i was using xml

Re: Retry/stop of a route on error in .to component

2021-09-15 Thread Daniel Langevin
Hi, i never made this in quarkus, but there is the way i figure it 1st you have to : Catch the exception handled it use Redeliverypolicy, set maximuRedeliveries and redelivery Delay after all the attempt sets send a JMS Message to another Kafka Queue with header.routeID and header.action STOP o

Try to Convert Unicode UTF-8 Encoding / CAMEL 3.x

2021-09-15 Thread Daniel Langevin
{"codeRetour":"200","msgCourt":"L'identification du dossier du client a réussi.", "msgLong":"L'identification du dossier du client a réussi.","msgRetour":"succes"} Daniel Langevin

RE: Migration from 2.x to 3.x

2021-08-27 Thread Daniel Langevin
Hi, In OSGI, Each blueprint file equal 1 deployment. So you can put 1 Camel Context by deployment file. Example: File deploy_xxx-0.0.1.xml === http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cm="http://ari

Re: Camel-ldap xtream issue

2021-08-23 Thread Daniel Langevin
Hi ! Anybody have a clue ? Regards. Daniel On 2021/08/17 19:31:33, Daniel Langevin wrote: > Hi, > > I try to modify an application who retrieve LDAP search, > Convert result in XML and generate HTML with camel-saxon. > > CAMEL 3.11.1 Karaf 4.2.10 > > > But fac

RE: Camel-ldap xtream issue

2021-08-23 Thread Daniel Langevin
Hello, does anyone have a clue? A way to solve the problem? An explanation ? I'm still stuck Regards! Daniel Langevin -Message d'origine- De : Daniel Langevin Envoyé : 17 août 2021 15:32 À : users@camel.apache.org Objet : Camel-ldap xtream issue Hi, I try to

RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
emove this approach. You could have a look at camel-xj too, as alternative Il mar 17 ago 2021, 20:26 Daniel Langevin ha scritto: > Thank's > > -Message d'origine- > De : Andrea Cosentino Envoyé : 17 août 2021 14:23 > À : users@camel.apache.org Objet : Re: xmljson depr

Camel-ldap xtream issue

2021-08-17 Thread Daniel Langevin
ot;default": { "ordered": false, "attrID": "networkAddress" }, "int": 1, "string": "9#\u\u" }, ... Why it's work in JSON using xstream and not for XML ? Som

RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
Thank's -Message d'origine- De : Andrea Cosentino Envoyé : 17 août 2021 14:23 À : users@camel.apache.org Objet : Re: xmljson deprecated in camel 3.x It's always json-lib Il mar 17 ago 2021, 20:12 Daniel Langevin ha scritto: > HI Andrea, > > I thought th

RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
e: xmljson deprecated in camel 3.x Hello, It has been removed for a cve related to a library used in the component. This is the reason. Il mar 17 ago 2021, 19:58 Daniel Langevin ha scritto: > Hi, > > I'm trying to convert an application from camel 2.17 to camel 3.11, > and I ha

xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
convert to java.util.hashmap with Jackson an then convert in XML with xstream But the XML result is very complicated to exploit ... body is a JSON string Did I missed something! ??? I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint. Regards! Daniel Langevin Direction de l'assistanc

Rép. : Http4 endpoint throws UrlRewrite NoClassDef

2021-05-04 Thread Daniel Langevin
Hi Riccardo, URL rewrite is deprecated, last version 2.25 https://camel.apache.org/manual/latest/camel-3-migration-guide.html you must use real proxy to do that, like NGINX or HTTPD Apache. Hope is help! Daniel Langevin Direction de l’assistance et des technologies Direction des

Re: Rép. : Re: Camel-DNS / Camel 3.7.1 in Karaf 4.2.10 /

2021-04-30 Thread Daniel Langevin
created https://issues.apache.org/jira/browse/SM-4761 <https://issues.apache.org/jira/browse/SM-4761> to track this. I’m cutting release this week end. Regards JB > Le 30 avr. 2021 à 14:29, Daniel Langevin a > écrit : > > Hi Claus, > > In the output of headers for the bundles 349(d

Rép. : Re: Camel-DNS / Camel 3.7.1 in Karaf 4.2.10 /

2021-04-30 Thread Daniel Langevin
karaf 4.2.10 bundles #125 (at the end) indicate version 1.7.2 but in Status bundles it indicate: 1.7.30 imported how its possible i think this is the mismatch. !! What do you think Regards. Daniel Langevin -- karaf@root()> headers

Camel-DNS / Camel 3.7.1 in Karaf 4.2.10 /

2021-04-29 Thread Daniel Langevin
e any idea! Thanks! Daniel Langevin Direction de l’assistance et des technologies Direction des ressources informationnelles et matérielles Société d’habitation du Québec Édifice Marie-Guyart 1054, rue Louis-Alexandre-Taschereau Aile Jacques-Parizeau, 1er étage Québec (Québec) G1R 5E7 Télép

Rép. : Scheduled polling with azure-storage-blob consumer?

2021-04-08 Thread Daniel Langevin
Hi, you can use CRONSCHEDULEDROUTEPOLICY like this ... ... hope it's help Daniel Langevin Direction de l’assistance et des technologies Direction des ressources informationnelles et matérielles Société d’habitation du Québec Édifice Marie-Guyart 1054, rue Louis-Alex

Rép. : Absolut path information in ftp/sftp component

2021-03-05 Thread Daniel Langevin
Hi, The path used in ftp, ftps and sftp components is always relative to FTP home directory of logged in user. FTP home directory depends on configuration of FTP server. In some configurations it can be seemingly "/", but it is in most cases just chroot Daniel Langevi

Rép. : Re: Can I call a PostgreSQL function from Camel-sql

2021-03-02 Thread Daniel Langevin
Hi, Here a sample using SqlStoredComponent with Postgresql, hope it's help http://camel.apache.org/schema/blueprint"; trace="false" > ... ... ... ... ... ... .. Daniel Langevin >>> De :Babak Vah

Rép. : apache camel proxy auth issue

2021-02-25 Thread Daniel Langevin
20the%20client%20and%20server. Hope it's help Daniel Langevin >>> De :balanjaneyulu p À : , Date : 2021-02-25 04:51 Objet : apache camel proxy auth issue Hi All, I have been struggling to fix below issue https://stackoverflow.com/questions/66351948

Rép. : How to send attachments together with alternative mail text (plain text/html) ?

2020-12-02 Thread Daniel Langevin
s") .addProtocols("cite", "cite", "http", "https") } zbody = Jsoup.clean(request.body,wlist()); // preserve some tags, bases one zbody = zbody.repla

Rép. : Re: claimCheck availability within ServiceMix 7.0.1 (Apache Camel 2.16.5)

2020-09-01 Thread Daniel Langevin
Hi Gerald, There may be a solution while waiting for the last release of ServiceMix. I run ServiceMix 7.0.1 with Camel 2.17.7, with little changes. (i make a little test in LAB this morning, with 2.21.1 and it seems to work). ServiceMix cames up without error. Here's a Link that explained the

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Daniel Langevin
t to define in one common Blueprint file and refer in an other blueprint file to the registered servlet above like Is there a way in the second Blueprint to get a reference to the servlet defined in the first one? Best Gerald > Daniel Langevin hat am 19.08.2020 13:48 > geschr

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Daniel Langevin
Hi Gerald, the only way i know to do that is to refer this way. uri="direct-vm:xx?block=true&timeout=30" hope this help! Daniel >>> De : Gerald Kallas À :, Daniel Langevin Date : 2020-08-19 00:15 Objet : Re: Rép. : Camel REST DSL with servlet -

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-18 Thread Daniel Langevin
Try this it's work for me. apiisp001 - Echo rest service APIISP001 - Connectivity test /APIISP001/echo PONG. Daniel Langevin Direction de l’assis

Rép. : Camel REST DSL with servlet - API URL?

2020-08-17 Thread Daniel Langevin
Hi, you have to specify the default http port number : 8181 for CamelServlet like this: http://servername.org:8181/apiisp001/1 Daniel Langevin Direction de l’assistance et des technologies Direction des ressources informationnelles Société d’habitation du Québec Édifice Marie-Guyart 1054

Rép. : REST API - Swagger file generation?

2020-02-03 Thread Daniel Langevin
ace="false"> XXX - Echo rest service XXX - Test de connectivite {{SMIX.ENV}}/XXX/echo PONG. ... ... ... Daniel Langevin Direction de l’assistance et des technologies Direction des ressources informationnelles Société d’habit

Rép. : AW: parse HTML Email

2019-10-07 Thread Daniel Langevin
} else { result = MimeUtility.decodeText(request.getOriginalMessage().getContent()); } Daniel Langevin >>> De : À : Date : 2019-10-07 07:49 Objet : AW: parse HTML Email I don't know if it helps you with HTML mails,

Rép. : swagger.json generation without host set to 0.0.0.0

2018-07-13 Thread Daniel Langevin
Hi, here the way i use it Echo rest service Connectivity test pong Summary of service1 Description Id Service1 >>> Martin Lichtin 2018-07-12 15:55 >>> Anyone know h

Rép. : host not found when using http4 in docker container

2018-06-06 Thread Daniel Langevin
try this start your docker witch --network=hostcoreservices then http4:hostcoreservices:8080/coreservices/rest/v1/services dont miss to add the hostcoreservices in you DNS Cliquer pour ajouter une signature ( gwsig:addsig) >>> I'm running camel inside a Docker container and trying to us

Rép. : RE: Camel cxf: Send message with multiple message-parts

2018-03-19 Thread Daniel Langevin
Hi, If i look your wsdl. you camel Body suppose to be: ? ? Daniel >>> "Shenavai, Manuel" 2018-03-19 12:25 >>> Hi everyone, no ideas regarding this problem? I add a small example project to this mail. In order to reproduce the problem, start Server.java as a junit‑Test. After

Rép. : Rest Service / redirect with camel-http / No serializer found for class org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream

2018-02-22 Thread Daniel Langevin
/dummyhost> and now it Works. Thank's Daniel >>> "Daniel Langevin" 2018-02-22 14:20 >>> Hi, i try to implement a Rest service In OSGI Karaf 4.0.9 with Camel 2.17.7 this service redirect with camel‑http to another URL. like http://serverA.org:81

Rest Service / redirect with camel-http / No serializer found for class org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream

2018-02-22 Thread Daniel Langevin
Hi, i try to implement a Rest service In OSGI Karaf 4.0.9 with Camel 2.17.7 this service redirect with camel-http to another URL. like http://serverA.org:8181/rest/XXX/geocode/30%20rue%20larue,%20quebec/adress/geom redirect to http://www.servername.org/search/geocode?q=300%20rue%20larue,%20queb

Re: Rép. : Re: Convertbody with dynamic Charset

2018-02-01 Thread Daniel Langevin
27;].replaceAll('(([^=]*)=\\?([^\\?]*)\\?([BbQq])\\?([^\\?]*)\\?=([^=]*))','$5').getBytes()),subjectCharSet)} result = zresult; Hope it can help someone. regards. Daniel >>> Claus Ibsen 2018-02-01 12:00 >>> Its typically only the message body.

Re: Rép. : Re: Convertbody with dynamic Charset

2018-01-12 Thread Daniel Langevin
On Fri, Jan 12, 2018 at 4:55 PM, Daniel Langevin wrote: > Ok Thanks. > I know that way, but can't be Dynamic > > > Regards > > Daniel > > > > > > >>>> Claus Ibsen 2018-01-12 10:51 >>> > You cannot make it as a dynamic

Re: Rép. : Re: Convertbody with dynamic Charset

2018-01-12 Thread Daniel Langevin
On Fri, Jan 12, 2018 at 4:55 PM, Daniel Langevin wrote: > Ok Thanks. > I know that way, but can't be Dynamic > > > Regards > > Daniel > > > > > > >>>> Claus Ibsen 2018-01-12 10:51 >>> > You cannot make it as a dynamic

Rép. : Re: Convertbody with dynamic Charset

2018-01-12 Thread Daniel Langevin
the documentation http://camel.apache.org/using-propertyplaceholder.html On Fri, Jan 12, 2018 at 4:23 PM, Daniel Langevin wrote: > Hi, > > i try to use convertBody to and pass the charset dynamically. > > > i try: > #1 > .. retrieve charSet BodyPart

Convertbody with dynamic Charset

2018-01-12 Thread Daniel Langevin
Hi, i try to use convertBody to and pass the charset dynamically. i try: #1 .. retrieve charSet BodyPart from mail but receive error Caused by: java.nio.charset.IllegalCharsetNameException: ${property.mailCharSet} #2 .. retrieve charSet BodyPart from mail but receive error C

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
tipart". Can you try that? Best regards Stephan ‑Original Message‑ From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Freitag, 8. Dezember 2017 19:56 To: users@camel.apache.org Subject: Rép. : RE: camel‑mail IMAP mime‑multipart splitAttachment Hi, i try with

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
e‑multipart", not "mimeMultipart". Can you try that? Best regards Stephan ‑Original Message‑ From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Freitag, 8. Dezember 2017 19:56 To: users@camel.apache.org Subject: Rép. : RE: camel‑mail

Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-08 Thread Daniel Langevin
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mimeMultipart'. I don't understand i user Camel 2.17.7, it supposed to be there since 2.17.1 ????? Daniel Langevin >>> "Siano, Stephan" 2017-12-

camel-mail IMAP mime-multipart splitAttachment

2017-12-07 Thread Daniel Langevin
Hi, i try to implement a MAIL service In OSGI Karaf 4.0.9 with Camel 2.17.7, Camel-Mail and Active-MQ and SQL i want to read MAIL from IMAP server, then keep It into JMS Queue an then process each mail with mime-multipart with attachment and insert it into sql database I stuck at the first St

Rép. : Re: Attribute 'uri' is not allowed to appear in element 'enrich'

2017-12-01 Thread Daniel Langevin
xxx See the docs https://github.com/apache/camel/blob/master/camel-core/src/main/docs/eips/enrich-eip.adoc Or the old docs http://camel.apache.org/content-enricher.html On Fri, Dec 1, 2017 at 6:35 PM, Daniel Langevin wrote: > Hi, > > im' using camel 2.17.7 in Karaf 4.09 OSGI, my

Attribute 'uri' is not allowed to appear in element 'enrich'.

2017-12-01 Thread Daniel Langevin
Hi, im' using camel 2.17.7 in Karaf 4.09 OSGI, my deployement type is SPRING i try tu use enrich to get trought a second from for enriching my message i receive an error nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uri' is not allowed to appear in elem

Attribute 'uri' is not allowed to appear in element 'enrich'

2017-12-01 Thread Daniel Langevin
Hi, im' using camel 2.17.7 in Karaf 4.09 OSGI, my deployement type is SPRING i try tu use enrich to get trought a second from for enriching my message i receive an error nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uri' is not allowed to appear in elem

Re: Rép. : Re: Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-29 Thread Daniel Langevin
ing http://camel.apache.org/schema/spring/camel-spring-2.17.7.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd";> ... Daniel Langevin >>> Kerry 2017-11-28 15:37 &

Rép. : Re: Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-28 Thread Daniel Langevin
-example-res-blueprint/rest (although for the api bundle it extends it further with /user - never tried it without but could be worth checking) Pay close attention to to the restConfiguration and servletName. BTW, this example as it stands isn't great as it has circular package dependenci

Rép. : Re: Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-28 Thread Daniel Langevin
You can configure camel-servlet for osgi with some > > "magic" osgi http service stuff. > > > > On Tue, Nov 28, 2017 at 5:05 PM, Daniel Langevin > > wrote: > >> Hi, > >> > >> i try to implement a Rest service In OSGI Karaf 4.0.9 with C

Restconfiguration using Servlet with Camel in OSGI Karaf

2017-11-28 Thread Daniel Langevin
-0.0.1.XML containg all routes for the system XYZ. ... call the service with http://serverName:8181/rest/XYZ/getQuote/nnn receive a 404 url not found What i missed ? Do i have to refered the http servlet someware in my camel Context ? Thank's Daniel Langevin "

Rép. : AW: substring using indexof +1 using simple language

2017-11-24 Thread Daniel Langevin
Thank's i use this and it works. ${body.replaceAll(".*@(.*)","$1")} Daniel >>> I recommend to use a regular expression instead. -Ursprüngliche Nachricht- Von: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Gesendet: Donnerstag,

substring using indexof +1 using simple language

2017-11-23 Thread Daniel Langevin
ith value type: class java.lang.String and value: 15++ if i decomposed it it's work ${body.indexOf("@")}++ ${body.substring(${header.dnsStart},${body.length})} Is it possible to achieve it in only one instruction ? Regards Daniel Langevin "Le présent courri