Difference ...ConnFactory("vm://localhost...") vs ...ConnFactory("tcp://localhost...")?

2010-08-03 Thread benxs
In java I can code either: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); or ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost:61616"); What is the difference? Ben -- View this m

Java sample for subscribing to (ActiveMQ) Topic and receiving JMS msgs from consumer?

2010-08-03 Thread benxs
I am searching for a (POJO or without Annotations) java client source sample which subscribes to a (ActiveMQ based) Topic and receives JMS msgs from this Topic. As far as I can see no such sample is provided in the standard examples supplied with Camel v2.4.0 Maybe somehone knows where such a sa

Re: Put XML msgs from Java POJO into already running ActiveMQ instance? Camel sample adjustment

2010-07-30 Thread benxs
> You change the brokerURL How do I do this in java POJOs with annotations? I think in pure java coding would be: import org.apache.activemq.ActiveMQConnectionFactory; ... CamelContext context = new DefaultCamelContext(); ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(

Put XML msgs from Java POJO into already running ActiveMQ instance? Camel sample adjustment

2010-07-29 Thread benxs
When I look into the shipped Camel example http://camel.apache.org/pojo-messaging-example.html then there is said that the XML message are put into an "an embedded instance of Apache ActiveMQ". Enbedded means embedded into Camel (example). How can I put the same XML msgs instead into an already

Problem 2 when compiling sample from Camel package

2010-07-27 Thread benxs
I tried to compile a second example from the Camel package. I setup Java SE 1.6 for this. Anyway it gives an error with "NoClassDefFoundError: org/springframework/asm/ClassVisitor" See below What does the warning at the top ("'includeantruntime' was not set") mean? Thank you Ben C:\Camel\v2

Problem when compiling sample from Camel package

2010-07-27 Thread benxs
When I try to compile one of the sample (camel-example-jms-file) shipped with Camel v2.4.0 under WinXP then I got the following error (see below). It is something with java.lang.NoClassDefFoundError: javax/xml/stream/XMLEventWriter Whats wrong in detail? Thank you Ben C:\Camel\v2.4.0\examples

Examples in Camel package require BOTH Maven and Ant?

2010-07-16 Thread benxs
When I extracted the examples from the current Camel package then I see always two build config files: pom.xml (for Maven) and build.xml (for Ant). Do I have to run BOTH to get the examples working or is this a exclusive choice up to the user which one he wants to run? Assume I want to use Ant (

Can I from Topic-to-Queue or only Queue-to-Queue?

2010-07-14 Thread benxs
I would like to forward each msg which arrives in Topic "mytopic12" to a Queue "myqueue44". I got the impression that the command is only for Queue-to-Queue transports. Can I use for this anyway? How can I otherwise forward with Camel incoming msg in a Topic to a Queue? Ben -- View this m

How to specify a command with "msg selector"?

2010-07-14 Thread benxs
I would like to route incoming jms msgs on queue "myinqueue22" depending on the value of the JMS property "myjmsheader7". If this mentioned JMS header property contains the value "blue" or the value "red" then the jms msg should be routed/forwarded to queue "myinqueue34". Otherwise the jms msg

What to do after component java DSL source code is written?

2010-07-07 Thread benxs
Ok, in general I understand the source code shown on pages like: http://camel.apache.org/walk-through-an-example.html But the result is just a source code. What to do next? I guess I have to compile with something like javac CamelJmsToFileExample.java I will get a *.class file (or do I h

Is Camel working with Websphere MQ/MQseries as well?

2010-06-26 Thread benxs
Did anyone worked successfully with Camel on an IBM Websphere MQ Message Broker? Is there somewhere a guide on how to use Camel in such a scenario? Which Message brokers are support at all? Ben -- View this message in context: http://camel.465427.n5.nabble.com/Is-Camel-working-with-Websphere-

Simple duplication of incoming msg with "WireTap" does not work? Avoid re-execution of statement?

2010-06-23 Thread benxs
I defined the following for camel in an ActiveMQ installation: Every incoming JMS msg should simply be duplicated. The dupe should be put in another queue called "dupequeue". The original jms msg should remain in the input queue for later retrieval (by other java program). Tha

J2SE enough to compile Java DSL components? Or J2EE required?

2010-06-22 Thread benxs
Assume I want to use Java DSL (and not Spring XML) to handle JMS Messages. Is Java J2SE enough to compile the source code or do I need Java J2EE? Are the necessary java libs already included in an ActiveMQ installation or do I have to add them (Which) manually? Ben -- View this message in con

Where to put "route" commands ? Into "conf/camel.xml" or "webapps/camel/WEB-INF/applicationContext.xml"?

2010-06-22 Thread benxs
As I found out there are two main places where users can put their commands (under ActiveMQ): Into: conf/camel.xml or webapps/camel/WEB-INF/applicationContext.xml The latter seems to overwrite/overload the first one. Does that mean that if applicationContext.xml exists the content of conf/came

Re: Where exactly put Spring XML commands in ActiveMQ.xml config file?

2010-06-17 Thread benxs
When I follow the link Claus Ibsen told me above then there it is said that the CamelContet should be put directly in activemq.xml file. So are there various places where I can write the camel instructions? Ben -- View this message in context: http://camel.465427.n5.nabble.com/Where-exactly-p

What mean the URIs "direct:" and "mock:" ?

2010-06-17 Thread benxs
Ok, if I define some with Spring XML in activemq.xml I can use a couple of different URIs. I understand what mean: forward the incoming msg to another queue. But what does resp: mean? Can I use all three types in AND tags? Ben -- View this message in context: http://camel.46542

Where exactly put Spring XML commands in ActiveMQ.xml config file?

2010-06-17 Thread benxs
As far as I understand I can setup Camel instructions as Java DSL or Spring XML commands. Furthermore I guess that if I take the Spring XML commands like: I can put them into the activemq.xml config file directly. But where exactly? Should I put them inside th

Re: How does Camel work with ActiveMQ ?

2010-01-29 Thread BenXS
logging) normally consumed by another process. How should I setup such a config command? Ben Claus Ibsen-2 wrote: > > On Fri, Jan 29, 2010 at 11:32 AM, BenXS wrote: >> >> Ok, so I leave the active and specified as camelContext in >> camel.xml >> in a

Re: How does Camel work with ActiveMQ ?

2010-01-29 Thread BenXS
Ok, so I leave the active and specified as camelContext in camel.xml in activemq config dir: http://camel.apache.org/schema/spring";> org.foo.bar In order to duplicate all incoming JMS msgs and put their clone into another queue myqueue555 on the same MessageBroker. Unfortu

Re: How does Camel work with ActiveMQ ?

2010-01-27 Thread BenXS
rise-integration-patterns.html > > On Tue, Jan 26, 2010 at 12:57 PM, Claus Ibsen > wrote: > >> On Tue, Jan 26, 2010 at 5:21 PM, BenXS wrote: >> > >> > Hi Ashwin, >> > thank you for response. But this procedure seems to me rather >> long-winded. &

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread BenXS
Hi Ashwin, thank you for response. But this procedure seems to me rather long-winded. Do I really need Spring? Are there really no pre-compiled, ready-to-use *.jars of Camel? What I expect is a camel.jar which I have to put into the target applications (here: ActiveMQ) "lib" subdirectory. Second

How does Camel work with ActiveMQ ?

2010-01-25 Thread BenXS
>From pages like http://camel.apache.org/wire-tap.html I tried to figure out on how Camel works in ActiveMQ. Say I have a running ActiveMQ installation and I want to save a copy of every JSM msg wihc arrives in the queue mytestqueue123 into a separate XML file in directory D:\testcamel How do