Announcement Announcement Module
Collapse
No announcement yet.
spring remoting over jms in activemq with advisorySupport=false Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring remoting over jms in activemq with advisorySupport=false

    Hello,
    New here, thank you all in advance for the responce and appologies if i should go to different post, but was not sure (please advice if i should not post here).

    I am new to spring remoting over jms, what i need to do is call a method from client to server and get a responce back. For this reason i have the following configuration:
    server
    Code:
        <bean id="clientServiceImpl" class="com.ClientServiceImpl"/>
    
        <bean id="clientServiceRemote" class="org.springframework.jms.remoting.JmsInvokerServiceExporter">
           <property name="service"> <bean class="com.ClientServiceImpl"/> </property>
            <property name="serviceInterface" value="com.ClientService"/>
        </bean>
    
        <bean class="org.springframework.jms.listener.SimpleMessageListenerContainer">
            <property name="connectionFactory" ref="connectionFactory"/>
            <property name="destination" ref="cudest"/>
            <property name="concurrentConsumers" value="3"/>
            <property name="messageListener" ref="clientServiceRemote"/>
        </bean>
    client
    Code:
        <bean id="ClientService" class="org.springframework.jms.remoting.JmsInvokerProxyFactoryBean">
            <property name="serviceInterface" value="com.ClientService"/>
            <property name="connectionFactory" ref="connectionFactory"/>
            <property name="queue" ref="cudest"/>
        </bean>
    So here is the problem, this works when in activemq configuration i have advisorySupport=true, but not when advisorySupport=false. Is there such a constrain? I have not found it somewhere, but i could not make it work with advisorySupport off.

    The same happens when i use lingo.
    activemq is embeded inside application (if it matters) but the plan is to make it external

    Again thank you in advance guys!

  • #2
    Based on your use case (is call a method from client to server and get a responce back) - you may want to look at Spring Integration project http://www.springsource.org/spring-integration and the concept of the Messaging Gateway (in your case it would be JMS Messaging Gateway) - http://static.springsource.org/sprin...tbound-gateway as well as samples https://github.com/SpringSource/spri...ster/basic/jms

    Hope that helps

    Comment


    • #3
      Thank you

      Originally posted by oleg.zhurakousky View Post
      Based on your use case (is call a method from client to server and get a responce back) - you may want to look at Spring Integration project http://www.springsource.org/spring-integration and the concept of the Messaging Gateway (in your case it would be JMS Messaging Gateway) - http://static.springsource.org/sprin...tbound-gateway as well as samples https://github.com/SpringSource/spri...ster/basic/jms

      Hope that helps
      God this was fast!!!
      Thank you! i will try to read these and use what you propose and let you know as soon as i manage to cope with it

      Comment

      Working...
      X