Java Client, Oracle Server

Sep 29, 2004
18,656
67
91
I have java clients that run on a desktop that need to talk/listen to an Oracle server.

The Oracle server will be 10g or 11g. Not up to me and I don't know which version yet. Jave will be Java 6. Possibly 7.

The Java client needs to be able update the Oracle database. When a change occurs, all Java clients need to be notifed.

What technologies shoudl I consider to handle this? Stability and security and the two major concerns. Instead of saying what I am currently considering, I want to hear what others think.
 

beginner99

Diamond Member
Jun 2, 2009
5,231
1,605
136
Any application server? or do all clients directly talk to database?

I would suggest RMI.
Client submits change -> if successful broadcast to all other clients.
 
Sep 29, 2004
18,656
67
91
RMI is apossibility. I thought there might be a newer tech that is a repalcement for that though.

All clients talk to the database. Clients do not talk to eachother.

The server related code is to be written. Now is a good time in the schedual to determine what technologies to leverage.

THe number of clients will be limited so pulling is not out of the question. I just view pulling as a hack though.
 
Last edited:

hooflung

Golden Member
Dec 31, 2004
1,190
1
0
What you want is to use a message brokering system like http://activemq.apache.org/ ActiveMQ and the oracle instant client. Clients will attatch to a message que and listen for messages to be published. You'll have a message sent to the que after a successful database transaction.

This practice is one of the foundations to enterprise software. It is one of the many components of SOA.
 

Oyster

Member
Nov 20, 2008
151
0
0
Oracle has some notification capabilities you might be able to use:

http://docs.oracle.com/cd/B28359_01/java.111/b31224/dbmgmnt.htm

Not a real huge fan of this design. Your probability for failure increases as there is a huge dependency between your database and your application layer.

Just use the built-in JMS API, as some others suggested. You will have finer control over the application (multithreading, notifications, message types, etc.).
 
Sep 29, 2004
18,656
67
91
This gets complicated. I started to explain things. Then decided to delete it and just say it. We need to develop now. We do not have Oracle or anything else available now. For various reasons, jsut assume that we can not install a JMS Provider today.

Which means I can not try out JMS. Is there any way to develop JMS client code without having a JMS Provider available?


NOTE: Started going down the RMI path. Almost got a working test running.

Any other ideas?
 

cytg111

Lifer
Mar 17, 2008
23,998
13,522
136
No.

KISS all the way, forget RMI / JMS / Appserver stack 4.7 / java stored procedure trigger .... unless you're in it for your CV.

From the java client, poll the database in intervals that suits your needs. How fast must the client react to the data change? Is 1 hour acceptable ? 10 minutes ? 1 minute ?
Even down to the second, i'd still travel this route. No need to go suicide by applicationserver PMS if you dont have to.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |