[jboss-dev-forums] [Design of POJO Server] - Re: Packed vs. unpacked deployments

adrian@jboss.org do-not-reply at jboss.com
Wed Dec 5 11:08:07 EST 2007


I'll repeat, these tests are bogus they need replacing with something that
tests the new relaxed rules. There's no point trying to fix them
since they are testing obsolete rules.

Having said you've identified two problems.

1) The jar deployer is inconsistent. It doesn't recognise
the packed client1-not.ajar even though it is a jar and has a META-INF directory.
However, it does recognise it if it is an unpacked directory.

Packed:
2007-12-05 16:41:12,805 TRACE [org.jboss.deployers.vfs.plugins.structure.jar.JARStructure] ... no - not a directory or an archive.

Unpacked:
2007-12-05 16:44:00,573 TRACE [org.jboss.deployers.vfs.plugins.structure.jar.JARStructure] ... ok - doesn't look like a jar but it is a top level directory.

The reason is because the suffix .ajar is not in the recognised list
of suffixes.

This is really just an optimization so we don't have to try to open up
every file to see if it really is a jar because it has a META-INF
(and catch all the exceptions when it says you cannot findChild on a normal file :-).

The user can fix it by adding .ajar to the list of recognised suffixes.
This seems like a stupid example anyway. ;-)

2) The EJB3ClientDeployer is wrong. It should be fixed such that if the
client deployment doesn't end with .jar then we take the whole 
deploymentUnit.getSimpleName() as the jndi name.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110585#4110585

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110585



More information about the jboss-dev-forums mailing list