I wrote:
>
>***** THIS DOES NOT POPULATE THE <jdbc-type> ELEMENTS IN THE jaws.xml.
>

The ejxjaws.jar in the JBoss2.0 zip is buggy. It is throwing an
exception whenever the UI attempts to set a type mapping.

The "official" EJX distribution (ejx099b.zip) generates jaws.xml files
properly - but it doesn't support custom finders.

You still have to use the EJX included with jBoss 2.0 to generate
jboss.xml files (unless it's possible to add the plugin from the jBoss
2.0 distribution to EJX 0.99b).

(I did try putting the ejxjaws.jar file from EJX 0.99b in the jboss 2
lib/ext directory, but it blew up when I tried opening a jaws.xml file
with it.)

In EJX 0.99b, you have to specify the mapping (database type) in each
CMP field, rather than doing it once for all enterprise beans.

We don't have the source for the jBoss 2.0 version of EJX, so that's
about as far as I can get.

I suggest using both versions of the tool, plus a bit of hand-editing
(e.g. to put your finders in).

>In message <[EMAIL PROTECTED]>, Jim
>Archer <[EMAIL PROTECTED]> writes
>>Hi ALl...
>>
>>When using ejx to generate the ejboss.xml file, to deploy a CMP bean, there 
>>are at least two choices when configuring the Container->CMP EntityBean 
>>under Persistence Manager: CMP Persistence and JAWS.

The first one is "CMP file-persistence" - I think JAWS is the only
option for CMP with a relational database.

>>If I don't select JAWS, do I need to generate a jaws.xml file? If not, do I 
>>need to do anything?
>>
>>If I do select jaws and generate a jaws.xml file, I'm not sure what to 
>>enter in many of the settings. For example, it appears I have to enter all 
>>my finder methods and write SQL queries, but what part of the query do I 
>>write and how do I represent passed in arguments?

>From Rickard's example, it appears that you just write an expression
that will be put in the WHERE clause, and that arguments represented by
numbers in braces, starting at zero {0}.

Be aware that if you edit the XML you may have to replace some
characters in your expression with entity references - in his example:

   balance > {0}

becomes

   balance &gt; {0}

in the XML file.

-- 
Justin Forder


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to