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
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
> 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(
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
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
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
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 (
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
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
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
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-
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
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
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
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
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
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
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
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
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.
&
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
>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
22 matches
Mail list logo