Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Java Swing application + Database on server (Java EE?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Java Swing application + Database on server (Java EE?)" Watch "Java Swing application + Database on server (Java EE?)" New topic
Forums: Swing / AWT / SWT EJB and other Java EE Technologies
Author

Java Swing application + Database on server (Java EE?)

Georgy Pf
Greenhorn

Joined: Dec 12, 2013
Posts: 2
Hi! Currently I have a java desktop application with a database that resides on clients system, connection is provided by JDBC connectivity. Now I need to move the database to a server, thus allowing multiple users to work with same db. I want to continue using Swing client. I am new to Java EE and there is tons of technologies from which my system can benefit, so my question is which approach I might want to use? No requirements on the system as long as it will still provide the functionality it had before.

Being new to such large platform as Java EE, after several days of research I got completely lost, most examples I found were for web based applications that use JSF and JSP, same with books, but I have a Swing gui, and I still want to support networking, JPA and a lot more))

And yes, I would like to put the system on EE platform, since there is more coming in the future.
I am searching for answers like your business logic goes here (EJB?), your Swing app goes here, database goes here or something like that.
Thank you!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

I'm not sure you need JEE at all. Why can't your Swing clients simply connect to the database on its new server? I think you may be over-thinking the whole thing.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Georgy Pf
Greenhorn

Joined: Dec 12, 2013
Posts: 2
Bear Bibeault wrote:I'm not sure you need JEE at all. Why can't your Swing clients simply connect to the database on its new server? I think you may be over-thinking the whole thing.


As I said I am new to EE and I would also like to use JPA. What are your suggestions?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
JPA is a layer on top of JDBC. As long as the app is only used in the intranet, or over a
VPN, it can connect directly to the DB. No other technologies are needed.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Swing application + Database on server (Java EE?)
 
Similar Threads
So is it still Java?
J2EE Recommended Reading
.net and java
That second App Server?
connecting to online SQL DB