JMS Consumer [message #1243154] |
Mon, 10 February 2014 10:41  |
Eclipse User |
|
|
|
Hello, I'm beginner with scout and I would use it for a project. I read some topics in this forum and a lot of tutorials.
My question is: it's possible to connect (the server part) to a JMS Topic (like ActiveMQ) for refreshing TableField, PageField and/or a form on receipt message?
I read that it's possible with client notification (client) and I think with a new service on the server part (AbstractJmsConsumerService)? How to use AbstractJmsConsumerService? The wizard propose only attach it to a FormData not with a PageField
Thanks
Nicolas De Amicis
|
|
|
|
Re: JMS Consumer [message #1258511 is a reply to message #1243592] |
Thu, 27 February 2014 08:07  |
Eclipse User |
|
|
|
Hello, thank you for your answer.
I think I understand the mechanism of Client notification, but I am lost for configuring my Eclipse Scout projet to send and receive JMS messages.
I followed this procedure (www. eclipsezone.com/eclipse/forums/t115159.html) and I downloaded JARs for Eclipse ECP jms provider at this place (download. ecf-project.org/repo/C-HEAD-jms.feature/lastSuccessful/archive/site.p2/plugins/). I added to the server manifest.mf the dependencies (org.eclipse.ecf.provider.jms and org.eclipse.ecf.provider.jms.activemq) and modified the server.product file with the dependencies (org.eclipse.ecf, org.eclipse.ecf.identity, org.eclipse.ecf.provider, org.eclipse.ecf.provider.jms, org.eclipse.ecf.provider.jms.activemq, ...)
I created a Service in the server part that extends AbstractService and I created a test() method.
How to send a message to a queue? I have to use org.eclipse.ecf.provider.jms.channel.AbstractJMSChannel for sending and org.eclipse.ecf.provider.jms.containerAbstractJMSQueueConsumerContainer for receiving messages? These are abstract classes, how to access the implementation classes? I can change the access restriction of the build path? Or there is a standard way for that?
Thanks in advance.
Nicolas De Amicis
PS I don't insert links because I have wrote less than 5 messages on this forum.
|
|
|
Powered by
FUDForum. Page generated in 0.03972 seconds