java - How to embed database derby in jar file -


i not want install database server on target machine. possible can ship jar file database embedded in it, , not worry installing database server separately?
created 1 application in netbeans using derby , working fine in pc when running on other machine giving me error connecting server localhost on port 1527 --> error says there no database running on port 1527. dont want client should take more efforts start db server , technical process. should runnable when start application derby db should start , when close db should close.
solution problem?
, 1 more question can use derby database large scale projects?

no, don't have install database server on target machine; derby works fine in embedded mode without separate server.

however, if want multiple client applications actively sharing same data in same database, you'll want use client-server mode, not embedded mode.

and yes can embed jar database program. if want know how, read documentation: http://db.apache.org/derby/docs/10.11/devguide/cdevdvlp24155.html

and yes can use derby large scale projects. doesn't come enterprise features (online backup, etc.) true enterprise scale commercial dbms comes with.

but, since sounds getting started derby, can suggest please start derby tutorials before try these advanced configurations? here link derby tutorials: http://db.apache.org/derby/docs/10.11/getstart/

it may not possible give advice without knowing lot more application you're trying build , overall architecture you're trying use.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -