473,666 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

best solution for using a database and Java

hi there.
i'm thinking of developing an app using Java to manage a library
(books, clients, orders..etc).
I am not sure of how to store the data, maybe using files or a DBMS.
The ammount of data is probably not much to justify the use of a DBMS.
I wanted to know your opinion, and how can i implement it?
I've searched some JDBC drivers, but most of it are not free :( I found
one free for MySQL.
The disadvantages of using a DBMS is that i need to run a server, and
this app only runs on one pc.. no need for network or anything.
what do you think?

thanks a lot

Jul 17 '05 #1
8 5654
If you want to use java as your development language, I would recommend
MySQL as a cheap (free) but extremely powerfull database. And, as you
have already discovered, it has a free JDBC driver already written. The
AWT is very cumbersome in java however.

Even though it is standalone. I would recommend writing in JSP on top
of Tomcat. You would use your browser as the GUI component but java for
all the backend processing. That is what I did for one of my
applications and it works great.

Also, if you ever want to access the application from outside, it would
require minimal effort to do it.

I hope this helps!

nu********@gmai l.com wrote:
hi there.
i'm thinking of developing an app using Java to manage a library
(books, clients, orders..etc).
I am not sure of how to store the data, maybe using files or a DBMS.
The ammount of data is probably not much to justify the use of a DBMS.
I wanted to know your opinion, and how can i implement it?
I've searched some JDBC drivers, but most of it are not free :( I found
one free for MySQL.
The disadvantages of using a DBMS is that i need to run a server, and
this app only runs on one pc.. no need for network or anything.
what do you think?

thanks a lot

Jul 17 '05 #2
Hi,

take a look at http://hsqldb.sourceforge.net/

Regards,
Lukas

nu********@gmai l.com wrote:
hi there.
i'm thinking of developing an app using Java to manage a library
(books, clients, orders..etc).
I am not sure of how to store the data, maybe using files or a DBMS.
The ammount of data is probably not much to justify the use of a DBMS.
I wanted to know your opinion, and how can i implement it?
I've searched some JDBC drivers, but most of it are not free :( I found
one free for MySQL.
The disadvantages of using a DBMS is that i need to run a server, and
this app only runs on one pc.. no need for network or anything.
what do you think?

thanks a lot

Jul 17 '05 #3
Have a look at STEP FORWARD.

www.gestalt.com

<nu********@gma il.com> wrote in message
news:cd******** @odak26.prod.go ogle.com...
hi there.
i'm thinking of developing an app using Java to manage a library
(books, clients, orders..etc).
I am not sure of how to store the data, maybe using files or a DBMS.
The ammount of data is probably not much to justify the use of a DBMS.
I wanted to know your opinion, and how can i implement it?
I've searched some JDBC drivers, but most of it are not free :( I found
one free for MySQL.
The disadvantages of using a DBMS is that i need to run a server, and
this app only runs on one pc.. no need for network or anything.
what do you think?

thanks a lot

Jul 17 '05 #4
Hi, there!

look for Pevayler. It is the answer for your questions.
nu********@gmai l.com wrote in message news:<cd******* *@odak26.prod.g oogle.com>...
hi there.
i'm thinking of developing an app using Java to manage a library
(books, clients, orders..etc).
I am not sure of how to store the data, maybe using files or a DBMS.
The ammount of data is probably not much to justify the use of a DBMS.
I wanted to know your opinion, and how can i implement it?
I've searched some JDBC drivers, but most of it are not free :( I found
one free for MySQL.
The disadvantages of using a DBMS is that i need to run a server, and
this app only runs on one pc.. no need for network or anything.
what do you think?

thanks a lot

Jul 17 '05 #5
Centuries ago, Nostradamus foresaw when David Morris <dm*****@dynami cquest.com> would write:
If you want to use java as your development language, I would
recommend MySQL as a cheap (free) but extremely powerfull database.
And, as you have already discovered, it has a free JDBC driver already
written. The AWT is very cumbersome in java however.


Hmm? MySQL(tm) is only "free" if you plan to give away all of your
code, licensing it under the GPL or some similar license. If you plan
to connect anything to it that isn't "free software," it costs $450
USD per server.
--
output = reverse("gro.gu ltn" "@" "enworbbc")
http://www3.sympatico.ca/cbbrowne/languages.html
Artificial intelligence, like fusion power, has been ten years away
for the last 30 years. -- Conrad Stack
Jul 17 '05 #6
I see Bill and Steve are still trolling the newsgroups spreading FUD
under assumed names.

