Friday, May 28, 2004 11:09 PM
You do just that -- insert into one database by obtaining a JDBC Connection, doing the insert, and then insert into the other in the same way. There is nothing special here.
If you want to do both inserts in one transaction, it is more complicated. You need XA-aware database drivers, and may need to use JTA to manage the transaction across both databases as well. Start searching for those topics on the internet.