Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

saving data without database

  Asked By: Gerritt    Date: Sep 15    Category: Java    Views: 2153
  

I have asked to do a test project with spring framework without using database, because they dont want to go through any installation or configuration,
the company wants to get the war file and be able to run it in any webserver.
there are many ways to do this like saving data in a xml file or text file but what is the professional fastest way to do this?regarding we dont have a large amount of data.
They suggested JackRabbit:
http://jackrabbit.apache.org/

Share: 

 

8 Answers Found

 
Answer #1    Answered By: Olga Allen     Answered On: Sep 15

Why you are not trying to use HSQLDB?
You can use it in embedded mode which needs no installation  or
configuration.

 
Answer #2    Answered By: Botan Suzuki     Answered On: Sep 15

There is a doc folder in the Spring-x-y-z-with-dependancies.zip, in the doc folder, you will find a MVC_step_by_step, the test  application that you need is already in there. You can set it up as explained in the folder with a lightweight database  like HSQL in 2 hours or so...
I guess starting JackRabbit plus the Appfuse or tools like that will need more time to setup....

 
Answer #3    Answered By: Fahmida Ahmed     Answered On: Sep 15

I think HSQLDB which is an Embedded Java RDBMS is the tool you need, you can simply integrate it with Spring and deploy it anywhere you want. You can use standard SQL to store ,query and retrieve data  .

On the other hand Jackrabbit is a content repository not a database  which has its own methods to store, query and retrieve “content”, I don’t thing a content repository can replace a DBMS unless your problem at hand demands a CMS.

 
Answer #4    Answered By: Vidhya Iyer     Answered On: Sep 15

Jackrabbit is a good implementation of JSR-170 for Content management systems,
it is very good to store tree like structures.

if you need a database  which doesn't need installation  there are plenty of them available,
you can start with HSQL which is bundled with lots of components.

from JDK 6, Java DB is also bundled in JDK so you can use Java DB ( formerly derby and cloudscape)

 
Answer #5    Answered By: Cyka Jansen     Answered On: Sep 15

you can still use database  in your project  without need any instalation in server !
many java database (also free) exist that you can connect to it with its jar file  and all of need
is put that jar file on your project too handling any thing as fast as any other db that need instalation !

one of most popular of this is derby that provided by apache  and you can now download and
learn it from this url :
http://db.apache.org/derby/

i use it in one of my project that need run  on autoplay cd (something like multimedia cd) .

 
Answer #6    Answered By: Robin Hayes     Answered On: Sep 15

Try embedded databases like Hypersonic (hSql). These databases
are placed in memory and are as fast as you need to demo your
application. Also you do not need to change a lot of things in your
app, just a little change in data  source.

 
Answer #7    Answered By: Ibtihaj Akhtar     Answered On: Sep 15

You need some knowledege about JCR to using Jackrabbit functionality. a JCR implementation isn't rigth solution, when you are going to choose a minimal system. I suggest using HSQL using spring  that is working without any extra installation  and configuration.

 
Answer #8    Answered By: Leonardo Costa     Answered On: Sep 15

You can use Hypersonic database  (RDBMS) or DB4O (OODBMS) easily without any special installation.
Most of Java EE open source projects use Hypersonic.
And you will loose Transactions capabilies if you use text  files same as xml  files to store data  by xml or io libraries.

 
Didn't find what you were looking for? Find more on saving data without database Or get search suggestion and latest updates.




Tagged: