In fact if you just save your ejb-jar.xml and thereby change its time stamp
that will make Orion recreate tables. I am not sure, but I think you can
invoke orion.jar with a parameter to get it done (check out the docs), if
you are looking for a nicer way...

Yours
Randahl

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of John Hogan
Sent: 28. februar 2001 19:47
To: Orion-Interest
Subject: recreate tables for a cmp


All,

I have a cmp that has been deployed and has created tables for itself.

Now, I'd like to migrate to a different schema/db.  Changing the
schema connect string info in data-sources.xml to point at a
different db, and restarting orion does not by itself trigger
recreation of the entitybean tables.  Any use of the bean causes the
following error:

javax.ejb.CreateException: Error creating EntityBean: ORA-00942:
table or view does not exist

It seems that if you change some of the info in orion-ejb-jar.xml (a
cmp-field-mapping-name), the tables will be recreated the next time
orion is started.  I was wondering if anyone knows of a easier way to
signal orion to recreate db tables for an cmp bean?  TIA.

John Hogan


_____________________________________

Get your free E-mail at http://www.ireland.com


Reply via email to