Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-29 Thread Frank Ertl
Hi Claus,

you're absolutely right. It is this thread:

http://camel.465427.n5.nabble.com/Help-on-deploying-Camel-on-Weblogic-12c-Name-Collision-td5720837.html

  

I had the same issue and this was the solution.

@Kulbhusan: I remember going through the same problems you encounter step
after step. If I remember correctly this was the last step to solve the
deployment issues on weblogic 12c.

Regards,
Frank



--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-Camel-Context-initialization-error-in-weblogic-12c-tp5733202p5733391.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: New Line in

2013-05-29 Thread Cristiano Costantini
Hi,
yes, I need to use 2.10.4 as it is the version of camel available in latest
version of Servicemix.

For now we will avoid manually to format it.

I've added a junit test which open the routes and if the XML is formatted
by someone on the team at least the build will fail so I keep under control
the issue and we prevent to break the application.

Thank you,
Cristiano






2013/5/28 Babak Vahdat 

>
>
> Am 28.05.13 22:22 schrieb "Cristiano Costantini" unter
> :
>
> >Hi All,
> >
> >if I have a new line in a Simple expression like the following
> >
> >
> >${header.myHeader} in
> >'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour'
> >
> >
> >
> >
> >I get a
> >org.apache.camel.language.simple.types.SimpleIllegalSyntaxException:
> >Unexpected token at location...
> >
> >
> >The route works fine if I write the expression without new lines to the
> >left or the right of the 'in' operator:
> >
> >   ${header.myHeader} in
> >'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour'
> >
> >
> >As I'm required to format XML in Eclipse, can you suggest me a way to make
> >the simple language tolerate new lines ?
>
> Hi
>
> I assume you make use of a Camel version lower than 2.11.0 as since then
> this issue has been fixed.
>
> Babak
>
> >
> >thank you,
> >Cristiano
>
>
>


Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-29 Thread Kulbhushan Azad
Thanks, i checked that post and did try the option of adding
jaxb.properties , but with no luck , it still gives the error "Two classes
have the XML type with uri http://camel.apache.org/schema/spring and name
expression"






On Wed, May 29, 2013 at 3:57 AM, Frank Ertl <
frank.e...@f-i-solutions-plus.de> wrote:

> Hi Claus,
>
> you're absolutely right. It is this thread:
>
>
> http://camel.465427.n5.nabble.com/Help-on-deploying-Camel-on-Weblogic-12c-Name-Collision-td5720837.html
> <
> http://camel.465427.n5.nabble.com/Help-on-deploying-Camel-on-Weblogic-12c-Name-Collision-td5720837.html
> >
>
> I had the same issue and this was the solution.
>
> @Kulbhusan: I remember going through the same problems you encounter step
> after step. If I remember correctly this was the last step to solve the
> deployment issues on weblogic 12c.
>
> Regards,
> Frank
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Spring-Camel-Context-initialization-error-in-weblogic-12c-tp5733202p5733391.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Thanks
Kulbhusan


Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-29 Thread Frank Ertl
Sorry, my fault. Sometimes my memory is like a sieve. I looked at my patched
camel-spring-2.x.y.jar and found that the class mentioned in the above post
ist not the correct one (at least for my combination of camel, spring and
java-version).
In my jaxb.properties I have the line as follows:

javax.xml.bind.context.factory=com.sun.xml.internal.bind.v2.ContextFactory

Could you try if this helps?

Frank



--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-Camel-Context-initialization-error-in-weblogic-12c-tp5733202p5733396.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Help Jaxb

2013-05-29 Thread Bovas
Hi,

I use camel 2.11, jdk1.6, Groovy language.
I have problem in use Jaxb. I don't understand the problem. 
I read this http://camel.apache.org/producertemplate.html
I try this solution
http://camel.465427.n5.nabble.com/ProducerTemplate-td4552750.html#a4553023
(only Pojo, no spring)

Can someone help me please? or give me a simple use of jaxb.

 

My class customer :

 

regards, 
Bovas





--
View this message in context: 
http://camel.465427.n5.nabble.com/Help-Jaxb-tp5733397.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Serial in 2.11

2013-05-29 Thread Mark Lawson
Hi. Are there any plans to have a serial route in 2.11 with the mina
component? I saw talk about the possibility last year. I'm using a proxy at
the moment to talk to my arduino, but a direct connection would be cooler.
Sadly, my Java isn't up to writing one. 

Rgds,

Mark



--
View this message in context: 
http://camel.465427.n5.nabble.com/Serial-in-2-11-tp5733398.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How to programmatically Generate/Edit Blueprint CamelContext xml

2013-05-29 Thread raghavadasyam
Hi,

I want to generate/Edit (Serialisation/Deserisialion) CamelContext.xml for
Blueprint programmatically.
Is there any way to do this..

Any API are already existing for the same.

Advance thanks for your reply.

Thanks,
Raghava Rao



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-programmatically-Generate-Edit-Blueprint-CamelContext-xml-tp5733401.html
Sent from the Camel - Users mailing list archive at Nabble.com.


TypeConverting to null and

2013-05-29 Thread Cristiano Costantini
Hi All,

I have a custom type converter to a custom data model.

For my purposes, some input types need to be converted to null and  the
exchange need to be processed to add an header even if conversion results
in null.

For example (simplified):

@Converter
public static MyPayload convert(MessageContentsList message, Exchange
exchange) {
  if (exchange != null) {
exchange.getIn().getHeaders().put("newHeaderName",
"someNewHeaderValue");
  }
  return null;
}

