Hi,

 I have created an CMP entity bean with default database connection(hypersonic) 
and insert the data using that bean into database.

Later i have changed the database from default to mySql datasource by editing 
the mysql-ds.xml file in the \deployer dierctory. Problem is that when i 
started to re-inserting the values entered previously into dafault database and 
insertion is failing with an error say..

javax.ejb.DuplicateKeyException: Entity with primary key 11 already exists

I wonder that is that JBoss will connect mySQL and default database simult, 
eventhough we haven't specified default datasource name in jbosscmp-jdbc.xml ? 
Or its feature of EJB ? How i can overcome this problem ?

Thanks and Regards,
pv

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919524#3919524

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919524


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to