NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
mn1247
Joined: 04 Jan 2011 Posts: 64
|
Posted: Tue Feb 01, 2011 4:53 pm Post subject: How to convert to embedded database |
|
|
I'm building a Desktop Application and have worked thru the tutorial:
http://netbeans.org/kb/docs/java/gui-db.html
My understanding is that there must be a derby server running in order to run the application's jar file. However, I can avoid this requirement by having an embedded derby database.
Is this true? If so, how do I convert the application so that the database is embedded?
Thanks
Eric
|
|
| Back to top |
|
 |
pelz
Joined: 07 Mar 2010 Posts: 162 Location: Magyarország
|
|
| Back to top |
|
 |
mn1247
Joined: 04 Jan 2011 Posts: 64
|
Posted: Wed Feb 02, 2011 11:54 am Post subject: |
|
|
I must say, the sarcasm factor runs high on this forum.
I'll take this to mean, "Yes, Eric, an embedded database will avoid the need for a server. Here's a link for converting"
I realize this is all old-news to many of you, but for someone who is just getting started - for whom derby is a type of hat and embedded is what becomes of your car on a muddy road - a simple answer that points in the right direction can be very helpful.
e
|
|
| Back to top |
|
 |
pelz
Joined: 07 Mar 2010 Posts: 162 Location: Magyarország
|
Posted: Thu Feb 03, 2011 2:50 am Post subject: |
|
|
I think, if you want to change to other database, you must change the connection string only in the in the persistence.xml in the package of "META-INF". See the picture!
| Description: |
|
| Filesize: |
131.28 KB |
| Viewed: |
2178 Time(s) |

|
|
|
| Back to top |
|
 |
mdeggers
Joined: 28 Jan 2009 Posts: 208
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|