Well, the first time the converter is invoked it works (the exchange has
the new header),
The second time invokation of "convert" get skipped in
BaseTypeConverterRegistry.doConvertTo(...) as the following if statement
resolves to true:

// check if we have tried it before and if its a miss
TypeMapping key = new TypeMapping(type, value.getClass());
if (misses.containsKey(key)) {
// we have tried before but we cannot convert this one
return Void.TYPE;
}

I've seen that there have been "semantical ambiguity of null"  in the past,
which should have been solved in issue CAMEL-84, but I've not understood it
and how I should handle this scenario in a proper way.

I guess I'm using type converter in a bad style, but as I don't understand
why I can't guess the good way.

The only idea I have is to create a class MyEmptyPayload implements
MyPayload { } and return an instance to this instead of null, but I still
would like to understand the reasons.

Could someone orient me toward the right solution?

Thank you very much,
Cristiano


Re: Why doesn't the stub component throw exceptions in tests

2013-05-29 Thread Bilgin Ibryam
On 24 May 2013 16:15, Claus Ibsen  wrote:

> There is no bug on the seda consumer.


Claus, you are right as always, there is no bug.

I  was referring to line 196 from SedaConsumer [1]
If an exception happens during processing, it is logged and not propagated
back, but that is never the case, because the exception is always caught
and set to the exchange beforehand, so it is propagaed at line 194

Cheers
Bilgin


[1]
https://fisheye6.atlassian.com/browse/camel/trunk/camel-core/src/main/java/org/apache/camel/component/seda/SedaConsumer.java?hb=true#to196



> He sends a InOnly message.
> So the consumer can only "handle" the exception itself by logging it.
>
> If he does a InOut then the producer template will wait for the reply
> message, and because it failed with the exception, the reply message is the
> exception.
>
>
> On Fri, May 24, 2013 at 5:09 PM, Bilgin Ibryam  wrote:
>
> > Hi,
> >
> > can you try to set the exception on the exchange instead of throwing it?
> > If that's the case then I think there might a bug in SedaConsumer which
> > propagates back exceptions on the exchange but doesn't propagate thrown
> > exceptions.
> >
> > Bilgin
> >
> >
> > On 24 May 2013 12:31, dancerjohn  wrote:
> >
> > >
> > > I disagree... the javadoc for ProducerTemplate.sendBody() states
> "Notice:
> > > that if the processing of the exchange failed with an Exception it is
> > > thrown
> > > from this method as a CamelExecutionException with the caused exception
> > > wrapped.". So if an exception is thrown during processing sendBody
> should
> > > throw a CamelExecutionException.
> > >
> > > The point I am making is that when the channel is a direct channel this
> > > DOES
> > > happen. However, everything else being the same if the channel is a
> stub
> > > this DOES NOT happen. Therefore there is a difference in the components
> > > between direct and stub in this regard. This seems surprising.
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://camel.465427.n5.nabble.com/Why-doesn-t-the-stub-component-throw-exceptions-in-tests-tp5733041p5733083.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> >
>
>
>
> --
> Claus Ibsen
> -
> www.camelone.org: The open source integration conference.
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cib...@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>


Re: AWS-SQS with dynamic queue name

2013-05-29 Thread Bilgin Ibryam
On 25 May 2013 09:00, EySemp  wrote:

> Is it possible to use the aws-sqs component with a dynamic queue name
> computed at runtime?
>

It is not possible with the current code, but would be really easy to add
that feature.

Have a look at getQueueUrl  method in SqsProducer [1] . It has to be
extended similarly to addDelay method in the same class. Why don't you give
it try :)


Bilgin

[1]
https://fisheye6.atlassian.com/browse/camel/trunk/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsProducer.java?hb=true#to89


>
> I'm looking for something similar to the CamelJmsDestinationName header
> used
> for the JMS component that allows you to overwrite the final queue
> destination during runtime.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/AWS-SQS-with-dynamic-queue-name-tp5733150.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Intermittent NoSuchBeanException in a Camel Route Test

2013-05-29 Thread fordm
Hi,

I've got a pretty simple Blueprint Camel route, e.g.



http://camel.apache.org/schema/blueprint";>





${body.getMyRequest}







When deployed into a Fuse ESB Fabric messages route correctly. Like a good
developer, I've written a route test (which extends
CamelBlueprintTestSupport), e.g.

public class MyRouteTest extends CamelBlueprintTestSupport {
private static final String MESSAGE = "Some message";

@Produce
protected ProducerTemplate producerTemplate;

@Test
public void messageSuccessfullyRouted() throws Exception {
getMockEndpoint(MOCK_TO_QUEUE).expectedMessageCount(1);
producerTemplate.requestBody("fabric:key:queue", MESSAGE);
assertMockEndpointsSatisfied();
}

@Override
protected String getBlueprintDescriptor() {
return "/OSGI-INF/blueprint/blueprint.xml";
}

// Code omitted for brevity
}

Now, running the test (as part of my maven build) occasionally gives me a
NoSuchBeanException:

