[EJB 3.0] - Re: EJB3-embed jars in Maven repo?
by mazz@jboss.com
:-)
Really, what we need is just the EJB3 code WITH some documentation as to what third-party dependencies it has. With that, we can write our Maven pom's with the appropriate dependencies.
For example, document all the products (with their versions) that are included in thirdparty-all.jar and hibernate-all.jar. I'm assuming jboss-ejb3-all.jar is all of the EJB3 project code and do not include any external dependency classes.
So with this in hand, all I should have to do is grab the EJB3 jar from the EJB3 distribution and my Maven build will pull down all its external dependencies from the JBoss Maven Repo, and Ibiblio and where ever else I can grab them.
This should concievably make this 2nd distribition much smaller than the current one. You don't need to ship all the dependent jars, just document what they are and Maven takes care of the rest.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975000#3975000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975000
19 years, 6 months
[EJB 3.0] - EJB3 Embeddable and @AroundInvoke
by tharter
Just doesn't seem to be happening for me...
@Stateless
@SecurityDomain("etspolicy")
public class UserManagerBean implements UserManager
{
@PersistenceContext(unitName = "etsdata")
private EntityManager manager;
@AroundInvoke
public Object InvokerTest(InvocationContext ctx) throws Exception {
System.out.println("Got to AroundInvoke'd method...");
return ctx.proceed();
}
...
public String helloWorld() {
return "hello world";
}
}
helloWorld() is defined in my local interface, that works fine and dandy, but InvokerTest() definitely never fires. Haven't tested this deployed in JBoss (4.0.4GA) yet to see if the invokation happens, though the bean works fine there. We do a LOT of unit testing via embeddable/JUnit. I'd REALLY like to be able to test interception in unit test since we need to do a whole lot of audit logging etc.
Basically my question is: SHOULD it work? Or is this just not a feature of embeddable that is working at this time?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974996#3974996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974996
19 years, 6 months