[JBoss Seam] - Re: A couple of observations
by iradix
I hadn't really thought of that, however in the case where I would want to use something like this the "scope" of the object would be its parent - i.e. the object which created it.
I'm not saying that a "createComponent" method is necessarily the way to go, but right now it seems to me that Seam promotes a somewhat monolithic backing bean. In situations where I'd like to delegate the function of my SFSB's to sub-objects I'm dettered from doing so because those sub-objects either must be published to a context or cannot take advantage of bijection. Here's an idea... how about a @ChildComponent annotation specifying that a field should also take part in the bijection of its parent? Kind of like EJB3's @Embedded? Conceptually I actually like that alot and since the @ChildComponent would explicitly live within a parent it would be tied to the parents lifecycle and solve that issue as well. It could also be applied to collections which would solve my original problem. What do you think?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967826#3967826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967826
19 years, 8 months
[EJB/JBoss] - Class loading and NoClassDefFoundError
by breno.leitao
Hello people,
I have a doubt about manifests and class loading.
I am using jboss 3.2.7, and everytime I change a POJO jar, inside my ear directory (My ear is expanded), from a-1.jar to a-2-RC1.jar, I need to generate a ejb/war that loads this artefact, or i will get a
ClassDefNotFoundException, or rename a-2-RC1.jar to a-1.jar, which is ugly. :-(
Is there a bettter way to not generate the ejb/war?
I tried to generate a dummy-ejb.jar file every time I change a jar in the EAR directory. This dummy ejb has no classes inside, only the ejb descriptors and a manifest that includes all POJOS jars in his manifest.
I am using a plain class loader policy, so the solution above should work. but it isn't.
Any sugestions?
Thanks
Breno Leitao
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967813#3967813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967813
19 years, 8 months