JBoss Community

Is it possible to add classloader root with wildcard pattern?

reply from Zemian Deng in JBoss Microcontainer - View the full discussion

In the trunk already... Ah, very cool! You are too fast! :)

 

BTW, thanks for the above hint. I do see examples of registering resolver in deployers/metadata-deployer-jboss-beans.xml now.

 

My only comment to your solution is that it is unclear to user that this wildcard "*" is not file GLOB nor RegularExpression. User needs to konw that it works only for anything that ends with ".../*<match_this_suffix>". I think these test case would fail

 

<root>file:///opt/lib/myapp-*.jar</root>

<root>file:///opt/lib/myapp-*system*.jar</root>

What happen if user enter non file URL? Should we validate these?
<root>http://www.foo.com/lib/*.jar</root> 







Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community