This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes DB2 Triggering  java app. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "DB2 Triggering  java app. " Watch "DB2 Triggering  java app. " New topic
Author

DB2 Triggering java app.

Viswa Laksh
Greenhorn

Joined: Apr 30, 2003
Posts: 9
Is there any way to trigger a java application from DB2 while inserting one record?

Thanks,
Viswa
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

Viswa,
No. The database cannot trigger something on the app server.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dana Hanna
Ranch Hand

Joined: Feb 28, 2003
Posts: 227
DB2 has supported java triggers since version 5.2. You can create a trigger that does what you'd like - but you're best off keeping it simple (if you want heavy stuff done, use the trigger to put a message in a queue - or a "queue" table that the other process polls and processes.

Get it>?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

Dana,
That's interesting. So you compile the java program on the db2 server and the trigger calls it?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: DB2 Triggering java app.
 
Similar Threads
how to include db2jcc.jar and db2jcc_license_cu.jar (db2 driver) into my project
Free Testing Vouchers from IBM
jsp
Limit in sending input data to db2 stored procedure
DB2 Stored procedures written in Java