NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Java & MySQL
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Unleash



Joined: 19 Sep 2008
Posts: 12
Location: Brazil

PostPosted: Fri Sep 19, 2008 1:42 pm    Post subject: Java & MySQL Reply with quote

Hi !
I need some advices and ideas for an application:
My job is to do basically a cadaster, with some fields of information. This application need to be running on a network of 10 computers, and each computer need to have access to the database of the cadaster.

My intention is to use Java for the interface and MySQL for the database.
Wich kind of Java Application should this program be ?
Please help me with some ideas !!

Thanks !
Back to top
Julian
Posted via mailing list.





PostPosted: Fri Sep 19, 2008 2:51 pm    Post subject: Java & MySQL Reply with quote

Maybe you could use a simple Servlet/JSP Web app using some framework supported by Netbeans by default Like Struts, Spring MVC, JSF or Visual Web JSF. Or you could Use a n-tier Swing app using Java Swing and some Web App in server mode for interchange information with the Swing app (Even using Java Web Start for deployment)

On Fri, Sep 19, 2008 at 7:42 AM, Unleash <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi !

I need some advices and ideas for an application:

My job is to do basically a cadaster, with some fields of information. This application need to be running on a network of 10 computers, and each computer need to have access to the database of the cadaster.



My intention is to use Java for the interface and MySQL for the database.

Wich kind of Java Application should this program be ?

Please help me with some ideas !!



Thanks !

------------------------
Brazilian Computer Engineering Student !







--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover
Back to top
David Van Couvering
Posted via mailing list.





PostPosted: Fri Sep 19, 2008 9:10 pm    Post subject: Java & MySQL Reply with quote

Well, I guess the question is, why do you want to use Java, and where
do you want to use Java? If you are OK using Java on the desktop, it
would be my preference to write a Swing app that deploys using Java
Web Start.

If you only want your users to use a browser, then you're going to
have to write a web app. I know I'm probably going against the grain
here, but to me building a web app is a PITA compared to building the
UI in Swing using the NetBeans visual design features, plus you have
all these technologies and tiers that have to interoperate with each
other. Keep it simple if you can.

If you go for Java on the destkop, you don't need to use a web app in
server mode if all your client machines are on the same local area
network as the database - just have them talk to the database
directly, using JDBC or JPA. If your client machines are remote and
need to go through firewalls and such, then, yes, you need a web tier
in front of your database (e.g. something that understands HTTP). In
which case you might look at implementing a REST API on top of your
database - NetBeans has tools that makes it easy to generate this API.

David

On Fri, Sep 19, 2008 at 7:50 AM, Julian <address-removed> wrote:
Quote:
Maybe you could use a simple Servlet/JSP Web app using some framework
supported by Netbeans by default Like Struts, Spring MVC, JSF or Visual Web
JSF. Or you could Use a n-tier Swing app using Java Swing and some Web App
in server mode for interchange information with the Swing app (Even using
Java Web Start for deployment)

On Fri, Sep 19, 2008 at 7:42 AM, Unleash <address-removed> wrote:
Quote:

Hi !

I need some advices and ideas for an application:

My job is to do basically a cadaster, with some fields of information.
This application need to be running on a network of 10 computers, and each
computer need to have access to the database of the cadaster.



My intention is to use Java for the interface and MySQL for the database.

Wich kind of Java Application should this program be ?

Please help me with some ideas !!



Thanks !

------------------------
Brazilian Computer Engineering Student !







--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover




--
David W. Van Couvering
http://davidvancouvering.blogspot.com
Back to top
tanveersattar



Joined: 21 Sep 2008
Posts: 5

PostPosted: Tue Sep 23, 2008 6:41 am    Post subject: Reply with quote

It seems to me a simple application which will have a form where users can input some data and it will go in the database and then there will be couple of screens to show that data. So if you don't want your users to install the application on each individual computer then you should build a simple Java Web Application using JSP/Servlets using Struts. Netbeans provides good support for this. Netbeans provides you the support of deploying and testing the application on the bundled Tomcat with the the IDE. The backend database access with the MySQL can be developed simply with JDBC.

If you want to develop a windows like desktop application which each user need to install on his/her PC then go with Swing and again Netbeans gives you tools to do this. Database connectivity can be provided again using JDBC in this case.
Back to top
Unleash