org.apache.camel.NoSuchBeanException: Found bean: producerTemplate in
BlueprintContainer:
org.apache.aries.blueprint.container.BlueprintContainerImpl@67ae0c6e of
type: org.apache.camel.impl.DefaultProducerTemplate expected type was:
interface org.apache.camel.Endpoint
at java.lang.Class.cast(Class.java:3005)
at
org.apache.camel.blueprint.BlueprintContainerRegistry.lookup(BlueprintContainerRegistry.java:58)
at
org.apache.camel.impl.CompositeRegistry.lookup(CompositeRegistry.java:49)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:62)
at
org.apache.camel.util.CamelContextHelper.lookup(CamelContextHelper.java:108)
at
org.apache.camel.util.CamelContextHelper.getEndpointInjection(CamelContextHelper.java:158)
at
org.apache.camel.impl.CamelPostProcessorHelper.getEndpointInjection(CamelPostProcessorHelper.java:135)
at
org.apache.camel.impl.CamelPostProcessorHelper.createInjectionProducerTemplate(CamelPostProcessorHelper.java:177)
at
org.apache.camel.impl.CamelPostProcessorHelper.getInjectionValue(CamelPostProcessorHelper.java:144)
at
org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectField(DefaultCamelBeanPostProcessor.java:182)
at
org.apache.camel.impl.DefaultCamelBeanPostProcessor$1.doWith(DefaultCamelBeanPostProcessor.java:175)
at
org.apache.camel.util.ReflectionHelper.doWithFields(ReflectionHelper.java:73)
at
org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectFields(DefaultCamelBeanPostProcessor.java:166)
at
org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:80)
at
org.apache.camel.test.junit4.CamelTestSupport.postProcessTest(CamelTestSupport.java:404)
at
org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:291)
at
org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:217)
at
org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:107)

Anyone got any ideas?

Many thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/Intermittent-NoSuchBeanException-in-a-Camel-Route-Test-tp5733405.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Intermittent NoSuchBeanException in a Camel Route Test

2013-05-29 Thread Claus Ibsen
Hi

Remove the  from your xml.

And the ProducerTemplate from your unit test. There is already an
template out of the box, with the name template.

See the unit tests in camel-test-blueprint for examples.

On Wed, May 29, 2013 at 2:53 PM, fordm  wrote:
> Hi,
>
> I've got a pretty simple Blueprint Camel route, e.g.
>
> 
> 
>  xmlns="http://camel.apache.org/schema/blueprint";>
> 
>
> 
> 
> 
> ${body.getMyRequest}
> 
> 
> 
> 
> 
> 
>
> When deployed into a Fuse ESB Fabric messages route correctly. Like a good
> developer, I've written a route test (which extends
> CamelBlueprintTestSupport), e.g.
>
> public class MyRouteTest extends CamelBlueprintTestSupport {
> private static final String MESSAGE = "Some message";
>
> @Produce
> protected ProducerTemplate producerTemplate;
>
> @Test
> public void messageSuccessfullyRouted() throws Exception {
> getMockEndpoint(MOCK_TO_QUEUE).expectedMessageCount(1);
> producerTemplate.requestBody("fabric:key:queue", MESSAGE);
> assertMockEndpointsSatisfied();
> }
>
> @Override
> protected String getBlueprintDescriptor() {
> return "/OSGI-INF/blueprint/blueprint.xml";
> }
>
> // Code omitted for brevity
> }
>
> Now, running the test (as part of my maven build) occasionally gives me a
> NoSuchBeanException:
>
> org.apache.camel.NoSuchBeanException: Found bean: producerTemplate in
> BlueprintContainer:
> org.apache.aries.blueprint.container.BlueprintContainerImpl@67ae0c6e of
> type: org.apache.camel.impl.DefaultProducerTemplate expected type was:
> interface org.apache.camel.Endpoint
> at java.lang.Class.cast(Class.java:3005)
> at
> org.apache.camel.blueprint.BlueprintContainerRegistry.lookup(BlueprintContainerRegistry.java:58)
> at
> org.apache.camel.impl.CompositeRegistry.lookup(CompositeRegistry.java:49)
> at
> org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:62)
> at
> org.apache.camel.util.CamelContextHelper.lookup(CamelContextHelper.java:108)
> at
> org.apache.camel.util.CamelContextHelper.getEndpointInjection(CamelContextHelper.java:158)
> at
> org.apache.camel.impl.CamelPostProcessorHelper.getEndpointInjection(CamelPostProcessorHelper.java:135)
> at
> org.apache.camel.impl.CamelPostProcessorHelper.createInjectionProducerTemplate(CamelPostProcessorHelper.java:177)
> at
> org.apache.camel.impl.CamelPostProcessorHelper.getInjectionValue(CamelPostProcessorHelper.java:144)
> at
> org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectField(DefaultCamelBeanPostProcessor.java:182)
> at
> org.apache.camel.impl.DefaultCamelBeanPostProcessor$1.doWith(DefaultCamelBeanPostProcessor.java:175)
> at
> org.apache.camel.util.ReflectionHelper.doWithFields(ReflectionHelper.java:73)
> at
> org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectFields(DefaultCamelBeanPostProcessor.java:166)
> at
> org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:80)
> at
> org.apache.camel.test.junit4.CamelTestSupport.postProcessTest(CamelTestSupport.java:404)
> at
> org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:291)
> at
> org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:217)
> at
> org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:107)
>
> Anyone got any ideas?
>
> Many thanks
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Intermittent-NoSuchBeanException-in-a-Camel-Route-Test-tp5733405.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Using ActiveMQ with Camel

2013-05-29 Thread VineetKK
Hello,I am using Camel 2.10.4.I have the following scenario:1) User will give
request to Camel. (Will be exposed as RESTFul WS)2) Camel will move that
request to ActiveMQ. (ActiveMQ bundled with Camel)3) An external listener
(consumer) will listen to the ActiveMQ and route the request to respective
service layer.I have the following doubts:1) Can I directly use ActiveMQ
bundled with Camel? I yes, how to I need to configure the same i.e. activemq
broker, activemq web console etc...?2) If no, then do I need to use a
standalone ActiveMQ?3) If someone has done the same scenario previously, can
you please guide me?Regards,Vineet



