Announcement Announcement Module
Collapse
No announcement yet.
Request/Reply with temp/dynamic queue, how ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Request/Reply with temp/dynamic queue, how ?

    Hello,

    I'm using a service activator to handle a JMS request. The reply has to be sent back to the temporary queue created by the sender. This queuename is in the JMSReplyTo header field.

    Here is the relevant part of my config:
    Code:
    <channel-adapter channel="subscriberReplyChannel" target="jmsTarget3"/>
    
    <jms-target id="jmsTarget3" connection-factory="jmsFactory" destination-name="BROKER.SUBSCRIPTION.TOPIC.SUB2"/>
    
        <service-activator input-channel="subscriberChannel" output-channel="subscriberReplyChannel"
                      ref="dynSubscriberHandler" method="subscribe"/>
    The problem is now that the service activator always sends the reply to a fixed queue: BROKER.SUBSCRIPTION.TOPIC.SUB2.
    How can I configure the application so that the reply will be sent to the replyQueue of the request message ?

    thnx

  • #2
    integrate spring annotations with struts 1.3.8 using @Component and @Autowired ?

    hello people.

    how to integrate struts 1.3.8 with spring annotations 2.5.5?

    using @Component and @Autowired in the controller layer of the struts 1.3.8 ?

    is this possible? when i am using this form bellow.

    [CODE]
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;

    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.DynaActionForm;
    import org.springframework.stereotype.Component;
    import org.springframework.web.struts.ActionSupport;

    public class ExampleAction extends ActionSupport {

    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
    DynaActionForm VoluntarioForm = (DynaActionForm) form;
    Service service = (Service) getWebApplicationContext().getBean("service");
    service.method(.....);
    return null;
    }

    }

    Comment


    • #3
      I think you should post this in a new Thread...

      Comment


      • #4
        Resolution?

        ivanjoe,

        Were you ever able to resolve this question?

        Comment

        Working...
        X