473,388 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

trigger database changes to java beans

Hello,

I am working on a client server application involving TOMCAT as Web
server, MySQl as the DB and combination of JSP, Servlet, and JavaBeans
to access and write Data back.

There is another piece of the project (out side my scope of
development) that
writes to the Same MySQL tables and make changes to the data.

How do I write a Trigger/Store Procedure or any such mechanism that
would throw an event that the external Java Beans would catch and take
action like, fetch the changed data....

I am sure this is a very commom issue in application development and
there maybe some patterns that I need to follow.

Any suggestion will be appriciated.

Thanks

Tushar
Jul 17 '05 #1
2 5770
Thanks for the response Steve,

The other piece of project that writes the data is in C++ :-)
I fond an article to use JNI so the C++ object can call Java object
when the data is changed. This Java object can be a listener that
all my beans could register to and listen for appropriate event and
update data.

I think I wil take that route.

Thanks

Tushar

Steve Jorgensen <no****@nospam.nospam> wrote in message news:<et********************************@4ax.com>. ..
I suppose there might be a way to do what you're asking, but the usual model for
an app with requirements like that would be to add a middle-tier that is used by
both front-ends. I know you said the other piece was outside your scope of
development, but perhaps you need to broach the isssue to whomever has the
authority that it may be time for the 3-tier idea.

On 4 Aug 2003 06:27:13 -0700, ph*****@lucent.com (Tushar) wrote:
Hello,

I am working on a client server application involving TOMCAT as Web
server, MySQl as the DB and combination of JSP, Servlet, and JavaBeans
to access and write Data back.

There is another piece of the project (out side my scope of
development) that
writes to the Same MySQL tables and make changes to the data.

How do I write a Trigger/Store Procedure or any such mechanism that
would throw an event that the external Java Beans would catch and take
action like, fetch the changed data....

I am sure this is a very commom issue in application development and
there maybe some patterns that I need to follow.

Any suggestion will be appriciated.

Thanks

Tushar

Jul 17 '05 #2
in oracle, one can rmi and socket to an external server. Otherwise,
one can always poll :)
see also, http://www.ftponline.com/portals/com...ta/default.asp

ph*****@lucent.com (Tushar) wrote in message news:<42************************@posting.google.co m>...
Hello,

I am working on a client server application involving TOMCAT as Web
server, MySQl as the DB and combination of JSP, Servlet, and JavaBeans
to access and write Data back.

There is another piece of the project (out side my scope of
development) that
writes to the Same MySQL tables and make changes to the data.

How do I write a Trigger/Store Procedure or any such mechanism that
would throw an event that the external Java Beans would catch and take
action like, fetch the changed data....

I am sure this is a very commom issue in application development and
there maybe some patterns that I need to follow.

Any suggestion will be appriciated.

Thanks

Tushar

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sickky | last post by:
HI please could anyone give me any links/URL's that i could visit for good tutorials / examples on what .net uses as an altenative to java beans ? as far as i can find out it uses "com" and...
0
by: donnet | last post by:
To those familiar with Java beans, question on how to do with ASP.NET: I come from J2EE and starting to learn ASP.NET and C#. I want to find a way to display a web form filled with data taken...
9
by: Stephen H. | last post by:
Hi, I have an existing web application with java beans that I wanne migrate to ASP.NET using C#. The existing web application has some jsp files that use java beans as follows: .... <%@...
1
by: Andrea Temporin | last post by:
Is there someone who can tell me if it's possible to call Java Beans from Visual Basic Applications (windows forms application I mean)? Can I Use J#? Is It possible to create a Java web services as...
15
oll3i
by: oll3i | last post by:
why it highlights new Integer(value), new Integer(newValue)); as an error import java.beans.*; import java.io.Serializable; i
1
dmjpro
by: dmjpro | last post by:
today i start JAVA mail programming .... here a terms come ... JAF. what is it??? and if possible plz explain Java Beans. kind regards. dmjpro.
3
dmjpro
by: dmjpro | last post by:
El is better to use with JAVA beans only. Right???? Is this right???? Plz explain. Kind regards, DMJPRO.
4
jeffbroodwar
by: jeffbroodwar | last post by:
Hi Guys, I just want to hear your understanding of Java Beans. I mean it doesn't just expose properties (for parameters) right? Java beans must be able to do what variables can't. i need...
0
by: 9664266462 | last post by:
my bean/class page package db; import java.sql.*; public class Topic {
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.