--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-ActiveMQ-with-Camel-tp5733407.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Intermittent NoSuchBeanException in a Camel Route Test

2013-05-29 Thread fordm
Thanks for the prompt response Claus, it seems to have done the trick.

Out of interest, any thoughts on what makes it an intermittent problem? Is
it something in the way / order the bean lookup occurs?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Intermittent-NoSuchBeanException-in-a-Camel-Route-Test-tp5733405p5733408.html
Sent from the Camel - Users mailing list archive at Nabble.com.


SEDA vs JMS/ActiveMQ

2013-05-29 Thread Cristiano Costantini
Hello,

I've been prototyping my application using SEDA and I wrote routes with
endpoints using this component.

Now I've started to make some tests using an embedded ActiveMQ and
substituting the seda: endpoints with jms: or activemq:

Of course! I've started getting many errors as I was using custom classes
both as body and headers in camel Exchanges.

I'm not an expert at all of JMS or ActiveMQ, but I need it to
implement Guaranteed Delivery and Durable Subscriber patterns.


How should I deal with serialization of classes in body and headers when
using ActiveMQ? (my classes don't implement Serializable but are annotated
with JaxB and can be marshalled/unmarshalled)

Do you know any web resource which I can study to learn using ActiveMQ for
my needs?

Thank you again,
Cristiano


Re: Help Jaxb

2013-05-29 Thread Magnus Palmér
You use the Spring annotation @Autowire for your ProducerTemplate which is
null when you try to use it.
You wrote that you don't use Spring?

You will need a CamelContext for your route to run in as well.

Kind regards, Magnus Palmér


2013/5/29 Bovas 

> Hi,
>
> I use camel 2.11, jdk1.6, Groovy language.
> I have problem in use Jaxb. I don't understand the problem.
> I read this http://camel.apache.org/producertemplate.html
> I try this solution
> http://camel.465427.n5.nabble.com/ProducerTemplate-td4552750.html#a4553023
> (only Pojo, no spring)
>
> Can someone help me please? or give me a simple use of jaxb.
>
> 
>
> My class customer :
>
> 
>
> regards,
> Bovas
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Help-Jaxb-tp5733397.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: SEDA vs JMS/ActiveMQ

2013-05-29 Thread Cristiano Costantini
Reading now chapter 7.3.1 of Camel in Action about "Sending and Receiving
messages" for JMS component, it is helping me getting some clarifications...


2013/5/29 Cristiano Costantini 

> Hello,
>
> I've been prototyping my application using SEDA and I wrote routes with
> endpoints using this component.
>
> Now I've started to make some tests using an embedded ActiveMQ and
> substituting the seda: endpoints with jms: or activemq:
>
> Of course! I've started getting many errors as I was using custom classes
> both as body and headers in camel Exchanges.
>
> I'm not an expert at all of JMS or ActiveMQ, but I need it to
> implement Guaranteed Delivery and Durable Subscriber patterns.
>
>
> How should I deal with serialization of classes in body and headers when
> using ActiveMQ? (my classes don't implement Serializable but are annotated
> with JaxB and can be marshalled/unmarshalled)
>
> Do you know any web resource which I can study to learn using ActiveMQ for
> my needs?
>
> Thank you again,
> Cristiano
>


Re: SEDA vs JMS/ActiveMQ

2013-05-29 Thread Cristiano Costantini
For those who will get in the same trouble as mine, read chapter 7.3.3 of
Camel In Action: "Message mappings".

I've not yet understood how to deal with JMS but at least I've started
understanding how it support the Camel Exchange.


2013/5/29 Cristiano Costantini 

> Reading now chapter 7.3.1 of Camel in Action about "Sending and Receiving
> messages" for JMS component, it is helping me getting some clarifications...
>
>
> 2013/5/29 Cristiano Costantini 
>
>> Hello,
>>
>> I've been prototyping my application using SEDA and I wrote routes with
>> endpoints using this component.
>>
>> Now I've started to make some tests using an embedded ActiveMQ and
>> substituting the seda: endpoints with jms: or activemq:
>>
>> Of course! I've started getting many errors as I was using custom classes
>> both as body and headers in camel Exchanges.
>>
>> I'm not an expert at all of JMS or ActiveMQ, but I need it to
>> implement Guaranteed Delivery and Durable Subscriber patterns.
>>
>>
>> How should I deal with serialization of classes in body and headers when
>> using ActiveMQ? (my classes don't implement Serializable but are annotated
>> with JaxB and can be marshalled/unmarshalled)
>>
>> Do you know any web resource which I can study to learn using ActiveMQ
>> for my needs?
>>
>> Thank you again,
>> Cristiano
>>
>
>


Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-29 Thread anand_tech
So it means that 5 different threads of direct component will pour the
messages into one single thread of SEDA ? 

I am sorry if i am really being noob here 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Back-to-Basics-Apache-Camel-Routes-and-Direct-Component-tp5731899p5733415.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-29 Thread Christian Posta
each of your 5 threads will place its exchange into a in-memory queue
representing the SEDA component, and then the threads for the SEDA
component will process the exchanges. That means the seda component will
process the exchange in different threads than your calling thread. The
number of seda threads is configurable by you, so it's not necessarily
"one" like you mention.






On Wed, May 29, 2013 at 7:37 AM, anand_tech  wrote:

> So it means that 5 different threads of direct component will pour the
> messages into one single thread of SEDA ?
>
> I am sorry if i am really being noob here
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Back-to-Basics-Apache-Camel-Routes-and-Direct-Component-tp5731899p5733415.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta


Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-29 Thread anand_tech
Thanks for quick response

