Help

AS 7.0.1 is released!!!

AS 7.0.1 is released, which includes improvements for using different persistence providers (beside the included Hibernate 4.0.0). The framework is in place to plug in Hibernate 3.5 (or greater) persistence providers. This addressed user feedback, that its important to use Hibernate 3.x on AS7, to give more time before migrating to Hibernate 4.0.0. Switching your application to Hibernate 4.x, should be done as soon as possible. Hibernate 4.0.0 has been modified to support the AS7 modular classloading environment and JBoss logging (and other many other improvements).

Drop in a Hibernate 3.6.6.Final module

By default, JPA applications will use Hibernate 4.0.0 with AS7, unless you add property jboss.as.jpa.providerModule set to org.hibernate:3 to your persistence.xml properties list. You also need to create an org.hibernate:3 module that represents the Hibernate 3.6.6.Final release jars that will be used by your application. I downloaded the hibernate-distribution-3.6.6.Final for creating the new module.

Steps to create the Hibernate 3.6.6.Final module

  1. Create as/modules/org/hibernate/3 folder
  2. Copy jars from the hibernate-distribution-3.6.6.Final folder into the as/modules/org/hibernate/3 folder
  3. Create as/modules/org/hibernate/3/module.xml file
  4. update your persistence.xml to use the org.hibernate:3 module
<!-- as/modules/org/hibernate/3/module.xml file -->
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.hibernate" slot="3">
    <resources>
        <resource-root path="hibernate3.jar"/>
        <resource-root path="javassist-3.12.0.GA.jar"/>
        <resource-root path="antlr-2.7.6.jar"/>  
        <resource-root path="commons-collections.jar"/>  
        <resource-root path="dom4j-1.6.1.jar"/>  
        <!-- Insert other Hibernate 3 jars to be used here -->
    </resources>
    <dependencies>
        <module name="org.jboss.as.jpa.hibernate" slot="3"/>
        <module name="asm.asm"/>
        <module name="javax.api"/>
        <module name="javax.persistence.api"/>
        <module name="javax.transaction.api"/>
        <module name="javax.validation.api"/>
        <module name="org.apache.ant"/>
        <module name="org.infinispan"/>
        <module name="org.javassist"/>
        <module name="org.slf4j"/>
    </dependencies>
</module>
<!-- persistence.xml using Hibernate 3.6.6.Final -->
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="GameOfThrones_pu">
    <description>my Hibernate 3 persistence unit.</description>
    <jta-data-source>java:jboss/datasources/gameDS</jta-data-source>
    <properties>
        <property name="jboss.as.jpa.providerModule" value="org.hibernate:3"/>
    </properties>
</persistence-unit>
</persistence>

Example of an AS7 (Arquillian) unit test using the org.hibernate:3 module. Note that this test is @Ignored until we arrange for the org.hibernate:3 module to be created by the test build.

I could of created a standalone application but I prefer to push the awesome Arquillian project! ;) I hope that you will contribute similar JPA tests to the AS7 project when you can.

Experimental use of OGM on AS 7.0.1

I wanted to see if I could create an AS7 unit test that created a few entities with (OGM). To accomplish this, I checked out a copy of the OGM sources at and built them.

cd work
git clone git://github.com/hibernate/hibernate-ogm.git
Cloning into hibernate-ogm...
  remote: Counting objects: 4371, done.
  remote: Compressing objects: 100% (1357/1357), done.
  remote: Total 4371 (delta 1694), reused 4262 (delta 1599)
  Receiving objects: 100% (4371/4371), 1.17 MiB, done.
  Resolving deltas: 100% (1694/1694), done.

cd hibernate-ogm
mvn clean install
... lots of output from building ogm jars....

Folder hibernate-ogm-core/target will contain hibernate-ogm-core-3.0.0-SNAPSHOT.jar 

Next, you need to build my experimental OGM branch for AS7 (oh yeah, you need a few tools maven and git).

cd ..
git clone git://github.com/scottmarlow/jboss-as.git
cd jboss-as
git checkout ogm
./build.sh clean install
OR build.bat clean install

  1. Follow instructions above for creating the org.hibernate:3 module
  2. Create as/modules/org/hibernate/ogm folder
  3. Copy hibernate-ogm-core-3.0.0-SNAPSHOT.jar that you just built (from OGM build) into the as/modules/org/hibernate/ogm folder
  4. Create as/modules/org/hibernate/ogm/module.xml file
  5. update your persistence.xml to use the org.hibernate:3 module and org.hibernate:ogm providerModule.
  6. Create a local-only infinispan.xml for your application.
