Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: After a rowInserted() event!

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default After a rowInserted() event!

    Hi folks, I have the Derby Network Server allowing database access to two network clients. One of the network clients adds a new record to the database. My question is: "How does the other client get told that a new record has been added?" There must be some mechanism for this! You can't implement any kind of useful system without it. I know I could write a trigger using SQL but how would this tell the other client of the new record that's just been added? Any help at all would be most welcome! Thanks in advance, Mark.

    Ideally, what I'm after is the Derby Network Server doing something like firing a rowInserted() method or event in the Derby Network Client. It seems to me that this must be possible. It's how it would work if I'd designed it. I just can't find such a mechanism anywhere! This is driving me nuts. Please, if anybody can even hint to me where to look they will have my eternal thanks!


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,371
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: After a rowInserted() event!

    Not sure about the client/server relationship here, but I presume the clients are remote? You may then have to have the server open up a socket and have clients listen on that socket. When an update occurs, the server notifies all clients listening on that socket.

Similar Threads

  1. Menu Event Listeners
    By Gondee in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 16th, 2010, 04:08 PM
  2. [SOLVED] JRadioButton Event Handling Help?
    By CS313e in forum AWT / Java Swing
    Replies: 2
    Last Post: March 27th, 2010, 12:56 PM
  3. jbutton and action event
    By mt888 in forum AWT / Java Swing
    Replies: 3
    Last Post: March 26th, 2010, 07:24 AM
  4. JButton event handling.
    By Prof in forum AWT / Java Swing
    Replies: 6
    Last Post: February 3rd, 2010, 10:29 AM
  5. Event handling
    By subhvi in forum AWT / Java Swing
    Replies: 3
    Last Post: August 26th, 2009, 12:20 PM