-
1. Re: Starting Jboss instance with Arquillian
bmajsak Oct 12, 2012 5:29 AM (in response to crytek)I don't think that could be possible with -managed- adapter. But you can always pass the configuration (standalone.xml) through Arquillian properties, but not really alter the starting procedure I believe
https://docs.jboss.org/author/display/ARQ/JBoss+AS+7.0+-+Managed
On the other hand you can always use remote container (then you have full control over the bootstrapping process). So your CI job would simply look like this:
- start jboss instance using shell script
- run your build (for instance through mvn)
- stop your jboss instance
-
2. Re: Starting Jboss instance with Arquillian
crytek Oct 12, 2012 7:00 AM (in response to bmajsak)Is it possible to configure arquillian to skip the remote starting of the AS and use an already existing Jboss running instance ?
-
3. Re: Starting Jboss instance with Arquillian
bmajsak Oct 12, 2012 7:06 AM (in response to crytek)1 of 1 people found this helpfulSure, that's the idea behind "remote" containers
You need to have your instance up and running so Arqillian can connect to it, deploy the test, execute it, collect the results and clean up afterwards. Have a look here:
https://docs.jboss.org/author/display/ARQ/JBoss+AS+7.1%2C+JBoss+EAP+6.0+-+Remote
-
4. Re: Starting Jboss instance with Arquillian
crytek Oct 12, 2012 8:36 AM (in response to bmajsak)Ok, that helped me a lot. However i still have an issue:
Now, if running the arquillian test with the remote adapter (not the managed one). in this case, it is possible to configure jboss running instance ? (i.e. deploying hornetQ queues, to pass a standalone.xml config file or to run cli commands all these at runtime ? )
Let's take a more concrete example: I am running a jms test with HornetQ using arquillian. I have a MDB which listens to a queue named "queue/myQueue" and I want that queue to be deployed "real-time" (etiher passed through a local standalone.xml file , or using some mavenized cli plugin ...)
What are my options ? Maybe some github examples ... ?
-
5. Re: Starting Jboss instance with Arquillian
bmajsak Oct 12, 2012 8:57 AM (in response to crytek)1 of 1 people found this helpfulYou can't really alter configuration of the container which is already up and running through Arquillian Remote Adapter, but on the other hand you have full control over setting it up.
With regards to deploying the queue per test - have a look at this thread https://community.jboss.org/thread/163139
Hope that helps.
-
6. Re: Starting Jboss instance with Arquillian
crytek Oct 17, 2012 11:25 AM (in response to bmajsak)That helped.
Another question: how can I setup a hornetq bridge for example , when running the test with the Arquillian Remote Adapter ? It is possible by using some cli commands from the arquillian test ? What are my options in this case ? Examples are always welcomed
Thanks,
-
7. Re: Starting Jboss instance with Arquillian
bmajsak Oct 17, 2012 11:38 AM (in response to crytek)Maybe something from this thread will help you? https://community.jboss.org/message/766331#766331
Cheers,
Bartosz