Monday, May 05, 2008

jboss change relation table name

http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/Relationship_Mapping-Relation_table_Mapping.html

JBoss Have a war dependant on ear

Sometimes you need a war to be deployed only after a certain ear has been deployed for example if you need the war and the ear to have the same context.

use the <depends> tag in jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
<jboss-web>
<context-root>/yourcontext</context-root>
<depends>jboss.j2ee:service=EARDeployment,url='yourear.ear'</depends>
</jboss-web>