Multiple CamelContext in separate bundles

2015-06-16 Thread jamalissimo
Hello, I have a project which consists of 20+ bundles. Each bundle has its own blueprint xml config file but there is only one main camel context for all the bundles: http://camel.apache.org/schema/blueprint";> . . . I would like to be able to de

Camel repeat route

2015-02-03 Thread jamalissimo
Hello guys, I would like to kindly ask you if anyone knows how to solve this issue: I have a web app which is synchronized with ldap and is checking ldap every minute if there are new groups. If so, then the app will take the groups from ldap and inserts them into its internal database. Then I

Loop - saving responses

2014-06-05 Thread jamalissimo
Hello guys, I am solving a problem with Camel 2.11 and Karaf 2.3.1. I have a route, where I use .loop() and in this route I call a web service which returns response which I want to keep. I need to keep all responses and then print them in the output message. After the loop ends, I have only the l

camel-xmljson convert POJO to XML

2014-01-13 Thread jamalissimo
Hello guys, I need to cenvert POJO or JSON to XML file. I was sort of able to generate XML with Jackson library, but I would like to use camel-xmljson and I don't know how exactly. I read the documentation at http://camel.apache.org/json.html and I know how to set it up and how to marshal it, but

Re: ActiveMQ processing

2014-01-07 Thread jamalissimo
Hi hekonsek, I know that I will get the result when the request is solved in queue, but for example, when I am processing big amount of data, I don't want to wait 20 seconds. I can use "to("direct:foo")" for this purpose. I just want add the requests to the queue and return result right away(like

ActiveMQ processing

2014-01-06 Thread jamalissimo
Hello guys, I am quite new to whole activeMQ thing, but here is the thing. I have this route which works ok, but my problem is that I have to wait till "activemq:queue:users.add" route ends and then get result. I want it to work in background. I simply need to send request to add user and immediate

Re: File upload

2013-07-18 Thread jamalissimo
I moved the question to CXF forums and I also added solution http://cxf.547215.n5.nabble.com/Multipart-file-upload-td5730547.html -- View this message in context: http://camel.465427.n5.nabble.com/File-upload-tp5735172p5735840.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: File upload

2013-07-08 Thread jamalissimo
Hello Sergey, thanks for the tip. I am still experimenting and so far I can see from the log, that I am receiving the request, but I am not able create a condition for choice definition. This is the REST part: @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Path("/upload

File upload

2013-07-03 Thread jamalissimo
Hello guys, I have working file upload route( http://camel.465427.n5.nabble.com/Send-file-via-POST-request-td5728674.html#a5729109 ). Only problem is that I can send only file which is located at the same server as Karaf. My workflow is like this: Server with upload form -> Upload to server with

LDAP component - search for multiple users

2013-06-12 Thread jamalissimo
Hello guys, I am now trying to add functionality for searching multiple users to our project. We already have code which returns data for single user. From the begining it looked quite easy. I will just send request like (|(uid=user1)(uid=user2)) to LDAP. This actually works and I can see in karaf

users@camel.apache.org

2013-05-14 Thread jamalissimo
Hi, I will try to be more specific. This is how I call the service: /path/to/service/upload?product=MyProduct&index=0&uploader=roman&pathToFile=/path/to/my/fileWhichContains&inTheName.txt&folderId=1 When I try this URL I will get *java.lang.ArrayIndexOutOfBoundsException: 1* error. -Thanks Ro

users@camel.apache.org

2013-05-14 Thread jamalissimo
Hi guys, I am working on file upload route and when I want to upload file and it's name contains & character, then I will get this error: java.lang.ArrayIndexOutOfBoundsException: 1 Camel awaits certain number of QueryParams which are defined beforehand. When it finds & it will detect it as next

Re: Upload file - How to pass InputStream to Camel's route

2013-03-26 Thread jamalissimo
Hi Raul, thanks for quick answer. This looks easy when you are using @GET, but I am sending @POST request. If I am right, @POST sends data only in headers. I was thinking about attachments, may be, but here it gets more confusing for me :-) Here is my REST implementation:

Re: Upload file - How to pass InputStream to Camel's route

2013-03-25 Thread jamalissimo
To be more specific, on client side there is classic form for uploading files which sends data to my service via @GET request. I can handle variables but I don't now how to handle file which comes with variables. -Br, Roman -- View this message in context: http://camel.465427.n5.nabble.com/Upl

Upload file - How to pass InputStream to Camel's route

2013-03-25 Thread jamalissimo
Hi everyone, lately, I was working on @POST Consumer which was able to upload a file( link ). It was really challenging but it still has one "bug". I am not able to directly upload file from my local drive. Firstly I ha

Re: Send file via POST request

2013-03-13 Thread jamalissimo
This solution works ok with one little glitch. When I was working on my local environment then there was no problem, but when I deployed it to my server I noticed on little thing. The file I am uploading, has to be located on your server, but you want to upload it from your(client's) drive. So you

Re: Send file via POST request

2013-03-13 Thread jamalissimo
Hi guys, I am back with the solution. I finally managed how to do that! First thing was to find out that consumer sends all data in headers and you can't access the exchange's body. I managed to get data from headers and pass them into Camel's properties which could be then globally passed whereve

Re: Send file via POST request

2013-03-08 Thread jamalissimo
Hi, I will describe what steps I need to do and what I have done. This route servers as file uploader but not in the right sense of the word. It does not upload file via stream but I need to send the file as part of post request What I need to do: 1. Get QueryParams from given url e.g. http://lo

Send file via POST request

2013-03-06 Thread jamalissimo
Hello guys, I am currently working on quite exciting assignment. Here is what I want to do: @GET REST response -> CXF to get parameters from exchange -> 3rd Party API to get session_id -> BEAN to send data via POST method and in multipart/mixed( it is for uploading files ) My first problem is th