2

I have a oracle database table which records user's status. I have thousands of such users. Every time a user's status is updated/modified, I want to synchronize immediately over HTTP to some other server. I'll be using a Servlet here. I thought of using trigger to monitor such update. Upon every such update the trigger should fire an event that calls a Servlet/some Java code. I'm novice in Oracle database things. Could you please guide me to a working example similar to my above task? Many thanks!

1
  • 2
    Slighly off topic... but this immediately scares me "I want to synchronize immediately over HTTP to some other server". Putting a HTTP request within a update trigger is going to impose serious performance issues and consistency issues ( eg, what happens if your transaction is rolled back after you have made your http callout? ). Consider instead doing something like putting message on an advanced queue which your remote service can subscribe to, or even just a simple "records needed updating" table. Commented Nov 4, 2011 at 23:33

1 Answer 1

3

See Calling Java methods from Oracle DB.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.