so at the end it boils to how much concurrentConsumers i have configured on
seda endpoint. And i mentioned "one" because i haven't configured any
concurrentConsumers in my code as of now, so there would be only one seda 
thread processing all the exchanges rite ?

And one more question : if i change this seda to direct component then all 5
different threads will now be processed concurrently since direct is like
method invocation : no blocking queue and async stuff. Please correct me.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Back-to-Basics-Apache-Camel-Routes-and-Direct-Component-tp5731899p5733419.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-29 Thread Christian Posta
Yes, it depends on how many concurrentConsumers you have. Default is 1.
And yes, if you use direct component with 5 separate application threads
calling into the route, you won't need context switching and blocking
queues.

Take a good look at SEDA (
http://en.wikipedia.org/wiki/Staged_event-driven_architecture, as well as
the camel-seda component referenced by Claus above...) to see when it
becomes advantageous.




On Wed, May 29, 2013 at 8:05 AM, anand_tech  wrote:

> Thanks for quick response
>
> so at the end it boils to how much concurrentConsumers i have configured on
> seda endpoint. And i mentioned "one" because i haven't configured any
> concurrentConsumers in my code as of now, so there would be only one seda
> thread processing all the exchanges rite ?
>
> And one more question : if i change this seda to direct component then all
> 5
> different threads will now be processed concurrently since direct is like
> method invocation : no blocking queue and async stuff. Please correct me.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Back-to-Basics-Apache-Camel-Routes-and-Direct-Component-tp5731899p5733419.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta


Re: Global definition for HttpClient.XXX options

2013-05-29 Thread Christian Müller
In this case, I propose to use the "httpClientConfigurer" option if you can
write some lines of Java code...

Best,

Christian Müller
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Tue, May 28, 2013 at 6:21 PM, kalyan  wrote:

> Hello,
>
> From what I see in camel documentation (http://camel.apache.org/http.html
> ),
> every url needs to httpClient.XXX definitions in the query params.
>
> Is there a global way to define all these so that it is not repeated for
> all
> URLs which increases maintenance effort ?
>
> Regards,
> Kalyan
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Global-definition-for-HttpClient-XXX-options-tp5733368.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: evaluating bean expressions in custom language

2013-05-29 Thread javamonkey79
I have built a camel language component - that is what this is for. I'm
asking if there is a standard way to evaluate bean expressions in language
components.



--
View this message in context: 
http://camel.465427.n5.nabble.com/evaluating-bean-expressions-in-custom-language-tp5733377p5733424.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Serial in 2.11

2013-05-29 Thread Hadrian Zbarcea
I am not sure how much netty could help you with that, as it targets 
tcp/ip communications (i.e a Channel), although the site claims that one 
could target serial/usb or other interfaces.


One bet would be using java libraries for serial communication [1] [2], 
but they are (l)gpl licensed and as such not eligible for inclusion in 
the official camel distro.


Another issue would be unit testing the component. Would you be able 
willing to provide input and test such a camel component? Maybe somebody 
in the community would be willing to help you.


And lastly, camel-2.11.0 was released more than a month ago.

My $0.02,
Hadrian

[1] http://rxtx.qbang.org/wiki/index.php/Main_Page
[2] https://code.google.com/p/java-simple-serial-connector/


On 05/29/2013 05:34 AM, Mark Lawson wrote:

Hi. Are there any plans to have a serial route in 2.11 with the mina
component? I saw talk about the possibility last year. I'm using a proxy at
the moment to talk to my arduino, but a direct connection would be cooler.
Sadly, my Java isn't up to writing one.

Rgds,

Mark



--
View this message in context: 
http://camel.465427.n5.nabble.com/Serial-in-2-11-tp5733398.html
Sent from the Camel - Users mailing list archive at Nabble.com.



Re: CamelOne

2013-05-29 Thread J. Ecklund
I'll be there Sunday evening in time for the reception.

See you all then!


Joshua Ecklund
Web Developer
m.prow...@gmail.com


On Mon, May 27, 2013 at 1:53 PM, Christian Müller <
christian.muel...@gmail.com> wrote:

