On 10/5/07, kumar k <[EMAIL PROTECTED]> wrote:
> How do we specify (tell) to jms component/connection factory that message
> should be persisted if a durable subscriber is not up. When the subscriber
> becomes up then the message should be delivered.
Using the new JMS endpoints you can specify many more options. For
message durability, the JmsConsumerEndpoint offers the
setSubscriptionDurable() method. The configuration for this new
endpoint with these options would look like this:
<beans ...>
<jms:consumer
service="foo:myJmsConsumerService"
endpoint="endpointX"
targetService="bar:theNextService"
targetEndpoint="endpointY"
destinationName="queueA"
subscriptionDurable="true"
connectionFactory="#connectionFactory" />
<amq:connectionFactory id="connectionFactory"
brokerURL="tcp://localhost:61616" />
</beans>
For more information on the new JMS endpoints, see the docs here:
http://incubator.apache.org/servicemix/servicemix-jms-new-endpoints.html
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/