Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple database web application with Eclipse and Glassfish

I just started to learning Eclipse with Glassfish server. I was looking around how can I make simple database web application, but can't figure out yet. I downloaded the Glassfish bundle for Eclipse. I need to create simple database ( perhaps one table ), and connect the database with simple web application. How to do that in Eclipse , can you give me some step by step link how can I do this Thank you

like image 804
user152508 Avatar asked Jan 29 '10 13:01

user152508


3 Answers

For the database you could do worse than use JavaDb, which comes as standard with Java 6. Check out the JDBC tutorial for details on interfacing Java to a database.

like image 117
Brian Agnew Avatar answered Jan 04 '23 11:01

Brian Agnew


If you decide to use Apache Derby as your database, a version of it called JavaDB comes with jee6 + Glassfish bundle, you can read this tutorial about how to connect to it and create tables from within Eclipse. You need to download the Apache Derby plugin.

This has nothing to do with Glassfish, however the example shows you how to connect to it from a normal Java desktop application using JDBC.

like image 31
Stanley kelly Avatar answered Jan 04 '23 12:01

Stanley kelly


This Tip Of The Day seems to have the info you are looking for....

like image 31
vkraemer Avatar answered Jan 04 '23 10:01

vkraemer