Joined: 19 Sep 2008
Posts: 12
Location: Brazil

PostPosted: Wed Sep 24, 2008 2:57 pm    Post subject: Reply with quote

First of all, thanks for these great help you're providing !!

And answering, my application need to run on each computer of the network, but i don't know if it's necessary to be installed !
Each computer should have access to view and modify the fields on the database.
Back to top
Victor Manuel Ramirez
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 4:13 pm    Post subject: Java & MySQL Reply with quote

web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed ([email]address-removed[/email])>
Quote:
First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the network, but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com
Back to top
David Van Couvering
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 4:30 pm    Post subject: Java & MySQL Reply with quote

I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David

On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com




--
David W. Van Couvering
http://davidvancouvering.blogspot.com
Back to top
Julian
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 4:38 pm    Post subject: Java & MySQL Reply with quote

I'm agree with David, you can use SwingApp using n-layer server backend and distribute the app using Java Web Start, at this moment I'm developing one application for data entry using this design:


Swing / Spring Client-----------------------Remoting------------------------------------------------ Java Web App / Spring / JPA /Glassfish (Server Backend)
(Deploying using Web Start)
|
|
Remoting
|
|
Swing / Spring Client
(Deploying using Web Start)



On Wed, Sep 24, 2008 at 10:29 AM, David Van Couvering <address-removed ([email]address-removed[/email])> wrote:
Quote:
I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David


On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed ([email]address-removed[/email])> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed ([email]address-removed[/email])>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com







--
David W. Van Couvering
http://davidvancouvering.blogspot.com





--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover
Back to top
David Van Couvering
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 7:09 pm    Post subject: Java & MySQL Reply with quote

Yes, that's great. But what I"m saying is why can't the Java Swing
client talk directly to the database? When you have 10 users and
you're running on the local area network, I don't see the need for a
web-based middle tier. It just adds a huge amount of complexity.
Databases do know how to handle multiple incoming connections just
fine...

On Wed, Sep 24, 2008 at 9:38 AM, Julian <address-removed> wrote:
Quote:
I'm agree with David, you can use SwingApp using n-layer server backend and
distribute the app using Java Web Start, at this moment I'm developing one
application for data entry using this design:


Swing / Spring
Client-----------------------Remoting------------------------------------------------
Java Web App / Spring / JPA /Glassfish (Server Backend)
(Deploying using Web Start)

|

|

Remoting

|

|

Swing / Spring Client

(Deploying using Web Start)



On Wed, Sep 24, 2008 at 10:29 AM, David Van Couvering
<address-removed> wrote:
Quote:

I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David

On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the
network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com




--
David W. Van Couvering
http://davidvancouvering.blogspot.com



--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover




--
David W. Van Couvering
http://davidvancouvering.blogspot.com
Back to top
Victor Manuel Ramirez
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 7:20 pm    Post subject: Java & MySQL Reply with quote

I just say, what if it grows??

2008/9/24 David Van Couvering <address-removed ([email]address-removed[/email])>
Quote:
Yes, that's great. But what I"m saying is why can't the Java Swing
client talk directly to the database? When you have 10 users and
you're running on the local area network, I don't see the need for a
web-based middle tier. It just adds a huge amount of complexity.
Databases do know how to handle multiple incoming connections just
fine...


On Wed, Sep 24, 2008 at 9:38 AM, Julian <address-removed ([email]address-removed[/email])> wrote:
Quote:
I'm agree with David, you can use SwingApp using n-layer server backend and
distribute the app using Java Web Start, at this moment I'm developing one
application for data entry using this design:


Swing / Spring
Client-----------------------Remoting------------------------------------------------
Java Web App / Spring / JPA /Glassfish (Server Backend)
(Deploying using Web Start)

|

|

Remoting

|

|

Swing / Spring Client

(Deploying using Web Start)



On Wed, Sep 24, 2008 at 10:29 AM, David Van Couvering
<address-removed ([email]address-removed[/email])> wrote:
Quote:

I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David

On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed ([email]address-removed[/email])> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed ([email]address-removed[/email])>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the
network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com




--
David W. Van Couvering
http://davidvancouvering.blogspot.com



