nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

Can not set custom queue manager #467

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can not set custom queue manager, when you set using the "setQueueManager" in 
"ServiceStatus.STOPPED" after method "startService", queue manager, it 
redefined the default manager. The bootstrap service, this operation is not 
allowed.

Original issue reported on code.google.com by Waldemar.Klaczynski on 6 Mar 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Maybe it was necessary to add the queue manager to create a conditional:

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -219,7 +219,9 @@
     */
    public synchronized void startService(boolean startAllGateways) throws SMSLibException, TimeoutException, GatewayException, IOException, InterruptedException
    {
+                if(queueManager == null){
        queueManager = new DefaultQueueManager();
+                }
        try
        {
            getQueueManager().start();

Original comment by Waldemar.Klaczynski on 6 Mar 2012 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 7 Mar 2012 at 9:07

GoogleCodeExporter commented 9 years ago
r2330 - thank you!

Original comment by T.Delenikas on 7 Mar 2012 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 31 Mar 2012 at 8:03