> CamelOne 2013 (http://camelone.org/) is in about two weeks!
> Who will be there?
> I want to meet as many Camel user/contributors/committers/PMC's as
> possible. May be Sunday 06/09/2013 from 6:30 to 8:30 in the Exhibit Hall in
> Hynes Convention Center [1]?
>
> [1] http://camelone.org/apache-camel-conference-2013/camelone_agenda_2013/
>
> Looking forward,
> Christian Müller
> -
>
> Software Integration Specialist
>
> Apache Camel committer: https://camel.apache.org/team
> V.P. Apache Camel: https://www.apache.org/foundation/
> Apache Member: https://www.apache.org/foundation/members.html
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>


Re: Camel-configuration

2013-05-29 Thread Christian Müller
As far as I understood from [1], SQL Management Studio is a tool to manage
SQL server. It's not mot possible to "connect" from Camel to such a tool.
If you have problems to connect from SQL Management Studio to SQL Server,
this is simply the wrong mailing list...

[1] http://www.microsoft.com/en-us/download/details.aspx?id=8961

Best,

Christian Müller
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Mon, May 27, 2013 at 10:41 AM, milan777  wrote:

> hi,christian I am not getting the connection with sql management studio
> 2008so,i am not getting the connection with it so can u please suggest
> the connection string or any better steps to get connection with it...thanx
> in advance
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733245.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: CamelOne

2013-05-29 Thread Hadrian Zbarcea
I'll be landing late in the evening on Sun, around 8:30pm. I'll step by, 
but I may be too late.

Cheers,
Hadrian


On 05/27/2013 03:53 PM, Christian Müller wrote:

CamelOne 2013 (http://camelone.org/) is in about two weeks!
Who will be there?
I want to meet as many Camel user/contributors/committers/PMC's as
possible. May be Sunday 06/09/2013 from 6:30 to 8:30 in the Exhibit Hall in
Hynes Convention Center [1]?

[1] http://camelone.org/apache-camel-conference-2013/camelone_agenda_2013/

Looking forward,
Christian Müller
-

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642



Re: Serial in 2.11

2013-05-29 Thread Robert Davies
Are you just capturing the output from the Arduino ? If you have a wireless or 
ethernet shield you could use mqtt?

On 29 May 2013, at 10:34, Mark Lawson  wrote:

> Hi. Are there any plans to have a serial route in 2.11 with the mina
> component? I saw talk about the possibility last year. I'm using a proxy at
> the moment to talk to my arduino, but a direct connection would be cooler.
> Sadly, my Java isn't up to writing one. 
> 
> Rgds,
> 
> Mark
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Serial-in-2-11-tp5733398.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



consumer.retroactive=true when using activemq

2013-05-29 Thread Eric East
Is this available for a camel routes when using activemq?  

camel route:  from("activemq:topic:sometopic.a?consumer.retroactive=true")

If not, is there a workaround to leverage the activemq retroactive
consumers?

I noticed a jira from 2010 that said this was not available.

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/consumer-retroactive-true-when-using-activemq-tp5733440.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-29 Thread liugang594 Liu
Sorry to bothering you again, I'd like to know is there any progress on
this issue? and I saw one bug is created related to it
https://issues.apache.org/jira/browse/CAMEL-6404 .

Thanks.


2013/5/29 liugang594 Liu 

> If the required service with ws-addressing enable, and from CXF component
> (dataFormat type is CXF_MESSAGE) sent a request msg without ws-addressing
> information inside. then got a NullPointerException, the error msg is:
>
> Exception in thread "default-workqueue-1" java.lang.NullPointerException
> at
> org.apache.camel.component.cxf.DefaultCxfBinding.getContentFromCxf(DefaultCxfBinding.java:642)
>  at
> org.apache.camel.component.cxf.DefaultCxfBinding.populateExchangeFromCxfResponse(DefaultCxfBinding.java:151)
> at
> org.apache.camel.component.cxf.CxfClientCallback.handleException(CxfClientCallback.java:81)
>  at
> org.apache.cxf.interceptor.ClientOutFaultObserver.onMessage(ClientOutFaultObserver.java:59)
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1132)
>  at
> org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)
>  at java.lang.Thread.run(Thread.java:722)
>
>
>
> The expect msg looks like:
>
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
>  
> 
> http://www.w3.org/2005/08/addressing
> ">ns1:MessageAddressingHeaderRequired
>  A required header representing a Message Addressing
> Property is not present
> 
>  
> 
>
>
> is it a bug of Camel?
>
> --
> Thanks
> GangLiu
> MSN: liugang_0...@hotmail.com
> Skype: gang.liu.talendbj
>
>


-- 
Thanks
GangLiu
MSN: liugang_0...@hotmail.com
Skype: gang.liu.talendbj


Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-29 Thread Willem jiang
It could save me some time if you can provide a simple test case for it.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, May 30, 2013 at 9:51 AM, liugang594 Liu wrote:

> Sorry to bothering you again, I'd like to know is there any progress on
> this issue? and I saw one bug is created related to it
> https://issues.apache.org/jira/browse/CAMEL-6404 .
>  
> Thanks.
>  
>  
> 2013/5/29 liugang594 Liu mailto:clevers...@gmail.com)>
>  
> > If the required service with ws-addressing enable, and from CXF component
> > (dataFormat type is CXF_MESSAGE) sent a request msg without ws-addressing
> > information inside. then got a NullPointerException, the error msg is:
> >  
> > Exception in thread "default-workqueue-1" java.lang.NullPointerException
> > at
> > org.apache.camel.component.cxf.DefaultCxfBinding.getContentFromCxf(DefaultCxfBinding.java:642)
> > at
> > org.apache.camel.component.cxf.DefaultCxfBinding.populateExchangeFromCxfResponse(DefaultCxfBinding.java:151)
> > at
> > org.apache.camel.component.cxf.CxfClientCallback.handleException(CxfClientCallback.java:81)
> > at
> > org.apache.cxf.interceptor.ClientOutFaultObserver.onMessage(ClientOutFaultObserver.java:59)
> > at
> > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1132)
> > at
> > org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)
> > at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > at
> > org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)
> > at java.lang.Thread.run(Thread.java:722)
> >  
> >  
> >  
> > The expect msg looks like:
> >  
> > http://schemas.xmlsoap.org/soap/envelope/";>
> > 
> > 
> > 
> > http://www.w3.org/2005/08/addressing
> > ">ns1:MessageAddressingHeaderRequired
> > A required header representing a Message Addressing
> > Property is not present
> > 
> > 
> > 
> >  
> >  
> > is it a bug of Camel?
> >  
> > --
> > Thanks
> > GangLiu
> > MSN: liugang_0...@hotmail.com (mailto:liugang_0...@hotmail.com)
> > Skype: gang.liu.talendbj
>  
>  
>  
>  
> --  
> Thanks
> GangLiu
> MSN: liugang_0...@hotmail.com (mailto:liugang_0...@hotmail.com)
> Skype: gang.liu.talendbj