--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover






--

David W. Van Couvering
http://davidvancouvering.blogspot.com





--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com
Back to top
Rob Englander
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 7:43 pm    Post subject: Java & MySQL Reply with quote

A good pattern for this is to hide the protocol. Abstract the layer that is talking to the database, and implement thatabstraction using direct calls to the database via JDBC (or some other technology). If the system grows to the point where
it makes sense to introduce a middle tier, you create a new implementation of the abstraction used by the Swing client
that now talks to the middle tier. The benefit here is that it doesn't really require much extra effort, and when the time comes
(if it ever comes) the original code used to implement the abstraction is largely reusable in building part of the middle tier.


Think about it... this is actually the pattern used by JDBC itself.


Just something to consider.


Rob

On Sep 24, 2008, at 3:20 PM, Victor Manuel Ramirez wrote:
Quote:
I just say, what if it grows??

2008/9/24 David Van Couvering <address-removed ([email]address-removed[/email])>
Quote:
Yes, that's great. But what I"m saying is why can't the Java Swing
client talk directly to the database? When you have 10 users and
you're running on the local area network, I don't see the need for a
web-based middle tier. It just adds a huge amount of complexity.
Databases do know how to handle multiple incoming connections just
fine...


On Wed, Sep 24, 2008 at 9:38 AM, Julian <address-removed ([email]address-removed[/email])> wrote:
Quote:
I'm agree with David, you can use SwingApp using n-layer server backend and
distribute the app using Java Web Start, at this moment I'm developing one
application for data entry using this design:


Swing / Spring
Client-----------------------Remoting------------------------------------------------
Java Web App / Spring / JPA /Glassfish (Server Backend)
(Deploying using Web Start)

|

|

Remoting

|

|

Swing / Spring Client

(Deploying using Web Start)



On Wed, Sep 24, 2008 at 10:29 AM, David Van Couvering
<address-removed ([email]address-removed[/email])> wrote:
Quote:

I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David

On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed ([email]address-removed[/email])> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed ([email]address-removed[/email])>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the
network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com




--
David W. Van Couvering
http://davidvancouvering.blogspot.com



--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover






--

David W. Van Couvering
http://davidvancouvering.blogspot.com





--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com

Back to top
Glenn Holmer
Posted via mailing list.





PostPosted: Wed Sep 24, 2008 8:16 pm    Post subject: Java & MySQL Reply with quote

On Wed, 2008-09-24 at 09:29 -0700, David Van Couvering wrote:
Quote:
I'll never understand why the default answer is always web app.

Quote:
I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

Amen.

--
____________________________________________________________
Glenn Holmer address-removed
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601
Back to top
Unleash



Joined: 19 Sep 2008
Posts: 12
Location: Brazil

PostPosted: Thu Sep 25, 2008 11:58 am    Post subject: Reply with quote

Guys you don't know how much i'm learning here ... is being very important to a new programmer like me "watch" this discussion. Thanks a lot !

By the way, i'm agree with David: simplicity is better. Considering that the network probably won't grow, as David says, a web app isn't necessary. But, if i make a great job here (hope i will) i'll certainly want to present the program on some kind of fair, or even to my teachers, to obtain scholarships,etc. Considering this, the solution Rob gave seems to be a great one. What do you think ? And how much this "growth" needs to be to require a web app ?
Back to top
McElwain, Paul Benjamin
Posted via mailing list.





PostPosted: Thu Sep 25, 2008 1:28 pm    Post subject: Java & MySQL Reply with quote

Another absraction to consider is any encoding of the rules around the data, the “business” rules for how the data is used, or the rules for the integrity and consistency of the data (beyond the database structural enforcement).

I think the point here is more about the benefits of the absraction layering than about where the layers are implemented (client or middle tier).


From: address-removed [mailto:address-removed] On Behalf Of Rob Englander
Sent: Wednesday, September 24, 2008 3:44 PM
To: address-removed
Subject: Re: [nbj2ee] Java & MySQL


A good pattern for this is to hide the protocol. Abstract the layer that is talking to the database, and implement that
abstraction using direct calls to the database via JDBC (or some other technology). If the system grows to the point where

it makes sense to introduce a middle tier, you create a new implementation of the abstraction used by the Swing client

