[ http://jira.andromda.org/browse/EJB-28?page=comments#action_12892 ] 

Torsten Lunze commented on EJB-28:
----------------------------------

I already did this, so here my how to:

1. In cartridge.xml add <property reference="ejb-jars"/>
2. In namespace.xml add 

                    <property name="ejb-jars" required="false">
                        <default></default>
                        <documentation>
                            The ejb jars to be included.
                        </documentation>
                    </property> 

   (I did this in project group JDBC?)

3. In persistence.xml.vsl add this (below <jta-data-source>)

#if ($stringUtils.isNotBlank($ejb-jars))
#set ($ejb_jar_array = $stringUtils.split($ejb-jars,','))
#*  *##foreach ($ejb_jar in $ejb_jar_array)
#*    *##if ($stringUtils.isNotBlank($ejb_jar))
        <jar-file>${ejb_jar}</jar-file>
#*    *##end
#*  *##end

#end

4. In the andromda project add this in the ejb3 cartridge namespace

  <property name="ejb-jars">${ejb-jars}</property>
 
Is this automatically generated if a new andromda project is created using 
andromdapp?

5. Using maven 2 add this to your pom.xml (a comma separated list of the jars):

<ejb-jars>../lib1.jar,../lib2.jar</ejb-jars>

Hope I didnt missed anything

> EJB3 : Adding <jar-file> element to persistence xml
> ---------------------------------------------------
>
>          Key: EJB-28
>          URL: http://jira.andromda.org/browse/EJB-28
>      Project: EJB Cartridge
>         Type: Improvement

>  Environment: Andromda 3.2, EJB3 Cartridge
>     Reporter: Torsten Lunze
>     Assignee: Chad Brandon

>
> Support a property to generate the <jar-file> element in the persistence.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Reply via email to