Can we define multiple Logger instance in a single class file?

2008-11-23 Thread manish_goyal
Hi, Could any one tell me how to create multiple Logger instance in a single class? Is this possible? If it is possible then what will be the value for ?. Logger myLogger = Logger.getLogger(?); in java file. and for referring the same Logger instance in log4j.properties file, how we will be

Re: Can we define multiple Logger instance in a single class file?

2008-11-23 Thread Chris Custine
You can create any number of loggers that you want. Logger.getLogger() takes either a Class or String as argument. You refer to this logger in the log4j properties by the same string. -- Chris Custine My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org

Re: Wire format negotiation timeout

2008-11-23 Thread jaya_srini
Sorry to bug about this but can someone please respond...we are using ActiveMQ 5.1.0 and are seeing this error in our production environement quite frequently. This is a critical issue for us right now I wanted to understand if this is a bug on the ActiveMQ side

Re: Wire format negotiation timeout

2008-11-23 Thread stevec
I do not know why they classify as an ERROR. This is good for information purposes; it is not an error. Go ahead and telnet to your broker using your brokers port. Then do nothing. You will generate this error after the timeout. This error is caused by many different possibilities: Your

Re: Wire format negotiation timeout

2008-11-23 Thread jaya_srini
Thanks for the response, Steve! Our broker is not public and the clients are all internal applications and not internet users. we intermittently altho frequently see this error when the client is trying to publish a message. Our clients are both publishers and subscribers. For every publish,

Re: Wire format negotiation timeout

2008-11-23 Thread stevec
Do you have failover and reconnect logic? It might not be a problem for you if you have this logic. Your client will keep trying to connect and once connected, will send the message. new connections are not super reliable (in my opinion). if the listening socket is busy i have seen new