-
1. Re: How do I setup a DataSource in Embedded Tomee when using Arquillian?
bmajsak May 17, 2013 4:56 AM (in response to yasharbi)I think you can use tomee.xml for that purpose
http://tomee.apache.org/containers-and-resources.html
Reference to the file can be probably specified through serverXml property in arquillian.xml TomEE configuration.
Cheers,
Bartosz
-
2. Re: How do I setup a DataSource in Embedded Tomee when using Arquillian?
yasharbi May 17, 2013 8:37 AM (in response to bmajsak)It seems that TomEE configuration in arquillian.xml doesn't suport any property like serverXml
here is the tomee's home page for Arquillian setting but it is not helpfull at alll
-
3. Re: How do I setup a DataSource in Embedded Tomee when using Arquillian?
bmajsak May 17, 2013 10:37 AM (in response to yasharbi)1 of 1 people found this helpfulThere you go... answer straight from the TomEE lead
https://twitter.com/dblevins/status/335403107964026880
Cheers,
B
-
4. Re: How do I setup a DataSource in Embedded Tomee when using Arquillian?
yasharbi May 21, 2013 5:36 AM (in response to bmajsak)Thanks a lot , it is greate to have an answer from TomEE lead , But still I have problem.
The example in http://arquillian.org/guides/testing_java_persistence/ is very straight forward for setting up the arquillian for Glassfish or Jboss , can any one update this example to use Embedded tomcat or TomEE.
I am in desperate need of help for writing the ShrinkWrap (defining persistence.xml and defining datasource )for these containers.
Regards
//Yashar
-
5. Re: How do I setup a DataSource in Embedded Tomee when using Arquillian?
bmajsak May 22, 2013 12:56 PM (in response to yasharbi)I would suggest to look at examples referenced in this twitter thread, as well as some TomEE tests in their repository.
As for Tomcat Embedded, there is no JPA support out of the box, as Tomcat itself does not come with such feature (hence need for TomEE)
https://docs.jboss.org/author/display/ARQ/Tomcat+6.0+-+Embedded
https://docs.jboss.org/author/display/ARQ/Tomcat+7.0+-+Embedded