<!-- as/modules/org/hibernate/ogm/module.xml file -->
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.hibernate" slot="ogm">
    <resources>
        <resource-root path="hibernate-ogm-core-3.0.0-SNAPSHOT.jar"/>
    </resources>

    <dependencies>
        <module name="org.jboss.as.jpa.hibernate" slot="3"/>
        <module name="org.hibernate" slot="3" export="true" />
        <module name="javax.api"/>
        <module name="javax.persistence.api"/>
        <module name="javax.transaction.api"/>
        <module name="javax.validation.api"/>
        <module name="org.apache.ant"/>
        <module name="org.infinispan"/>
        <module name="org.javassist"/>
        <module name="org.slf4j"/>
    </dependencies>
</module>
<!-- persistence.xml using OGM -->
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="OGMExperiment_pu">
    <description>my OGM persistence unit.</description>
    <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
    <properties>
        <property name="jboss.as.jpa.providerModule" value="org.hibernate:ogm"/>
        <property name="jboss.as.jpa.adapterModule" value="org.jboss.as.jpa.hibernate:3"/>
        <property name="hibernate.ogm.infinispan.configuration_resourcename" value="infinispan.xml"/>
    </properties>
</persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8"?>
  
<!-- 
    infinispan.xml
    This is the testing configuration, running in LOCAL clustering mode to speedup tests.
-->
<infinispan
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
    xmlns="urn:infinispan:config:5.0">

    <global>
    </global>

    <!-- *************************** -->
    <!--   Default cache settings    -->
    <!-- *************************** -->

    <default>
    </default>

    <!-- *************************************** -->
    <!--     Cache to store the OGM entities     -->
    <!-- *************************************** -->
    <namedCache
        name="ENTITIES">
    </namedCache>

    <!-- *********************************************** -->
    <!--   Cache to store the relations across entities  -->
    <!-- *********************************************** -->
    <namedCache
        name="ASSOCIATIONS">
    </namedCache>

    <!-- ***************************** -->
    <!--   Cache to store identifiers  -->
    <!-- ***************************** -->
    <namedCache
        name="IDENTIFIERS">
    </namedCache>

</infinispan>

To run the OGM unit test that I added (after manually creating the org.hibernate:ogm module), run the unit test with these steps:

  1. cd testsuite
  2. cd compat
  3. mvn clean install -DallTests

The unit test will run one instance of AS7 and use Infinispan in local-only mode. A few entities will be created (under a JTA transaction) and read back. If you see error org.jboss.as.testsuite.compat.jpa.hibernate.OGMHibernate3SharedModuleProviderTestCase: Could not deploy to container, open the ./target/jbossas/standalone/log/server.log to see what went wrong (did you create the as/modules/org/hibernate/3 and as/modules/org/hibernate/ogm modules?)

See OGM documentation for more about OGM.

Like I said before, using OGM on AS7, is experimental at this point. ;)

AS 7.0.1 JPA documentation

The documentation for AS7 JPA is available here.

I started a new git repo for working on EclipseLink integration. This will require coordination with the EclipseLink project as changes are probably required there as well. EclipseLink has the eclipselink.target.server property that can be set to JBoss but that doesn't support AS7 yet. Also, we need to fix the PersistenceUnitMetadata.getNewTempClassLoader() in AS7. Depending on the level of interest, the EclipseLink integration in AS7 will come together (more of the work may be inside of the EclipeLink project itself).

Community contributions are welcome

