This might be a good time to announce Transformer.
Transformer is a tool that will read in your EJB jar file and write out a
new jar file. What it does in the process is convert all Ejipt properties
file in the jar into a single, standard ejb-jar.xml. It does not include
the old properties files in the converted jar. The converter jar is given a
different file name so that it doesn't overwrite your original.
I massively overhauled this tool since I first posted a message about it
here about a month ago. It now works quite well and thoroughly. It's
particularly great if you have tens to hundreds of EJBs you want to convert
from the old Ejipt format to the standard deployment descriptor.
So yes, it is true that Ejipt will use ejb-jar.xml instead of the properties
files. If using ejb-jar.xml you don't need any properties files in the jar.
If you want to use JRun's CMP with ejb-jar.xml, you put all the SQL into
env-entries. This has plusses and minuses, but for now that's how JRun
works it. If you download Transformer from the Dev Exchange and run it on
some of the samples that come with JRun (such as the samples 7a-c), you can
see how to convert all this sort of stuff from properties to ejb-jar.xml.
Transformer is available at http://devex.allaire.com/developer/gallery/
under the Java section. I just updated it yesterday with some minor changes
(one ejb-jar.xml element fix, and some fixed Javadoc) which haven't showed
up on the exchange yet. If you want the latest and greatest, either wait a
day and download it, or contact me and I'll email it to you.
P.S. If using properties files, the properties file names must match the EJB
remote interface names -- at least that's how all the samples are set up.
Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 15, 2000 9:31 AM
> To: JRun-Talk
> Subject: ejb-jar.xml vs. Properties file
>
>
> Is it true that if you have a ejb-jar.xml in your EJB Jar the
> EJB engine
> will uses that instead of the default and bean properties?
> If this is
> true, then am I correct to say that you cannot have an
> ejb-jar.xml in your
> EJB Jar if you want to use JRun's CMP?
>
> One other question: What is the name of the bean's property file?
> Should it be <jndiname>.properties?
>
> Thanks for any info.
>
> Adam
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.