Starting a bridge in a new thread


Hari Shyam <hari.shyam@...>
 

Hi team,

 

Is it necessary to start a bridge on a separate thread?

 

new Thread() {

       public void run() {

              try {

                     Mama.start(bridge);

              } catch (RuntimeException e) {

                                                                     }

              }.start();

}

}

 

Or should we use this

 

Mama.startBackground(bridge, new MamaStartBackgroundCallback() {

                    

                     @Override

                     public void onStartComplete(int paramInt) {

                          

                           logger.info("mama started");

                          

                     }

              });

 

 

For the second option, the callback is never called.

 

Thanks,
Hari



---
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures and to http://www.db.com/unitedkingdom/content/privacy.htm for information about privacy.

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.