[EJB 3.0] - How to package a persistent archive for use in JBoss and Tomcat standalone
by Gonne Martens
Gonne Martens [http://community.jboss.org/people/gonne] created the discussion
"How to package a persistent archive for use in JBoss and Tomcat standalone"
To view the discussion, visit: http://community.jboss.org/message/550411#550411
--------------------------------------------------------------
Hi all,
I am trying to build a persistent archive (Hibernate 3.5 as JPA provider) containing entities that should be usable in different applications.
My first use case is a web application running in a standalone Tomcat 5.5 environment. The JNDI reference to the datasource in the persistence.xml for that environment must be relative to the JNDI ENC, e.g.:
<jta-data-source>java:/comp/env/jdbc/MyDatabase</jta-data-source>
My other use case is an enterprise application for JBoss 6. The JNDI reference to the database in my JBoss deployment is e.g. java:/MyDatabase
If I use the persistent archive with the same persistence.xml as in my first use case the datasource can not be found.
How can I override the reference to the datasource without changing the persistent archive?
Or is it possible to create a link in JNDI?
I tried to remove the persistence.xml from the persistent archive (located in ear/lib) and created a new persistence.xml in my ear referencing the persistent archive by using the jar-file element and the datasource java:/MyDatabase. That works in JBoss 6, but I do not know how to deploy that in Tomcat 5.5. The corresponding method by usign the jar-file element does only work in Tomcat by using an absolute path for the persistent archive what I do not prefer.
Can anyone help?
Thanks,
Gonne
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550411#550411]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Tools] - How to Build JBoss Tools with Maven3
by Denis Golovin
Denis Golovin [http://community.jboss.org/people/dgolovin] modified the blog post:
"How to Build JBoss Tools with Maven3"
To view the blog post, visit: http://community.jboss.org/community/jbosstools/blog/2010/06/27/how-to-bu...
--------------------------------------------------------------
[Note: This blog were meant to be a wiki page, keeping this for prosperity but the right place to read/comment/edit is in the http://community.jboss.org/docs/DOC-15513 wiki]
Current trunk version of JBoss Tools can be built with maven 3 and make it faster and easier for everyone.
h2. Prerequisites
1. Java 1.6 SDK
2. Maven 3.beta1
3. About 6 GB of free disk space if you want to run all integration tests for (JBoss AS, Seam and Web Services Tools)
4. subversion client 1.6.X (should work with lower version as well)
h2. Environment Setup
h3. Maven and Java
Make sure your maven 3 is available by default and Java 1.6 is used.
mvn -version
should print out something like
Apache Maven 3.0-alpha-7 (r921173; 2010-03-09 14:31:07-0800)
Java version: 1.6.0_18
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-22-generic-pae" arch: "i386" Family: "unix"
h3. Sources
Checkout sources from anonymous SVN like
svn co https://svn.jboss.org/repos/jbosstools/trunk jbosstools-src
This will take some time dependent on your bandwidth
h2. Build Strategies
All commands below is assuming that commands are executed in jbosstools-src folder after sources checked out as it suggested above.
There are several strategies to chose from building everything to build particular component or part of it like all plug-ins, all tests, all features, particular plugin/feature.
Target platform should be built first like
$mvn -f build/target-platform/pom.xml
If you want to just compile the modules, tests can be skipped by adding system property -Dmaven.test.skip=true and you should be able to faster verify compile issues.
h3. Build/Test Everything
Current version cannot be build without local changes because of problem with with drools component, so to go with this scenario you need to remove drools references from pom.xml and site/site.xml. After that to build/test everything use:
$mvn clean install
h3. Build/Test Particular Component with Dependencies
For convenience there are aggregator projects defined for each component. It provides a simple way to build/test components with dependencies.
$mvn clean install -f build/component/${component.name}.xml
where ${component.name} is component you want to build/test. Currently build/component folder contains aggregator projects for:
1. tests,
2. jmx,
3. archives,
4. as,
5. common,
6. seam
more is coming soon.
h3. Build/Test Single Component
Be aware that to get this work all dependencies for this component must be installed in maven repo. It can be done by build everything first or by build component and its dependencies using aggregated project as it explained above. You can skip tests for this build and then enable them back when you run single component build.
To build single component use pom.xml in component's folder like it is shown below.
$mvn clean install -f ${component.name}/pom.xml
where ${component.name} is component's root folder name. For instance to build jmx component use command below
$mvn clean install -f jmx/pom.xml
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/community/jbosstools/blog/2010/06/27/how-to-bu...]
14 years, 5 months
[JBoss Tools] - Matrix of supported platforms, runtimes and technologies in JBossTools/JBDS
by Max Andersen
Max Andersen [http://community.jboss.org/people/max.andersen%40jboss.com] modified the document:
"Matrix of supported platforms, runtimes and technologies in JBossTools/JBDS"
To view the document, visit: http://community.jboss.org/docs/DOC-14297
--------------------------------------------------------------
h2. *This matrix is currently out of date, do not rely on it!*
The following matrix explains what versions of platforms, runtimes and technologies are supported by what versions of JBoss Tools/JBDS.
|| Eclipse || JBoss Tools || JBDS || EAP || AS || Seam || JSF || RichFaces (the latest supported version) ||
| 3.5/Galileo | 3.1.0 | 3.0.0 | 4.3, 5.0 | 5.1, 5.0, 4.2, 4.0, 3.2 | 2.2, 2.1, 2.0, 1.2 | 2.0 (in VPE), 1.2, 1.1 | 3.3.x |
| 3.4.2/Ganymede | 3.0.x | 2.1.0 | 4.3, 5.0 | 5.0, 4.2, 4.0, 3.2 | 2.2, 2.1, 2.0, 1.2 | 1.2, 1.1 | 3.3.1 |
| 3.3.2/Europa | 2.1.2 | 1.1.0 | 4.3 | 5.0, 4.2, 4.0, 3.2 | 2.0, 1.2 | 1.2, 1.1 | 3.3.0 |
| 3.3.1.1/Europa | 2.0.1 | 1.0.0 | 4.2 | 4.2, 4.0, 3.2 | 2.0, 1.2 | 1.2, 1.1 | 3.1.0 |
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-14297]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 5 months