On 1/17/07, igor_b <[EMAIL PROTECTED]> wrote:
Thanx for reply...

i have one more question:

how can i check if client (on starting) got connected to the server...

e.g. If client has not connected to server, i need it to try to connect
again in, lets say, 5 mins... the problem i have now is that when i use
reliable:tcp://localhost... (i'm using ActiveMQ 3.0) my localhost server
cannot start until remote server (where broker is) is started.

I was thinking of impelemting some loop, ant try to connect every
5 minutes i.e. i need something like this:

while(!isConnected()) {
          //try to connect to broker-server...
}

Any idea how to do this?

Why not just create and start the connection in a background thread?
Then you can check whenever you like on its status from the main
thread

--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to