-
1. Re: How to access DeployableContainer from TestEnricher
aslak Nov 8, 2010 5:46 AM (in response to iapazmino)context.get(DeployableContainer.class)
-
2. Re: How to access DeployableContainer from TestEnricher
iapazmino Nov 8, 2010 6:09 PM (in response to aslak)I taught so, but none of these are retrieving an instance
context.get(DeployableContainer.class)
context.get(JBossASLocalContainer.class)
context.get(ContainerConfiguration.class)
context.get(JBossASConfiguration.class)
Tried in the context and the context's parent.
-
3. Re: How to access DeployableContainer from TestEnricher
aslak Nov 8, 2010 7:56 PM (in response to iapazmino)Sorry, I forgot to think.
TestEnrichers are only active inside the container in Alpha4, there is no DeployableContainer when inside the container. DeployableContainer is only used when start/stopping/deploy/undeploying on the client side.
-
4. Re: How to access DeployableContainer from TestEnricher
iapazmino Nov 8, 2010 8:08 PM (in response to aslak)And there isn't a ContainerConfiguration either, is it?
So, the only thing I have left is th JBOSS_HOME var in the system?
-
5. Re: How to access DeployableContainer from TestEnricher
aslak Nov 8, 2010 8:24 PM (in response to iapazmino)You have the whole container.. see localhost:8080/jmx-console
Proxy any exposed JMX Bean:
MBeanProxy.get(SomeMBean.class, new ObjectName("some:jboss-jmx-bean"), "jboss")
Get a ref to the JBoss Kernel and lookup any MicroContainer Bean:
org.jboss.kernel.Kernel kernel = (Kernel)MBeanServerLocator.locateJBoss().getAttribute(new ObjectName("org.jboss:type=Server"), "Kernel");
== your free to do what ever you want
-
6. Re: How to access DeployableContainer from TestEnricher
iapazmino Nov 8, 2010 8:37 PM (in response to aslak)Thanks. I was squared to think I would access it only through arquillian's SPIs.