Title: RE: Anyone know how to def Data-type in cmp-field???

The simplest solution (and the one I choose, usually) is to deploy the beans and let the errors go by (if any; I've not used Interbase, and I've not seen this kind of error). This should generate an orion-ejb-jar.xml for you in $ORION/application-deployments/[yourApp]/[yourEJBModule]/orion-ejb-jar.xml, complete with the current persistence types. Modify this file (I usually copy it to EJBdirectory/orion/orion-ejb-jar.xml) with the correct persistence types. Then, remove ant tables from your DB that have been created from the flawed deployment; remove the deployment directory; bingo.


Hi people aroud the world!!!

I've found info about what I need to run Orion EJB 2.0 sample with Interbase inside our Orion-list.

But for now, I'm having following trouble: primary keys, in Interbase, allow only 254 bytes in length. If I configure my datasource to use Interbase, and set schema="interbase.xml", and then mapping Strings to VARCHAR(255), I get errors in deployment time (primary key too long, or something like this). To turn things bad, I want to use all Interbase power, and map Strings to VARCHAR(8000)... How can I configure my primary-keys to use a max of varchar(30), or something like this? And, how I define the datasource that shold be used for deployment (not after deployment)?

See, I need to configure inside ejb-jar.xml file the datatype of my cmp-field (not in orion-ejb-jar.xml, because when Orion create orion-ejb-jar.xml tables are created too - so my database will be incorrect -> of course, I'll get app not deployed, because interbase will refuse the primary key with more than 254 bytes).

Anyone know how to do this???

Reply via email to