Hi

we are using
Unix Solaris 7 and NT4
ANT 1.2
WebLogic 5.1
TOPLink 2.5.1

We want to creating one jar file with many TOPLink entitybeans using ant
<ejbjar> <weblogictoplink> tags.

ex. of my xml used on NT

<ejbjar srcdir="${bean.srcdir}"
    descriptordir="${bean.descriptordir}"
    basejarname="${bean.jarname}">
                
    <weblogictoplink destdir="${jar.destdir}" 
        classpath="${java.class.path}"
        keepgeneric="false"
        toplinkdescriptor="toplink-cmp*"
        toplinkdtd="file:///D|/TOPLink/toplink-cmp_2_5_1.dtd"/>

        <include name="ejb-jar.xml" />
        <exclude name="weblogic-ejb-jar.xml" />
        <exclude name="toplink-cmp*.xml" />
</ejbjar>  

Questions:

1. PrimaryKey problem.
TOPlink allows for just naming a type as PrimaryKey and one don't have to
proved a PKclass.
Ex. we have java.math.BigInteger.
So in the ejb-jar.xml file one will find the tag: 
<primary-key>java.math.BigInteger</primary-key>

ANT will try to add java.math.BigInteger to the generic jar file. Of course
we have no BigInteger.class file in our source tree and ANT will throw an
IOException saying java.math.BigIntgeger is missing.

Is there a way to prevent this problem?

2. toplink-cmp-*.xml files.
We have our toplink-cmp*.xml files in the descriptor directory. By using the
tag above they will not be added to the generic jar file and weblogic.ejbc
will fail.

Can we jar up more than one bean using this tag?
Where shall the toplink xml files be included or excluded in the tag?

3. TOPLink project Java file added to jar file.
TOPLink has 2 approaches for providing information about all entitybeans and
types.
- The most used way is to provide a directory containing all related project
files.
- Second approach is to use the ProjectWriter that generates a Java file
with all needed project information.

We use the second approach. For us we can produce a deployable bean if the
project Java file is added to the generic jar file. But I can't how this is
done with the ejbjar tag.

Has someone a better approach for this?
Can ANT comply to this TOPLink feature?

Be very grateful for feedback on this.
Many thanks to all and ANT really rocks.

Best Regards
Raul Fiedler
[EMAIL PROTECTED]

Reply via email to