"scott.stark(a)jboss.org" wrote : Not being able to create a JarHandler can mean its an unpacked jar or a corrupt archive. How do you tell the difference?
|
I think we should be able to check for an unpacked jar pretty easily, right?
And make that part of the code, not even going into trying to create JarHandler, and rely on exception to tell us that it was really an unpacked jar.
And let the exception be only for corrupted archives, throwing it fwd.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135643#4135643
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135643
"scott.stark(a)jboss.org" wrote : What is a broken jar? It does not have to have a META-INF as it could just be a zip. The JarHandler will fail if its an unpacked jar.
That's expected.
I had some IO problems with my .jar file. Some unexpected zip issues - e.g. corrupted zip. You don't expect this.
What user expect is that this jar will play nicely or at least get a decent warning/error.
But you don't.
It all goes 'smoothly', but at the end nothing is deployed, since nothing can be found.
And in the flood of debug messages nobody will ever notice that simple debug message, specially since it has no developer added info at the beginning.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135639#4135639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135639
Scott is working on the EJBs where field injection is heavily used, and he needs this asap. :-)
>From the distance it looks very similar to what we have with propertys.
e.g.
| <bean name="mybean" class="org.jboss.acme.MyBean">
| <field name="somefield"><inject bean="somebean"/></field>
| <field name="mynumber" class="java.lang.Long">123456789</field>
| </bean>
|
Is there a reason why we never mentioned/implemented field injection?
AOP is one for sure. But if the pojo is not aspectized, then it should be OK, otherwise just a reasonable error/info should be thrown.
Or what's the difference between invoking method vs. field via reflection on the AOP proxy?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135632#4135632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135632
Suppose there is an EAR with jboss-app.xml specifying a security domain. The ear contains multiple deployments, a war and a ejb jar with ejb3. Now how do we get the @SD annotation injected into the ejb3 container (it should be taking the sec domain setting from jboss-app.xml). The web, ejb2 layers have already this behavior.
Of course the security domain setting in jboss.xml will get the annotation injected.
But I am interested in seeing the parent (ear) level security domain injected into ejb3 container....
Please advise......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135631#4135631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135631