Is database Engine necessary or should I use one in my Java application?

I am writing a program which similar to a telephone directory kind of application. I have a database and I am thinking to use JDBC with mySQL for the database.
My question is that later when this program is ready and I am going to burn it to CD, what will be happen with mySQL? Can I add mySQL (or a similar program)?
Is it not better to make a database by Java objects or arrays within Java? What is the smart way to this when it comes to a program which in the background you have database??? Thank you for sharing your expertise...

I am writing a program which similar to a telephone
directory kind of application. I have a database and
I am thinking to use JDBC with mySQL for the
database.
My question is that later when this program is ready
and I am going to burn it to CD, what will be happen
with mySQL? Can I add mySQL (or a similar program)?You can, but will users want that? Are you better off allowing users to work with any relational database they wish?
>
Is it not better to make a database by Java objects
or arrays within Java? Unless you plan on writing a relational database and SQL engine on your own, the best bet is to get a real relational database.
Hypersonic SQL is small and embeddable in Java. Cloudscape might be good, too. Derby is going to be part of Java 6, unfortunately. PostgreSQL is a terrific relational database that's free.
What is the smart way to this
when it comes to a program which in the background
you have database??? Thank you for sharing your
expertise...The smart thing is to get a real relational database and forget about doing it yourself. Databases are far more complex than a few arrays or objects.
%

