Hello again,

i've found the answer to my questions by my self. For everyone who has the
same problem with the usage of the bean components. the solution is to
create the bean project and to implement your methods in the java file. in
the xml file you call the init-method of your own class. So it should work.

Regards 
Stefan



Hello, 

thanks for your answer. I took a little bit time to read a lot about the
servicemix components and i found a solution for my problem. But at the
moment have the problem to read my messages from en ActiveMQ messagequeue. I
have already tested it with the jms consumer component and it works, but i'd
like to change some information in the messagebody and write them into a
file. So i use a bean component and implement in the java file to append
some text to my message body. But think my bean didn't listen to the message
queue, because nothing happens. 
Now i don't know which kind of bean i have to use. The onMessageExchange
method is only called, if i send a jms message. But my bean should listen
active to a message queue. 

example:
some applicationen puts messages to a activemq message queue -> my bean
service listens to the queue and if a message arrives in the queue, my
service took the message, appends something to the bodycontent and writes
the body to a file. 

Another example is the consumertool.java example in the apache activemq
package, it connects to a queue and waits for incoming messages. 

My problem is to integrate it into servicemix. 

Can someone explain me how it should work?

Regards

Stefan



-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-filepoller-which-send-a-file-to-an-eip-pipeline-tp20952145p21213864.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to