Best way to create a second queue?

14 views
Skip to first unread message

ErikZ

unread,
Dec 10, 2014, 7:23:01 AM12/10/14
to nginn-me...@googlegroups.com
Hi,

What is the best way to create a second queue?
My scenario is as follows. I have two services ServiceA and ServiceB. Both services have one queue/endpoint each, i.e. endpointA and endpointB.
When I first start ServiceA it tries to do "SubscribeAt" from ServiceB's endpointB. Since ServiceB is not started yet endpointB does not exists.
In this case I want to create endpointB from ServiceA. Is this supported by Nginn or sholud I use a new configurator from serviceA to create endpointB?

Any advice is appreciated. Thanks!
/ Erik

Rafal Gwizdala

unread,
Dec 10, 2014, 7:26:49 AM12/10/14
to nginn-me...@googlegroups.com
Theres MessageBusConfigurator.CreateQueueTable() method you can use for creating additional tables - just configure the connection strings first and then you can try calling that at ServiceA startup
It runs the same script that is used for automatically creating tables so there's a chance it will work.
RG

--
You received this message because you are subscribed to the Google Groups "nginn-messagebus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginn-messageb...@googlegroups.com.
To post to this group, send email to nginn-me...@googlegroups.com.
Visit this group at http://groups.google.com/group/nginn-messagebus.

Reply all
Reply to author
Forward
0 new messages