You're only required to GPL code if it is statically linked to the
core MySQL engine (which is itself GPL'ed). If you're statically
linking your web app to a database server, you've got bigger problems
than the GPL.

//Nathan

Christopher Browne <cb******@acm.o rg> wrote in message news:<m3******* *****@wolfe.cbb rowne.com>...
Centuries ago, Nostradamus foresaw when David Morris <dm*****@dynami cquest.com> would write:
If you want to use java as your development language, I would
recommend MySQL as a cheap (free) but extremely powerfull database.
And, as you have already discovered, it has a free JDBC driver already
written. The AWT is very cumbersome in java however.


Hmm? MySQL(tm) is only "free" if you plan to give away all of your
code, licensing it under the GPL or some similar license. If you plan
to connect anything to it that isn't "free software," it costs $450
USD per server.

Jul 17 '05 #7
After takin a swig o' Arrakan spice grog, na*****@hotmail .com (Nathan Zumwalt) belched out:
I see Bill and Steve are still trolling the newsgroups spreading FUD
under assumed names.

You're only required to GPL code if it is statically linked to the
core MySQL engine (which is itself GPL'ed). If you're statically
linking your web app to a database server, you've got bigger problems
than the GPL.


If that is your interpretation of MySQL AB's license, then I suggest
you take that up with the vendor.

<http://www.mysql.com/products/licensing/>

At MySQL AB, we believe in open source / free software and we welcome
all initiatives to publish more software under the GPL license, just
as we have done.

In their simplest form, the following are general licensing
guidelines:

* If your software is licensed under either the
GPL-compatible Free Software License as defined by the Free
Software Foundation or approved by OSI, then use our GPL
licensed version.

* If you distribute a proprietary application in any way, and you
are not licensing and distributing your source code under GPL,
you need to purchase a commercial license of MySQL

* If you are unsure, we recommend that you buy our cost effective
commercial licenses. That is the safest solution. Licensing
questions can submitted online for our advice, and we encourage
you to refer to the Free Software Foundation or a lawyer as
appropriate.

That set of "guidelines " doesn't say anything about static linking.
It says that if the application is proprietary "in any way," then you
have to pay.
--
let name="cbbrowne" and tld="ntlug.org" in name ^ "@" ^ tld;;
http://www.ntlug.org/~cbbrowne/multiplexor.html
On the other hand, you have different fingers.
Jul 17 '05 #8
I've had a discussion of this subject with MySQL Sales Manager. The bottom
line: if the application is not dependent on MySQL for its operation (e.g.
can work with some other RDBMS) and communicates with MySQL via a JDBC
driver (therefore, does not have static links to MySQL) then it does not
come under GPL. This is pretty much in line with the common interpretation
of GPL; the only difference being the "aggregatio n" (distribution of the
GPLed software with the non-GPLed product), which is specifically
permissible under the GPL, but not in MySQL's interpretation.

Alex Molochnikov
Gestalt Corporation
www.gestalt.com

"Christophe r Browne" <cb******@acm.o rg> wrote in message
news:m3******** ****@wolfe.cbbr owne.com...
After takin a swig o' Arrakan spice grog, na*****@hotmail .com (Nathan

Zumwalt) belched out:
I see Bill and Steve are still trolling the newsgroups spreading FUD
under assumed names.

You're only required to GPL code if it is statically linked to the
core MySQL engine (which is itself GPL'ed). If you're statically
linking your web app to a database server, you've got bigger problems
than the GPL.


If that is your interpretation of MySQL AB's license, then I suggest
you take that up with the vendor.

<http://www.mysql.com/products/licensing/>

At MySQL AB, we believe in open source / free software and we welcome
all initiatives to publish more software under the GPL license, just
as we have done.

In their simplest form, the following are general licensing
guidelines:

* If your software is licensed under either the
GPL-compatible Free Software License as defined by the Free
Software Foundation or approved by OSI, then use our GPL
licensed version.

* If you distribute a proprietary application in any way, and you
are not licensing and distributing your source code under GPL,
you need to purchase a commercial license of MySQL

* If you are unsure, we recommend that you buy our cost effective
commercial licenses. That is the safest solution. Licensing
questions can submitted online for our advice, and we encourage
you to refer to the Free Software Foundation or a lawyer as
appropriate.

That set of "guidelines " doesn't say anything about static linking.
It says that if the application is proprietary "in any way," then you
have to pay.
--
let name="cbbrowne" and tld="ntlug.org" in name ^ "@" ^ tld;;
http://www.ntlug.org/~cbbrowne/multiplexor.html
On the other hand, you have different fingers.

Jul 17 '05 #9

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

Similar topics

5
4942
by: great_googley_moogley | last post by:
Greetings, I am in the process of installing a SQL database at a customer location. I have determined that there are 3 ways to do this, and I wanted to know which is the best of the 3. 1 Install From Script. In this method I create the database and its objects in scripts that are run via osql utility on the SQL server machine. For loading any initial data that I need in the database I also run bcp commands.
11
9244
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
136
9307
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
3
2064
by: Alex | last post by:
Hi all, I'm looking for some advice on how best to implement storage of access logs into a db/2 8.1.4 database running on a RH 7.2 system. I have 5 (squid) web caches running here that service the whole university. All access to external web sites must go through these caches. Each cache generates a gzip'd access log file that's about 100Mbytes every night.
1
2018
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for work. I am working on Access 2000. I have basic SQL/VB skills - and am pretty accomplished at putting the databases together. Anyway...I've created a database to keep track of "Dayworks" we are
0
4221
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com. --------------------------------------------------------------------------------
9
1771
by: Luke Vogel | last post by:
Hi all. This is a bit of a newbie type question. I am trying to figure out what is the best way to connect to a database; ado.net, odic others? I've found a couple of examples that show you how to connect to the "Northwind" database, using oledb??
3
1801
by: Phil Campaigne | last post by:
I am developing a java/postgresql application using ant and junit. I want to deploy tested builds along with matching tables with test data in them. What is the best way to deploy the tables and data to postgresql to match a war file? thanks, Phil
4
2915
by: dgleeson3 | last post by:
Hello all I am creating a VB.Net distributed SQL server 2005 application. Each computer in the system has a database with a table of users and their telephone numbers. Each computer has a unique 4 digit identifying code. The central server runs an application which reads the database table on each computer.
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.