that now talks to the middle tier. The benefit here is that it doesn't really require much extra effort, and when the time comes

(if it ever comes) the original code used to implement the abstraction is largely reusable in building part of the middle tier.



Think about it... this is actually the pattern used by JDBC itself.



Just something to consider.



Rob


On Sep 24, 2008, at 3:20 PM, Victor Manuel Ramirez wrote:




I just say, what if it grows??
2008/9/24 David Van Couvering <address-removed ([email]address-removed[/email])>
Yes, that's great. But what I"m saying is why can't the Java Swing
client talk directly to the database? When you have 10 users and
you're running on the local area network, I don't see the need for a
web-based middle tier. It just adds a huge amount of complexity.
Databases do know how to handle multiple incoming connections just
fine...

On Wed, Sep 24, 2008 at 9:38 AM, Julian <address-removed ([email]address-removed[/email])> wrote:
Quote:
I'm agree with David, you can use SwingApp using n-layer server backend and
distribute the app using Java Web Start, at this moment I'm developing one
application for data entry using this design:


Swing / Spring
Client-----------------------Remoting------------------------------------------------
Java Web App / Spring / JPA /Glassfish (Server Backend)
(Deploying using Web Start)

|

|

Remoting

|

|

Swing / Spring Client

(Deploying using Web Start)



On Wed, Sep 24, 2008 at 10:29 AM, David Van Couvering
<address-removed ([email]address-removed[/email])> wrote:
Quote:

I'll never understand why the default answer is always web app. If
you're on a LAN, web start gives you all the benefits of incremental
upgrade and single-location install that you get from web apps, with a
much simpler programming model. If it were me I'd choose a Swing app
built on Java Web Start any day over a multi-tiered web application
with all the ugliness of HTML/CSS/JavaScript.

If you're going over the web, then you need a web tier to translate
between HTTP and your internal protocols. But even then, there's a
reason RIA architectures like Flash, Flex, and Java are popular. A
web app is just something we've had to do all these years because of
the ubiquity of the browser and the connectionless/document-oriented
model of HTTP/HTML. I believe a rich client talking to the web tier
using a simple service-based API is a viable, if not superior,
alternative to the traditional web app.

David

On Wed, Sep 24, 2008 at 9:13 AM, Victor Manuel Ramirez
<address-removed ([email]address-removed[/email])> wrote:
Quote:
web app, try mysql+glassfish+(JPA or Hibernate)

2008/9/24 Unleash <address-removed ([email]address-removed[/email])>
Quote:

First of all, thanks for these great help you're providing !!



And answering, my application need to run on each computer of the
network,
but i don't know if it's necessary to be installed !

Each computer should have access to view and modify the fields on the
database.

------------------------
Brazilian Computer Engineering Student !







--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com




--
David W. Van Couvering
http://davidvancouvering.blogspot.com



--
Ing. Julian Rivera Pineda
Java/Perl/Python/Gnome Metaprogrammer

Xtecuan! Ufo Senshi Dai Apolon
Para servir a Dios a la Virgen y a Usted!!!
Java Helper Rover






--
David W. Van Couvering
http://davidvancouvering.blogspot.com





--
Victor M. Ramirez A.
Ingeniero de Sistemas
Universidad del Norte
http://vramirez.wordpress.com
Back to top
Douglas Allen
Posted via mailing list.





PostPosted: Sat Sep 27, 2008 4:03 am    Post subject: Java & MySQL Reply with quote

On Wed, Sep 24, 2008 at 2:09 PM, David Van Couvering
<address-removed> wrote:
Quote:
Yes, that's great. But what I"m saying is why can't the Java Swing
client talk directly to the database? When you have 10 users and
you're running on the local area network, I don't see the need for a
web-based middle tier. It just adds a huge amount of complexity.
Databases do know how to handle multiple incoming connections just
fine...


Hmmm! Sounds to me like a good job for a web service and a remoting
app. Use the web service to read all data as it is read only and to
make updates use the remoting app. Only authorized users could
download the remoting app then. The rest is all web pages and
distributable applications. So what has happened to jnlp anyway? I
can't find any fun stuff from Sun Micro now to download to my java app
cache in the console. ; )
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo