[Remoting] - Re: Problem for Timer of BisocketServerInvoker
by qingsongjian
I think maybe I got why cancelled controlMonitorTimerTask not be release at my side.
First time, timer schedule a task,
| timer.schedule(controlMonitorTimerTask, pingFrequency, pingFrequency);
|
pingFrequency's value is 214748364 that's configure in jboss\server\default\deploy\jboss-messaging.sar\remoting-bisocket-service.xml, then java.util.TimerThread.mainLoop() do
| synchronized(task.lock) {
| ....
| currentTime = System.currentTimeMillis();
| executionTime = task.nextExecutionTime;
| if (taskFired = (executionTime<=currentTime)) {
| .... }
| }
| }
| if (!taskFired) // Task hasn't yet fired; wait
| queue.wait(executionTime - currentTime);
|
so queue will wait for 214748364ms , thus cancelled controlMonitorTimerTask will not be release until in that long time.
Could you tell me what value I should set pingFrequency to, as after set it a small value such as 10000, I get a lot of exception while starting jboss
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160818#4160818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160818
17 years, 9 months
[JBoss Messaging] - jboss messaging | remoting connection
by Malert
we have jbossAS 4.2.2GA and migrated jbossmq to jboss messaging 1.4.0sp3, with jboss remoting 2.4.0GA.
After the migration is done as per the jboss documentation, we are facing errors while stating the server and also while connecting the client.
Error while starting server is as follows
06:19:47,509 ERROR [STDERR] method matched binding execution(* org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate->createConnectionDelegate(..)) public org.jboss.jms.delegate.CreateConnectionResult org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(java.lang.String,java.lang.String,int) throws javax.jms.JMSException
06:19:53,349 INFO [STDOUT] [debug] softmatch failed for : org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised org.jboss.aop.advice.AdviceBinding@644eb8d execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->$implementing{org.jboss.jms.delegate.ConnectionDelegate}(..))
Error at client side:
<Thread-32><02:51:30:195> Exception in [??? ] At line ??? !
javax.jms.JMSException: Failure on underlying remoting connection
and the client exists itself after period of seconds.
Any help on this will be highly appreciated
Thanks
Malert
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160811#4160811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160811
17 years, 9 months