Please tell me is it possible to call a java method or a struts action class when a record is inserted in mysql database Actuall my problem is i have 2 databases(both are mysql databases namely db1 and db2) running in two different locations.I need communication between them.When a record is inserted in X table in db1 at the same time some data must be insert in Y table in db2 depending up on the data inserted in db2 some data must be inserted in Z table in db1.
Actuall my project is patient care project
for a group of patients one care taker is there
for each and every patient one embeded button is there.
the mapping between the patient details and the embeded button and the corresponding care taker is there in db2 database
when the patient pressed the embeded button embeded information is inserted in db1
and inorder to send a mobile message to care taker i haveto get the data from db2 depending up on the embeded information inserted in db1 as patient and caretaker mapping is in db2
the businesslogic communicate with db1 iswritten in vc++
the businesslogic communicate with db2 iswritten in java
so i need communication between db1 and db2
technologies used
java,struts 1.2
database : mysql