Creating subscriptions on Azure ServiceBus with QPID JMS (AMQP 1.0) -


the servicebus client 2.1 supports amqp 1.0.

on msdn there article how use qpid.amqp.jms azure servicebus.

however, although can connect predefined topic , subscription, post messages , receive of them, cannot change message selector or create new topic/subscription.

my goal able connect topic , dynamically create subscriptions based on different filters using org.apache.qpid.amqp_1_0.jms.

questions:

1/ how can create new topic.

topic newtopic = (topic) session.createtopic("newtopic"); session.createproducer(newtopic); // returns error 
  • this maybe because jms doesn't support administration of topics though... although i'm sure i've read somewhere should create topic if doesn't exist.?

2/ how can create new subscription different message selector via jms?

// still gives me messages no matter put in 'class' property. topicsubscriber subscriber = session.createdurablesubscriber(topic, "sub1", "class = 'boo'", false); 

thanks, phil.

the amqp 1.0 protocol deliberately left entity creation / management outside of it's scope, you'll need create topics , subscriptions beforehand using provider-specific mechanics (this post has explanation on why).

in case of service bus, can either use azure sdk, portal (in case don't need programmatically), or rest api this.

hope helps!


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -