aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes interconnecting 2 Java Swing applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "interconnecting 2 Java Swing applications" Watch "interconnecting 2 Java Swing applications" New topic
Author

interconnecting 2 Java Swing applications

Daniel Jao
Greenhorn

Joined: Jun 08, 2006
Posts: 6
Hi guys, I hope you could me with my problem.
Here's the scenario:
I have 3 branches where it all uses same java swing standalone application that i developed. My problem is the main branch (1 of the 3) want to have the sales of each branches to synchronize, by synchronize, i mean the main branch wants to know the sales and transaction of each branches for the royalty purposes and other fees. Can anyone help me and give me suggestion on how to do accomplish these? with java... i know this is easier in web applications but we already have the standalone application so we need to find a solution for this situation. i know internet would be needed, but how does 1 standalone app send the required data to the main branch? what things do i need to know or is this ever possible? each branches has its own database. thnx everyone


SCJP - 92%<br />SCWCD - 86%
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

There are *lots* and *lots* of ways to accomplish this. To trim down the choices a bit, you'll need to think about some other requirements you might need.

If all the main branch wants is "sales and transaction of each branches for the royalty purposes and other fees", then it sounds like you don't need to worry about updating the main branch's database as transactions are occurring at other branches. In fact, the easiest way to do this probably wouldn't be tied to your Swing GUI or anything Java at all - it would probably only involve the database. All you'd probably need is a nightly process that sends the day's transactions to the main branch's database. Many database systems provide built-in support for this type of thing. If your database system doesn't, you can "build your own" using cron in Linux/Unix operating systems (you can also get Cron-like utilities for Windows). If you have a Java program that is up all the time, you can also use Quartz for scheduling.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: interconnecting 2 Java Swing applications
 
Similar Threads
LDAP Security
Need info on how to design
Theoretical enlightenment...please
Building different branches with different JDK on same box?
One-To-Many bidirectional