Please continue to ask/answer questions on the AS7 user discussion forums. I would like to work with a few more community members on further code changes to the JPA integration support in AS7. If you would like to volunteer, find Scott Marlow on IRC (irc://irc.freenode.org/jboss-as7). As well as working on integration support with other persistence providers.

48 comments:
 
26. May 2014, 07:26 CET | Link

Hibernate 4.3.5 has been released.

ReplyQuote
 
09. Jun 2014, 11:42 CET | Link

Similar 10% which would cause it to be substantial during anyhome online business, MULTI-LEVEL MARKETING, or simply affiliate marketing process.

 
24. Jun 2014, 12:51 CET | Link

It is very important and necessary to everyone to understand the Forex trading basics. From tips for choosing the right broker to understanding the trading basics principles, the best in forex basics are written below As our success in the Forex trading largely depends on the brokerage services, we must take our decision after comparing different types of Forex brokers. These days we will find many websites that help you to compare forex brokers

 
29. Aug 2014, 06:31 CET | Link
obat herbal kolesterol tinggi alami

I need to appreciate your appropriately written content it's useful and your writing concept helped me to it with absolutely no difficulty. Thanks obat herbal kolesterol tinggi alami

 
30. Aug 2014, 03:44 CET | Link
polo

Walking on the way home, Nike Air Jordan, suddenly a scenery touched, Ralph Outlet, stopped to savor, MCM Outlet Online, to put a camera gesture, Polo Outlet Online, to leave a shallow spring, Gucci Shoes UK, of negatives here, Michael Kors Outlet, deep in her heart extended spring scenery, Marc Jacobs Bags Outlet, etc, returned home, Canada Goose Jackets, using bamboo memo box, Ralph Lauren Outlet, to do with pen, Michael Kors USA, and ink painting, North Jackets Outlet Online, the intention to write, a sweet words, Beats By Dre, do a recall album, wait until old age, Coach Bags Black Friday, come to appreciate slowly, North Clearace Outlet Online, walked with light, Burberry Bags Outlet, footsteps walked on, the King, Monster Headphones Outlet, or the original scene, Longchamp Pairs, people are still the original person, Prada Outlet Online, just change a mood, Michael Kors Outlet Online, all plain people, Cheap Oakley Sunglaases, things, Coach Factory Shop, and it was better together.

 
24. Sep 2014, 07:02 CET | Link

good work best training in chennai.... 7eleven technology www.7eleventech.com

 
26. Sep 2014, 09:44 CET | Link
obat gagal ginjal

Obat Gagal Ginjal Herbal dan Alami Di tengah kondisi yang memprihatinkan, Saya mendapat info kalau ada Obat Tradisional Gagal Ginjal - obat gagal ginjal

 
15. Oct 2014, 14:37 CET | Link
We are proud of XSite Modular's contribution as a modular consultant for Forest City Ratner Companies on B2 Atlantic Yards. Great working with you and congratulations Banker Steel! [My Link=>http://obatbatukberdarah7.wordpress.com/]
 
17. Oct 2014, 12:11 CET | Link

commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide

17. Oct 2014, 12:13 CET | Link
commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide <a href="http://obatnew.wordpress.com/">obat usus buntu tradisional</a>
 
18. Oct 2014, 02:16 CET | Link

Then I found obat stroke alami out that even Hemingway frequented, and was nurtured by, Gertrude Stein’s salon in Paris. I learned most writers have mentors or reliable readers who give editing and revision advice. obat stroke alami.

24. Oct 2014, 09:37 CET | Link

thank you for sharing of some of the articles we read this one article is very interesting for us, i like it alat bantu sex pria

28. Oct 2014, 07:50 CET | Link
thank you for the information, healthy greeting.
[My Link=>http://obatsesaknafasalami55.blogspot.com/]
 
30. Oct 2014, 23:20 CET | Link

We knew from the start that our winner needed an idea that possesed creativity, innovation and most importantly http://obatbenjolandiketiak10.wordpress.com/

 
30. Oct 2014, 23:22 CET | Link

We knew from the start that our winner needed an idea that possesed creativity, innovation and most importantly obat benjolan di ketiak We knew from the start that our winner needed an idea that possesed creativity, innovation and most importantly

03. Nov 2014, 17:14 CET | Link

I love the story you created, may be useful,,,spirit.

obatbenjolandiketiak07.blogspot.com obat usus buntu tradisional

 
04. Nov 2014, 02:51 CET | Link

We obtained a respectable e book on that matter from our local library and most books where not as influensive as your information. i am very glad to see such information which I was looking for a long made very glad! obat penyakit maag

04. Nov 2014, 07:11 CET | Link

thank you for the information, and healthy greeting.

obat paru paru kering
05. Nov 2014, 01:21 CET | Link

thank you for the information, and healthy greeting. My Link

05. Nov 2014, 04:45 CET | Link
How to treat gout solution that is safe and you can use the powerful marine extract terpang can and trust to overcome illnesses share tenunya quickly and safely,
 http://mariachae.blogspot.com/
05. Nov 2014, 04:46 CET | Link
How to treat gout solution that is safe and you can use the powerful marine extract terpang can and trust to overcome illnesses share tenunya quickly and safely,
 <a href="http://mariachae.blogspot.com/" target="_blank" rel="dofollow">cara mengobati asam urat</a>
05. Nov 2014, 04:57 CET | Link
How to treat gout solution that is safe and you can use the powerful marine extract terpang can and trust to overcome illnesses share tenunya quickly and safely,
http://mariachae.blogspot.com/
 
05. Nov 2014, 16:49 CET | Link

for those of you who berms, inat you can try and order indirectly to us indirectly by way of existing in this wesite. obat tumor payudara

 
08. Nov 2014, 04:09 CET | Link

Thanks to all our readers and supporters for their patience. obat kanker serviks tradisional By next week this time, Black Agenda Report expects to be in a brand spanking new format obat tradisional stroke, with comments and other old features restored, and new ones added

11. Nov 2014, 03:44 CET | Link

thank you for the information, and healthy greeting href="http://obatbenjolandipayudara10.wordpress.com/">obat benjolan di payudara</a>
12. Nov 2014, 07:31 CET | Link
thank you for the information friends good luck
<a href="http://obatpenyakitgula10.wordpress.com/">obat penyakit gula</a>
12. Nov 2014, 09:02 CET | Link

We obtained a respectable e book on that matter from our local library and most books where not as influensive as your information. i am very glad to see such information which I was looking for a long made very glad! http://goo.gl/b63PhR

 
14. Nov 2014, 17:06 CET | Link
Then I found out that even Hemingway frequented, and was nurtured by, Gertrude Stein’s salon in Paris. I learned most writers have mentors or reliable readers who give editing and revision advice. [obat tradisional stroke=>http://goo.gl/JNni1]
15. Nov 2014, 01:22 CET | Link

thank you for the information, and healthy greeting. http://obatkatarakalami55.blogspot.com/2014/11/obat-asma-alami.html

18. Nov 2014, 09:58 CET | Link

thank you for the information, and healthy greetings. Obat Kanker Payudara Alami

18. Nov 2014, 10:00 CET | Link

thank you for the information, and healthy greetings. My Link

18. Nov 2014, 10:02 CET | Link

thank you for the information, and healthy greetings. Obat Kanker Payudara Alami

18. Nov 2014, 16:32 CET | Link

Thanks to all our readers and supporters for their patience. http://kcl7.com/ Our IT guy assures us that this is the final week of our temporary format, and all its apparent presentation errors. By next week this time

21. Nov 2014, 01:57 CET | Link

thank you for the information, and healthy greetings. My Link

 
21. Nov 2014, 02:18 CET | Link

After read this article, i'm can feel the contents of the text. And i hope it's useful for anyone. Thanks you authors. http://hsrobatherbal.blogspot.com/2014/10/obat-gastritis.html http://willyherbal.blogspot.com/ http://obatherbal-14.blogspot.com/2013/05/obat-pengapuran-tulang.html

 
21. Nov 2014, 02:19 CET | Link

After read this article, i'm can feel the contents of the text. And i hope it's useful for anyone. Thanks you authors. My Link My Link My Link

 
21. Nov 2014, 03:15 CET | Link
france
21. Nov 2014, 05:06 CET | Link

very helpful article thanks for sharing keep the spirit

 
21. Nov 2014, 07:44 CET | Link
thanks,
 
22. Nov 2014, 03:24 CET | Link
nice and interesting site, thanks for information
 
22. Nov 2014, 07:30 CET | Link
permana

After read this article, i'm can feel the contents of the text. And i hope it's useful for anyone. Thanks you authors. http://geniesgreenworld.blogspot.com/2014/11/obat-untuk-menyembuhkan-kanker-pankreas.html

 
24. Nov 2014, 03:15 CET | Link

good luck !!! cObat Radng Paru Paru

 
24. Nov 2014, 04:13 CET | Link
Eagle

After read this article, i'm can feel the contents of the text. And i hope it's useful for anyone. Thanks you authors. http://geniesgreenworld.blogspot.com/2014/11/obat-untuk-menyembuhkan-kanker-pankreas.html

 
24. Nov 2014, 08:46 CET | Link
[The information is very interesting and useful for us as a successful public,, always yes brother admin! ... => http://goo.gl/1ZEG9j]



 
24. Nov 2014, 08:49 CET | Link
The information is very interesting and useful for us as a successful public,, always yes brother admin! ...
25. Nov 2014, 14:12 CET | Link

tapi juga sudah banyak pengobatan tradisional yang diakui ampuh dapat menyebabkan penyakit ini. Salah satunya adalah Obat Ampuh Kutil Kelamin Pada Pria De Nature Indonesia. Disini anda yang akan mengobati penyakit kutil kelamin bisa teratasi dengan mutu dan kwalitas Obat Kutil Kelamin yang ampuh terpercaya mengobati penyakit anda. Obat Tradisional Kutil Kelamin Pada Wanita De Nature Indonesia 100% murni terbuat dari bahan-bahan ekstrak herbal pilihan yang sudah teruji akan khasiatnya guna membantu para pengidap penyakit kelamin.

harga obat kutil kelamin cara mengobati kutil kelamin obat kutil kelamin alami cara mengobati kutil kelamin secara alami obat kutil kelamin manjur cara mengobati kutil kelamin secara herbal obat kutil kelamin ampuh cara mengobati kutil kelamin tanpa operasi obat kutil kelamin wanita cara mengobati kutil kelamin pada ibu hamil obat kutil kelamin tanpa operasi cara mengobati kutil kelamin bagaimana ya obat kutil kelamin apa ya bagaimana cara mengobati kutil kelamin obat kutil kelamin ibu hamil cara mengobati kutil kelamin dengan cepat obat kutil kelamin terbaik cara mengobati kutil kelamin pada wanita obat kutil kelamin yang paling manjur cara mengobati kutil kelamin pada pria

 
26. Nov 2014, 07:15 CET | Link
Eagle

After read this article, i'm can feel the contents of the text. And i hope it's useful for anyone. Thanks you authors. Philadelphia Eagle

Post Comment