Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: java database

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Location
    Philadelphiaj Pa
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question java database

    hi i'm new to java. i want to create a java program to store edit etc data, so I'm thinking database. It would have to be accessible by 2 other pcs.

    i was thinking mysql, but i read somewhere that javadb is an embedded java db, right. embedded means that it's contained with that program correct?

    any help on links to tutorials on database would be great. thanks Ron G


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,302
    Thanks
    181
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: java database

    If you embed the database, then any clients (your program) will have their local data, but different instances will not share the same data. If you wish the clients to share the data, then you will need some type of server running the appropriate software (MySQL is popular and installed by default on many commercial shared servers but there are also other options such as Derby, PostgrSQL, etc..).

    If you wish to learn SQL, the see the following link:
    SQL Tutorial
    To make SQL calls from java, see the following
    Trail: JDBC(TM) Database Access (The Java™ Tutorials)
    Depending upon how scalable and maintainable you wish you app to be, its good practice to separate the data model, data logic and manipulation, and the user interface appropriately. This is typical of 3-tier designs in J2EE, modeled by the Model-view-controller

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Location
    Philadelphiaj Pa
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Re: java database

    thank you so much for the reply..

    forgive me, is derby already a part of java or is it a separate download??

    Is derby easier than mysql to connect to?

    Also can you in a laymens terms tell me what glassfish is, and should I look at this also..

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,302
    Thanks
    181
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: java database

    Derby is a database and a separate download, deployed by Apache: Apache Derby All databases will have similar ways for connecting and performing SQL calls, so I wouldn't necessarily say one is better or easier than another.
    Glassfish is an application server GlassFish - Open Source Application Server — Java.net from which you could place your application logic (for example you could run servlets or webpages which your client application retrieves data from, and those pages themselves - or something behind them - access the data).

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java database

    There are many databases and all have same process of performing SQL calls. The Java database is easy to use. It is widely use because of allowing high security. It is portable and is install on one click. It is use in server client mode. It allows optional integration and gives high performance.

  6. #6
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java database

    For Java Programming language Java Database is refer as JDBC. It shows the way how the user accessing the database. Java database provides methods for updating data. From a single application it accepts many implementations.

  7. #7
    Junior Member
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java database

    PLS I'M NEW HERE and i need help on which database can i choose with special consideration on portability in terms of memory size. also its efficiency with java programing

  8. #8
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: java database

    neutrall, you are hijacking other peoples threads. I have already deleted one post by you today.

    Can you please start a new thread in the correct forum when you have a question. Thank you.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. Java Barcode Program with Oracle database
    By techsing14 in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: December 6th, 2012, 04:19 AM
  2. Replies: 3
    Last Post: April 16th, 2011, 01:38 PM
  3. [SOLVED] Java app with Netbeans and Derby database
    By Kakashi in forum JDBC & Databases
    Replies: 3
    Last Post: March 17th, 2011, 02:35 PM
  4. Replies: 3
    Last Post: March 1st, 2011, 01:18 PM
  5. connect java to a database
    By ridg18 in forum JDBC & Databases
    Replies: 1
    Last Post: December 25th, 2010, 10:28 AM

Tags for this Thread