[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-674 - Propagating changes on ClusteredConnec
by timfox
"clebert.suconic(a)jboss.com" wrote : ConnectionFactoryJNDIMapper::onReplicationChange is calling updating ServerCFEndpoing::updateClusteredClients...
|
| onReplicateChange is also setting the new LoadBalancing when the data is being changed.
|
| ClusterViewUpdateTest::testUpdateConnectionFactory is testing updates on CFs... it kills the server and verifies if the connectinFactory was changed.
|
| Test was passing for me on Friday.
|
I don't see how this could be the case.
Think about it, if a server crashes then the connection factories will not get undeployed.
If you are only updating the view when connection factory is deployed / undeployed then how can the client update be happening?
What am I missing?
anonymous wrote :
|
| I didn't want MessageCallbackHandler to also take care of ConnectionFactories... I thought the dependency would be wrong.
|
|
This is fine, but has nothing to do with the point I am making.
I am just saying that creating a new interface is redundant since you are not calling the methods polymorphically.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004614#4004614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004614
19 years, 2 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-674 - Propagating changes on ClusteredConnec
by clebert.suconic@jboss.com
"timfox" wrote :
| 1. The update information is sent from server to client in a ConnectionFactoryUpdateMessage instance. This needs to be wrapped in a MessagingMarshallable, otherwise we can't version it.
|
Ok... I will change this.
"timfox" wrote :
| 2. ServerConnectionFactoryEndpoint::updateclusteredClients() is currently only called when a connection factory is deployed / undeployed. It is not called when a node joins or leaves the cluster. It needs to be called in this case too.
| Also you need to add tests to check that the update occurs in this situation.
|
Are you sure about this? I have testcases about this... a testcase that gets the ConnectionFactory updated when a new server joins / leaves the cluster.
"timfox" wrote :
| 3. Why have you made MessageCallbackHandler and ConnetionFactoryCallbackHandler implement the same (new) interface (CallbackHandler) ? This seems redundant since they are never called polymorphically anyway.
|
I didn't want MessageCallbackHandler to also take care of ConnectionFactories... I thought the dependency would be wrong.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004607#4004607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004607
19 years, 2 months
portlet with ajax
by m.heidari
Hi,
I want to write a portlet by ajax technology but I don't know how can I do
this. if any one have an example please help me.
Thanks in advance
19 years, 2 months