Re: Exception doesn't get cauhgt in the route

2013-05-29 Thread salemi
Hi Claus,

We put the exception after  and tried it with inheritErrorHandler true
and false. It seems the exception are not caught by the onException clause.

If we add an errorhandler to the route then the exception get caught by the
errorhandler. We specified retries on the errorhandler but the 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-t-get-cauhgt-in-the-route-tp5733381p5733438.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-29 Thread liugang594 Liu
OK, let me send you an example, wait a moment. and BTW, seems RAW also has
problem.


2013/5/30 Willem jiang 

> It could save me some time if you can provide a simple test case for it.
>
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://www.fusesource.com | http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
> (English)
>   http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
>
>
> On Thursday, May 30, 2013 at 9:51 AM, liugang594 Liu wrote:
>
> > Sorry to bothering you again, I'd like to know is there any progress on
> > this issue? and I saw one bug is created related to it
> > https://issues.apache.org/jira/browse/CAMEL-6404 .
> >
> > Thanks.
> >
> >
> > 2013/5/29 liugang594 Liu  clevers...@gmail.com)>
> >
> > > If the required service with ws-addressing enable, and from CXF
> component
> > > (dataFormat type is CXF_MESSAGE) sent a request msg without
> ws-addressing
> > > information inside. then got a NullPointerException, the error msg is:
> > >
> > > Exception in thread "default-workqueue-1"
> java.lang.NullPointerException
> > > at
> > >
> org.apache.camel.component.cxf.DefaultCxfBinding.getContentFromCxf(DefaultCxfBinding.java:642)
> > > at
> > >
> org.apache.camel.component.cxf.DefaultCxfBinding.populateExchangeFromCxfResponse(DefaultCxfBinding.java:151)
> > > at
> > >
> org.apache.camel.component.cxf.CxfClientCallback.handleException(CxfClientCallback.java:81)
> > > at
> > >
> org.apache.cxf.interceptor.ClientOutFaultObserver.onMessage(ClientOutFaultObserver.java:59)
> > > at
> > >
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1132)
> > > at
> > >
> org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)
> > > at
> > >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > > at
> > >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > > at
> > >
> org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)
> > > at java.lang.Thread.run(Thread.java:722)
> > >
> > >
> > >
> > > The expect msg looks like:
> > >
> > > http://schemas.xmlsoap.org/soap/envelope/";>
> > > 
> > > 
> > > 
> > > http://www.w3.org/2005/08/addressing
> > > ">ns1:MessageAddressingHeaderRequired
> > > A required header representing a Message Addressing
> > > Property is not present
> > > 
> > > 
> > > 
> > >
> > >
> > > is it a bug of Camel?
> > >
> > > --
> > > Thanks
> > > GangLiu
> > > MSN: liugang_0...@hotmail.com (mailto:liugang_0...@hotmail.com)
> > > Skype: gang.liu.talendbj
> >
> >
> >
> >
> > --
> > Thanks
> > GangLiu
> > MSN: liugang_0...@hotmail.com (mailto:liugang_0...@hotmail.com)
> > Skype: gang.liu.talendbj
>
>
>
>


-- 
Thanks
GangLiu
MSN: liugang_0...@hotmail.com
Skype: gang.liu.talendbj


Re: camel-quartz and support for quartz 2.x

2013-05-29 Thread Patrick Bray
Hi All, 

Can you please confirm whether or not Camel v2.11.0 supports Quartz v2.x? 

Checking JIRA I can see the following ticket is unresolved:

https://issues.apache.org/jira/browse/CAMEL-4075

If not can you adivse whether or not this is on the road map for Camel
2.11.1? 

The issue we have is that we intend to have multiple application components
deployed that utilise a Clustered Quartz JDBC job store. 

