[Design of Clustering on JBoss (Clusters/JBoss)] - JBoss server mcast socket bound to network interface
by akostadinov
Hallo,
We currently have an issue with running JBoss AS 5 test suite on RHEL 4U5 and above with one node bound to localhost. Please see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=123056 for full details.
Generally On RHEL 4U5 and above when a multicast listener binds to a network interface and a sender is bound to the same interface, the listener can't see any messages unless the multicast route goes through the same interface. (that is not the case with RHEL 4U4 where listener sees messages)
I think because of that if a server is bound to localhost, it can't see mcast messages sent by himself. Thus AS 5 is starting very slowly.
So what I suggest is setting IP_MULTICAST_LOOP on the jgroups mcast socket so it hopefully fix that issue.
As well not bind the mcast socket to the interface where server was specified to bind with the "-b" option. That way listener will see mcast messages no matter what multicast route the host has.
That is a better behavior besides that it makes test suite runs much more convenient and less error prone. When for example a network admin reroutes the network he will expect that the running AS server will not stop sending/receiving multicast messages properly without needing to add special parameters.
As well I don't see any disadvantages in not specifying network interface to bind to. And if there are rare cases with such, the user can specify a startup option to fix that. And behavior will not be much different compared with that on RHEL 4U4 and below.
Please let me know what do you think about that.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102190#4102190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102190
18 years, 5 months
[Design the new POJO MicroContainer] - Re: Failing FileVFSUnitTestCase.testVFSFileURIFactory in VFS
by alesj
What needs to be closed here
| public void testFileExists()
| throws Exception
| {
| File tmpRoot = File.createTempFile("vfs", ".root");
| tmpRoot.delete();
| tmpRoot.mkdir();
| File tmp = File.createTempFile("testFileExists", null, tmpRoot);
| log.info("+++ testFileExists, tmp="+tmp.getCanonicalPath());
|
| URL rootURL = tmpRoot.toURL();
| VFS vfs = VFS.getVFS(rootURL);
| VirtualFile tmpVF = vfs.findChild(tmp.getName());
| assertTrue(tmpVF.getPathName()+".exists()", tmpVF.exists());
| assertTrue("tmp.delete()", tmp.delete());
| assertFalse(tmpVF.getPathName()+".exists()", tmpVF.exists());
| assertTrue(tmpRoot+".delete()", tmpRoot.delete());
| }
|
in order to be able to delete tmp file on Winz?
This worked for the URLConnection test case:
| InputStream in = conn.getInputStream();
| long lastModified;
| try
| {
| lastModified = conn.getLastModified();
| System.out.println("lastModified, "+lastModified);
| assertNotSame("lastModified", 0, lastModified);
| }
| finally
| {
| in.close();
| }
| assertTrue(tmp.getAbsolutePath()+" deleted", tmp.delete());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102184#4102184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102184
18 years, 5 months
[Design of POJO Server] - Re: Instance annotations from Object Models
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote :
| I'm still not clear on what is needed for the aop aspects configuration.
|
The idea is to replace this code + related methods:
| private void addEjbAnnotations(EJBContainer container,
| JBossEnterpriseBeanMetaData enterpriseBean) throws Exception
| {
| if (enterpriseBean != null)
| {
| if (enterpriseBean instanceof JBossSessionBeanMetaData)
| {
| addHomeAnnotations(container, (JBossSessionBeanMetaData) enterpriseBean);
|
| addJndiAnnotations(container, (JBossSessionBeanMetaData) enterpriseBean);
| }
|
| addInterceptorMethodAnnotations(container, enterpriseBean);
|
| handleResourceRefs(container, enterpriseBean.getResourceReferences());
|
| addMessageDestinationAnnotations(container, enterpriseBean.getMessageDestinationReferences());
|
| addSecurityIdentityAnnotation(container, enterpriseBean.getSecurityIdentity());
|
| addDependencies(container, enterpriseBean);
|
| addPoolAnnotations(container, enterpriseBean);
|
| addXmlAnnotations(container, enterpriseBean);
|
| if (enterpriseBean instanceof JBossSessionBeanMetaData)
| {
| addConcurrentAnnotations(container, (JBossSessionBeanMetaData)enterpriseBean);
| addClusterAnnotations(container, (JBossSessionBeanMetaData)enterpriseBean);
| addCacheAnnotations(container, (JBossSessionBeanMetaData)enterpriseBean);
| }
| }
| }
|
with something that loads into the INSTANCE mutable metadata.
My preference would be to make this a visitor pattern over the metadata itself,
e.g.
| MutableMetaData mmd = deploymentUnit.getMutableMetaData();
| MetaDataVisitor visitor = new MetaDataVisitor(mmd, ...);
| visitor.visit(enterpriseBean);
|
Which is much more extensible/maintainable and OO than the current EJB3 sutff.
Each part of the JavaEE/JBoss metadata can decide if/where it goes in the
annotation view.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102164#4102164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102164
18 years, 5 months