Re: Rabbitmq URI

2016-12-05 Thread souciance
I would imagine that random queue is the reply-to queue generated because
you are trying to send to an exchange and expect a response. I see you have
set the pattern to InOnly but normally I set the exchange pattern at route
level. By the way have you checked that the routingkey you are using to
send matches the binding on that echange`? I.e. the binding is for that
queue you want to send to.

On Tue, Dec 6, 2016 at 1:43 AM, kaiser75 [via Camel] <
ml-node+s465427n5791070...@n5.nabble.com> wrote:

> I was going through the documentation for  rabbitmq: component.
>
> Where can I send the queue name as a parameter in the URI?
>
> When I tried  this  pattern="InOnly" />
>
> where orders.error is the name of the queue , a random queue with a UUID
> as a name is created.  How do I route my message to the a named queue.
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Rabbitmq-URI-tp5791070.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/Rabbitmq-URI-tp5791070p5791082.html
Sent from the Camel - Users mailing list archive at Nabble.com.

swagger-java with multiple wars returns no content

2016-12-05 Thread Marvin
Hi,

I'm working with multiple wars which are running in a tomcat. In each
application I defined some rest interfaces and use a servlet (each servlet
has it's own unique name). I also configured swagger in each application.

Now I have the problem that swagger works with one application only. If I
deploy another war swagger doesn't work anymore. If I call the api-docs I
get an empty response (http 204). 

Currently I'm working with camel version 2.18.1 and I'm using camel-core as
shared library due to vm component (maybe this could be helpful). With
camel-swagger (2.15.2) it worked fine.

Following my configuration (similar in each application):

*web.xml*:


Camel Http Transport Servlet
TestCamelServlet

org.apache.camel.component.servlet.CamelHttpTransportServlet
1



TestCamelServlet
/rest/*



   
ApiDeclarationServlet

org.apache.camel.swagger.servlet.RestSwaggerServlet


base.path
rest


api.path
api-docs


api.version
1.0


api.title
Test API


api.description
Test Description

2



ApiDeclarationServlet
/api-docs/*



RestSwaggerCorsFilter
  
org.apache.camel.swagger.servlet.RestSwaggerCorsFilter

  

RestSwaggerCorsFilter
/api-docs/*
/rest/*


*restConfiguration*:
restConfiguration().component("servlet")
.endpointProperty("servletName", "TestCamelServlet")
.dataFormatProperty("prettyPrint", "true")
.bindingMode(RestBindingMode.auto)
.contextPath("test-api/rest");

Does anyone have an idea how I can solve this?

BR
Marvin



--
View this message in context: 
http://camel.465427.n5.nabble.com/swagger-java-with-multiple-wars-returns-no-content-tp5791067.html
Sent from the Camel - Users mailing list archive at Nabble.com.


XSLT transformation Base64binary and camel xslt

2016-12-05 Thread ravi21588
Hi All,

We have an integration to generate the document from document generation
system.
The Document generation system returns document as bytes of array.
While creating response i need to create an xml  along with attachment type
as an element with type base64binary.
Can you please tell me how can i acheive it.





--
View this message in context: 
http://camel.465427.n5.nabble.com/XSLT-transformation-Base64binary-and-camel-xslt-tp5791061.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Sql-stored: return clob

2016-12-05 Thread Cecilio Alvarez
Hello,

is it possible to return a java.sql.clob with the sql-stored component?

I tested it adding a new parameter with a specific clob treatment:

in
components\camel-sql\src\main\java\org\apache\camel\component\sql\stored\TemplateStoredProcedure.java

declareParameter(new SqlOutParameter(outParameter.getOutValueMapKey(),
outParameter.getSqlType(), null, new ClobReturnType()));


Is this feature available within other standard camel component?

Many thanks in advance
Cecilio



--
View this message in context: 
http://camel.465427.n5.nabble.com/Sql-stored-return-clob-tp5791004.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Maven idea:idea fails

2016-12-05 Thread fox
@Claus I'm aware that I should not be using maven idea plugin, but instead
load the POM in intellij. That is what I am doing.

The reason I raised this issue was that the
http://camel.apache.org/building.html page suggests using the maven idea
plugin, which is obsolete now. And my suggestion was to update that page
with what you just said.

Also, I didn't think of loading only the POM for the component that I need
to work on. Awesome suggestion +1. Maybe this should be mentioned as well on
the building page?

Thanks,
Fox



--
View this message in context: 
http://camel.465427.n5.nabble.com/Maven-idea-idea-fails-tp5791000p5791003.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Maven idea:idea fails

2016-12-05 Thread Claus Ibsen
Hi

Do not use this old maven idea:idea plugin, but just open the pom.xml
file in IDEA and it has maven support out of the box and loads the
project nicely.

This is how I open any Maven project in IDEA.

Also mind that loading all the Camel source code into IDEA is not a
good idea, there is a lot of code. I usually open the component I need
to work on instead.



On Mon, Dec 5, 2016 at 6:35 AM, aefox  wrote:
> Hello,
>
> I did a clean clone of camel locally and tried running "mvn idea:idea" as
> suggested here: http://camel.apache.org/building.html.
>
> The problem is that the action fails with the following error:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-idea-plugin:2.2.1:idea (default-cli) on
> project camel-parent: Execution default-cli of goal
> org.apache.maven.plugins:maven-idea-plugin:2.2.1:idea failed.
> NullPointerException -> [Help 1]
>
> I looked at maven-idea-plugin and the project is retired
> (http://maven.apache.org/plugins/maven-idea-plugin/). I think the
> building.html page should be updated with this detail (to suggest not to use
> mvn idea:idea because it crashes) and instead suggest that when using
> IntelliJ IDEA's IDE one should import the root POM.
>
> Thanks,
> Fox
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Maven-idea-idea-fails-tp5791000.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Maven idea:idea fails

2016-12-05 Thread aefox
Hello,

I did a clean clone of camel locally and tried running "mvn idea:idea" as
suggested here: http://camel.apache.org/building.html.

The problem is that the action fails with the following error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-idea-plugin:2.2.1:idea (default-cli) on
project camel-parent: Execution default-cli of goal
org.apache.maven.plugins:maven-idea-plugin:2.2.1:idea failed.
NullPointerException -> [Help 1]

I looked at maven-idea-plugin and the project is retired
(http://maven.apache.org/plugins/maven-idea-plugin/). I think the
building.html page should be updated with this detail (to suggest not to use
mvn idea:idea because it crashes) and instead suggest that when using
IntelliJ IDEA's IDE one should import the root POM.

Thanks,
Fox



--
View this message in context: 
http://camel.465427.n5.nabble.com/Maven-idea-idea-fails-tp5791000.html
Sent from the Camel - Users mailing list archive at Nabble.com.