>From what I understand Quartz 1.8.x does not allow multiple logical
schedulers to share the same job store where as 2.x does (see
http://forums.terracotta.org/forums/posts/list/5562.page). 

Thanks,
Patrick Bray 



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-quartz-and-support-for-quartz-2-x-tp5712613p5733444.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: consumer.retroactive=true when using activemq

2013-05-29 Thread Claus Ibsen
Hi

See this page
http://camel.apache.org/activemq

At the section: Using ActiveMQ Destination Options

On Thu, May 30, 2013 at 1:21 AM, Eric East  wrote:
> Is this available for a camel routes when using activemq?
>
> camel route:  from("activemq:topic:sometopic.a?consumer.retroactive=true")
>
> If not, is there a workaround to leverage the activemq retroactive
> consumers?
>
> I noticed a jira from 2010 that said this was not available.
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/consumer-retroactive-true-when-using-activemq-tp5733440.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: camel-quartz and support for quartz 2.x

2013-05-29 Thread Claus Ibsen
No Camel 2.11 will NOT support Quartz 2.x. One of the reason is Spring
3.0.x does not support Quartz 2.x, and Camel 2.11 is spring 3.0
compatible.

Camel 2.12 will be updated to Quartz 2.x as we dropped support for
Spring 3.0 in this release.

For Camel 2.11 you may manually try to upgrade quartz to 2.x if you
are not using spring or using spring 3.1 or better. Though not sure if
you hit any issue in doing so.

On Thu, May 30, 2013 at 7:36 AM, Patrick Bray  wrote:
> Hi All,
>
> Can you please confirm whether or not Camel v2.11.0 supports Quartz v2.x?
>
> Checking JIRA I can see the following ticket is unresolved:
>
> https://issues.apache.org/jira/browse/CAMEL-4075
>
> If not can you adivse whether or not this is on the road map for Camel
> 2.11.1?
>
> The issue we have is that we intend to have multiple application components
> deployed that utilise a Clustered Quartz JDBC job store.
>
> From what I understand Quartz 1.8.x does not allow multiple logical
> schedulers to share the same job store where as 2.x does (see
> http://forums.terracotta.org/forums/posts/list/5562.page).
>
> Thanks,
> Patrick Bray
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-quartz-and-support-for-quartz-2-x-tp5712613p5733444.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: SEDA vs JMS/ActiveMQ

2013-05-29 Thread Claus Ibsen
For you JAXB classes you can use javax.jmx.TextMessage as the type.
Then the data is a String in XML format.
If you have camel-jaxb on the classpath then Camel can automatic
marshal from POJO via JAXB to XML as a String.

To force use TextMessage you can configure the JMX endpoint with
jmsMessageType=Text.

But still when you use JMS then the JMS spec has limitations of what
type can be used. See the details on the Camel JMS page.
http://camel.apache.org/jms



On Wed, May 29, 2013 at 3:38 PM, Cristiano Costantini
 wrote:
> Hello,
>
> I've been prototyping my application using SEDA and I wrote routes with
> endpoints using this component.
>
> Now I've started to make some tests using an embedded ActiveMQ and
> substituting the seda: endpoints with jms: or activemq:
>
> Of course! I've started getting many errors as I was using custom classes
> both as body and headers in camel Exchanges.
>
> I'm not an expert at all of JMS or ActiveMQ, but I need it to
> implement Guaranteed Delivery and Durable Subscriber patterns.
>
>
> How should I deal with serialization of classes in body and headers when
> using ActiveMQ? (my classes don't implement Serializable but are annotated
> with JaxB and can be marshalled/unmarshalled)
>
> Do you know any web resource which I can study to learn using ActiveMQ for
> my needs?
>
> Thank you again,
> Cristiano



-- 
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


RE: camel-quartz and support for quartz 2.x

2013-05-29 Thread Bray, Patrick
Ok excellent thanks for the clarification Claus as we are using Spring
v3.1.3 I will try manually updating and post back with my results.

-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com] 
Sent: Thursday, 30 May 2013 3:40 PM
To: users@camel.apache.org
Subject: Re: camel-quartz and support for quartz 2.x

No Camel 2.11 will NOT support Quartz 2.x. One of the reason is Spring
3.0.x does not support Quartz 2.x, and Camel 2.11 is spring 3.0
compatible.

Camel 2.12 will be updated to Quartz 2.x as we dropped support for
Spring 3.0 in this release.

For Camel 2.11 you may manually try to upgrade quartz to 2.x if you are
not using spring or using spring 3.1 or better. Though not sure if you
hit any issue in doing so.

On Thu, May 30, 2013 at 7:36 AM, Patrick Bray 
wrote:
> Hi All,
>
> Can you please confirm whether or not Camel v2.11.0 supports Quartz
v2.x?
>
> Checking JIRA I can see the following ticket is unresolved:
>
> https://issues.apache.org/jira/browse/CAMEL-4075
>
> If not can you adivse whether or not this is on the road map for Camel

> 2.11.1?
>
> The issue we have is that we intend to have multiple application 
> components deployed that utilise a Clustered Quartz JDBC job store.
>
> From what I understand Quartz 1.8.x does not allow multiple logical 
> schedulers to share the same job store where as 2.x does (see 
> http://forums.terracotta.org/forums/posts/list/5562.page).
>
> Thanks,
> Patrick Bray
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-quartz-and-support-for-quartz-
> 2-x-tp5712613p5733444.html Sent from the Camel - Users mailing list 
> archive at Nabble.com.



--
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."


Re: evaluating bean expressions in custom language

2013-05-29 Thread Claus Ibsen
No how a language syntax is for evaluating bean expressions is
different. eg how groovy, javascript, mvel, ognl, simple, Spring EL,
et all do it.




On Wed, May 29, 2013 at 6:04 PM, javamonkey79  wrote:
> I have built a camel language component - that is what this is for. I'm
> asking if there is a standard way to evaluate bean expressions in language
> components.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/evaluating-bean-expressions-in-custom-language-tp5733377p5733424.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: Dynamic Route in camel

2013-05-29 Thread Tarun Kumar
Hey Claus,

What if i want to call non static method with object of that bean i have in
the caller class? Is there any way to do that?


RE: camel-quartz and support for quartz 2.x

2013-05-29 Thread Patrick Bray
Unfortunately simply overriding the quartz version will not work. 

The quartz class org.quartz.CronTrigger was changed to an interface in v2.x
and the QuartzComponent in camel-quartz is currently instantiating this: 

org.apache.camel.component.quartz.QuartzComponent

protected CronTrigger createCronTrigger(String path) throws
ParseException {
// replace + back to space so it's a cron expression
path = path.replaceAll("\\+", " ");
CronTrigger cron = new CronTrigger();
cron.setCronExpression(path);
return cron;
}

I will check out the camel-quartz component source tonight and try modifying
this to use the new Quartz 2.x fluent builder API / DSL and see if that will
work i.e.:

protected CronTrigger createCronTrigger(String path) throws
ParseException {
// replace + back to space so it's a cron expression
path = path.replaceAll("\\+", " ");
return
TriggerBuilder.newTrigger().withSchedule(CronScheduleBuilder.cronSchedule(path)).build();
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-quartz-and-support-for-quartz-2-x-tp5712613p5733452.html
Sent from the Camel - Users mailing list archive at Nabble.com.