Hello:
I'm now testing the 'eb' example. I've configured
Jonas to use Oracle 8i as default database to
manage persistence. Everything seems to be ok, but
when i execute 'java eb.ClientAccount AccountImplHome'
i get something like this:

"Getting a UserTransaction object from JNDI
Connecting to the AccountHome
Getting the list of existing accounts in database
Creating a new Account in database
Cannot create Account: javax.ejb.DuplicateKeyException: 
eb.AccountBeanPK@6d"

Then, as Jonas can't insert new values into table "accountsample" (nor 
create it, nor drop it)
i do this 'manually' from oracle-sqlplus running:
SQL>@Account.sql

Great!   the 'sql' file is executed without problems...but now, when i run 
again 'java eb.Client...'
i get:

"Getting a UserTransaction object from JNDI
Connecting to the AccountHome
Getting the list of existing accounts in database
101 Antoine de St Exupery 200.0
102 alexandre dumas fils 400.0
103 conan doyle 500.0
104 alfred de musset 100.0
105 phileas lebegue 350.0
106 alphonse de lamartine 650.0
Creating a new Account in database
Cannot create Account: javax.ejb.DuplicateKeyException: 
eb.AccountBeanPK@6d"

I think is due to a 'duplicated key', but there are no duplicated keys in 
this table!
In the other hand, i think Jonas is not dropping and creating the table in 
each 
execution.

perhaps, am i doing anything wrong?

Regards:
__________________________________________
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 965040000 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__________________________________________
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to