Solved

use Embedded MySQL Server Library with Java

Posted on 2004-04-04
5
337 Views
Last Modified: 2012-06-22
Hi,

I want to make a build a small standlone application in java using a (simple) database.
I want to embed the database in my application.
Mysql has the Embedded MySQL Server Library, but is accessible only from C clients.
Does anybody know a workaround, or any other solution for that matter?

thanks,

Scriptnov


0
Comment
Question by:scriptnov
  • 2
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 10751995
0
 
LVL 16

Assisted Solution

by:warturtle
warturtle earned 125 total points
ID: 10752044
Hi,

You could use JUDF(http://software.tangent.org/download/judf-0.2.tar.gz)
 to write some User Defined Function in Java for MySQL, then you can call these Java functions from the SQL executed with the MySQL environment.

This might be helpful in situations, where you can call Java functions from within a database like mySQL. You could essentially write stored procedures to call those java functions from within SQL queries.

This might be the only workaround to using C Api's.

Regards,

Warturtle
0
 

Author Comment

by:scriptnov
ID: 10752282
Thank you both for your answers.

I just came across Hypersonic SQL while 'googling' for java based databases.
I guess it's the best alternative. But I will try out Warturtle's suggestion to make sure it really is.

So if you don't mind I will splitt the points between you.

Regards,

Scriptnov
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10752317
8-)
0
 
LVL 16

Expert Comment

by:warturtle
ID: 10759393
;-)

Thanks,

Warturtle
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 86
printing a file in reverse order is easy in recursion rather than in iteration 3 51
Java DateChooser? 3 29
factorial example 4 34
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now