Similar Messages

  • Using JDBC in multithreaded Java application?

    Hello everyone
    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    The Java dababase client application will run on Linux and on Windows (64-bit).
    If its supported to use JDBC in multi-threaded way - will it scale up well or am I better off using mutiple single-threaded Java applications instead?
    Are there any rules to follow when using JDBC from multiple-concurrent threads (such as: do not share any JDBC objects among threads, etc).
    Thank you
    Yuri Budilov

    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    Of course.
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    You should use a separate connection pool for each database.
    See the JDBC Dev Guide and use the latest Oracle driver and the latest connection methods shown in that doc
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/toc.htm

  • Can I use Streaming Video in Java Application?

    Will i be able to use Streaming Video in Java Application, if yes can anyhow out there pls teach me how to do it... thanks...

    read up on the Java Medai Framework http://java.sun.com/products/java-media/jmf/index.html

  • How to use " toFront() " method in java application and in which package or

    How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • Should I use one apple id with multiple devices?

    I have 2 iPods an iPad and a new iPhone. Should I use the same Apple ID on all decvices?  The iPods are for the kids to use. Also, will be adding apple tv soon...

    I registered my daughters two I touches using my apple I'd , but now told I should use separate IDs even though only my credit card is to be used when authorized by me.  As I try to figure this very confusing dilemma out, didninunderstand correctly that if I remove their devices now from my ID, they can't be associated with another device for 90 days?  Is their a walk thru tutorial somewhere about how to do this bc I'm beginning to think some mistakes are irreversible for 90 days if you try to figure it out and are wrong!

  • What's the best antivirus for mac???should i use one or not??

    what's the best antivirus for mac?? and also should i have one on my mac or not???

    salar ip wrote:
    what's the best antivirus for mac?? and also should i have one on my mac or not???
    Mac's use a Unix based operating system and other controls that make it hostile for viruses to thrive.
    However it's possible to carry Windows viruses to other Windows machines by a Mac, also there might be some corruption if your dealing with a lot of Windows files.
    So all you really need is a scanner to run when you need it, something like the free ClamXav is good.
    http://www.clamxav.com/
    Apple includes a anti-trojan/malicious program type anti-malware service built into all latest versions of OS X, it works and updates in the background.
    There has been many attempts at trying to "trojan" or trick Mac users into installing rogue software on web pages. If you see soemthing like this, best to just Force Quit the browser by clicking on the Finder and selecting Force Quit from the menu.
    A alternative browser like Firefox will offer more protection.
    If you run your typical day to day operations on a Mac in what's called "Standard User", with a separate Admin User account, you'll need to update your Apple Menu > Software Update and your Apple Menu > System Preferences > Security > toggle the "Automatically Update Safe Downloads List" check box on/off about once a week.
    Standard User provides more security restrictions, but is also designed not to intrude into those who are less capable use of the computer.
    Third party plugins for your browser like Flash and Silverlight (used on Netflix) require a once a week check for updates.
    Use a free service like the Mozilla browser check here:
    https://www.mozilla.com/en-US/plugincheck/
    Always back up your personal data and never install programs that your not 100% you trust the source of.
    If you have any questions or suspicions, simply ask the opinions of the more senior users here on this forum.
    Good advice is not to install any anti-virus like Norton that demands the operating system remain a consistent state. Apple changes things all the time, which breaks software like Norton or OS X itself when a Software Update occurs.
    There are two great free 3D games, simply search for: Nexiuz Classic and Cube 2 Sauerbraten.
    If this information helped you, please click "Helpful" or "Solved" thank you.
    Good Luck and enjoy your Mac.

  • HOW TO use OCX controls with Java application

    hi
    Is it possible to use microsoft Ocx controls in java applications.

    Anything is possible. You might want to ask if it's a good idea, but look at some of the people who have asked before. It looks like there are products out there to help.
    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Aocx&col=javaforums&x=19&y=13

  • How to use a proxy with java applications?

    I have a nokia 6300 type s40v3
    hello,
    I would like to know if it is possible to use a proxy of any and how ? kind with java applications.
    thank you

    Well, it works well when, into my applet, i do somethig like this:
    URL url = new URL(host);
    URLConnection connexion = url.openConnection();My applet uses proxy setting from IE6 but only if i use Java 1.4.2_08.
    With IE6 and Java 1.5.04, it doesn't work (my applet doesn't use proxy settings)
    With Firefox and Java 1.5.04, it's ok
    Have you already seen a problem like this with Java 1.5.04 ?

  • Using Unix commands from Java Application

    Hi,
    I need to write an Java application such that could run Unix commands in a Unix box.
    For example, my Java app needs to log in the Unix box, change directory (cd), create new folder (mkdir), list the current files in folder (ls), mount a new device (mount), etc.
    Thank you very much.
    Hung

    you can use java.lang.Runtime.exec to invoke OS commands, but if you're going to be completing a sequence that complicated and need to manage error handleing well, it might be best to just invoke a native method or write a shell script that does all of that stuff and then invoke that script via Runtime.exec . The Runtime class has limitations when you start invoking processes that require user input (like 'su'). Search the forums for more extensive examples on how to use Runtime.

  • Using Flex components in Java application

    Hello,
    I was learning Flex previously, and I thought I remembered reading somewhere that I can use Flex UI components in a Java application. For instance, I could use Flex for the UI, and Java for the backend. I can't find though the documentation for this. I read this last summer. I don't mean using Flex as a UI in a browser and Java on the server, but a Java application that runs on the client with a Flex UI. I thought what I needed was the flex compiler api, but I looked at the flex compiler api documentation and it isn't what I want.
    Does anyone know what this "part" of Flex is that I am talking about, but can't remember?
    Thanks,
    Vance

    No, thanks, but that wasn't what I was thinking of.
    What I remember looking at was some library that allowed wrapping Flex UI componnts in Java Swing components. Then the Swing components could be used in the Java app. One main objective of my wrapping Flex in Java is to use flash.media.Video class to play flash video.

  • Should I use one (1) password for all my password requirements or vary them?

    Hello.  At present, I have many different passwords for various password requirements on my iMac.  Would it be possible to use only
    one strong password instead for ALL my needs?  Thanks for any input on this.

    Thanks very much everyone--sorry I can only give 'this helped me' points to the first couple of answers, doesn't look like I can give out any more.  Also I will put a 'this solved my question' on after I wait for a few more replies, if they should come in.
    I have been using MANY passwords, actually about 3 pages of them I keep written down, but thought I was being paranoid!  By the sounds of it I should keep up with what I am doing even though it is a bit cumbersome.
    There is a program called 1Password but the cost is a bit prohibitive and I have found in the past that I pay and download some of these programs and then find I cant understand completely how to use them, so for the time being I will continue with what I am doing, thanks to your input.
    I did read somewhere that a strong password would be a series of statements that meant something to you--for example 'Ilovetopasstimeonmymac' (I love to pass time on my mac).  I have also read that putting a # sign in with the characters and numbers has merit.
    Again thanks for your input, I appreciate your time and expertise.  Cheers.

  • HT204053 Should I use one Apple id for two Apple products

    I Bought iPad and already had iPhone ans used same I'd for both
    want to know if in future I deleted apps from my iPhone will it be deleted from my iPad also or visa versa

    Yes, yes, yes, always use ONLY ONE Apple ID.  Multiple IDs will cause multiple problems.
    Deleting from one device will not result in deletion from other devices.
    It's best to manage your devices from iTunes on a computer.  The iTunes will know which device is which but you might want to name them (in iTunes) for your own convenience.  You can then decide which music, apps, movies, etc. belong on which device(s).

  • What kind of screen protector should I use for my iPhone 6? Should I use one?

    I'm looking for a screen protector for my brand new baby. To my dismay, it's hard to find one that "fits" because of the curved edges. I have ocd, not to mention that what isn't covered by a screen protector are usually crucial areas. Can anyone recommend anything? I always use a screen protector because I'm super paranoid. I throw my phone in my purse a lot where I feel like it will come in contact with one too many things that can scratch it. I don't have a ton of money to spend, sorry I'm a college student. Also, I don't like glass protectors. If I need one I'm looking for a film. Thanks in advance from a new iPhone 6 parent!

    I have an iPhone 6 Plus but I thought I would try to help you out!! I use the Zagg Glass Invisible shield and I must say at first I loved it! It feels smooth and accepts input super well! It doesn't, however, go all the way to the edge of the screen which is weird, I agree. I've only had it for about a month now and its already chipped on the top edge by the speaker and its super annoying!! They will replace it for free but I'm not sure that I want another one that chipped so easily.
    I've heard great things about the iloome screen mate and it goes all the way to the edge of the screen and covers the curved part. I know you said you don't like glass protectors but those are the best and if you get a good one you pretty much only need to replace it once a year so you pay a bit more up front but it lasts a lot better than just film ones. Hope that helps!!!!!

  • What should i use for programming on Java (+)........

    I wanted to know whether i would better use JBuilder or Java SDK to compile my files??? Are there any advantages in using JBuilder???

    Dear RingRose,
    I started learning Java about 1 1/2 yers ago.
    I learned Java and JBuilder at the same time.
    It is kind of like learning weight training and football at the same
    time. They do complement each other but are also different.
    That is probably not much help but I can tell you that
    now that I have learned the basics of Java JBuilder IDE makes my life
    easier by quickly identifying where my errors are .
    They are numerous other reasons for using JBuilder but I am not an expert to list all the right reasons.
    Go for it !
    Stan

  • Can't use Swing in my java application

    I installed J2SE 5 Update 4 on my machine and was trying my hands on creating GUI using swing. I kept getting the error message: "Package javax,swing not found in import".
    I have the statement: import javax.swing.*; in my code so I don't what to do again.
    Thanks

    I think your best bet is to try uninstalling and installing Java again. Your problem could be something small, however you wull eaist less time to re-install everything, then to try searching for the problem.
    btw-What Development tool do you use? Just in case you may try to check whether it could be a problem of the ide (It should not be however), just check with another Ide, and see if the same happens. If yes, then follow my first advise, I think it would take you less time.

Maybe you are looking for

  • Error while uploading data to ztable from excel file

    Hi, I have a requirement where i have to upload data from excel file to ztable.I have used the fm 'ALSM_EXCEL_TO_INTERNAL_TABLE' for reading the excel file.After reading the excel file i have used INSERT zrb_hdr from table t_zrb_hdr for updating the

  • Updating to Mavericks Samsung Scx-4200 can no longer print and scan.

    In the Apple's driver list my Samsung Scx-4200 doesn't appear any more. Are there any other compatible drivers to make my printer working?

  • Can we execute the SQL query mannually

    hi, an error occurs when the drill down from higher to lower level as " Odbc driver returned an error (SQLExecDirectW). + Error Details Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError:

  • Print in format A3

    Hi everyone, actually I make an intership in a society and it's my last week. And durinf more than 4 weeks, I hardly tried to print a Jpanel in A3 format. So I explain more : my JPanel has 3 parts : one with textarea, JLabel, JTextfield... and the tw

  • Schema Privilages in Portal

    when i am trying to do new application i found this. The database schemas that you can choose are those in which you have been granted privileges by the Oracle Portal DBA. and the only seen accessed by user portal30 is scott. when i am opening the DB