I am trying to write a client to send a one way message and, if I get your
docs, I think is the right way:

public interface FireAndForget {
    void fire(String message);
}

public class FireAndForgetCamel implements FireAndForget {
    @Produce(uri = "activemq:tqsBridge")
    protected FireAndForget producer;

    static final String applicationId = "foo";
    static final String groupId = "bar";

    @InOnly
    public void fire(String destinationId) {

        producer.fire(applicationId + groupId + destinationId);

    }

}

The trouble is I would like to add the applicationId to the message header
rather than the message header.  How can I do that?  Do I need some
different client-side tech to interact with JMS more, ahem, intimately?

Thanks

Ray
-- 
View this message in context: 
http://old.nabble.com/Writing-a-fire-and-forget-client---how-to-set-outbound-JMS-headers--tp28044660p28044660.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to