Yes, GlassFish comes with a implementation of persistence provider
called TopLink Essentials that can be used in a standalone Java SE
environment, i.e., without having to use any server environment. Take a
look at
https://glassfish.dev.java.net/javaee5/persistence/ which is the landing
page for persistence implementation.
You can download the standalone persistence implementation from
https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html
. Download V2_build_58g build which is the latest released build.
You can find a well documented sample application at
https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html.
Hope that helps. Feel to ask questions to this alias.
Thanks,
Sahoo
Jordan Thompson wrote:
> Hi,
> I have a simple stand-alone application that talks to a mysql
> database. I started to develop classes that represent objects stored
> in the database when I stumbled onto glassfish. I clicked on the
> "Entity Classes from Database" in Net Beans and found it does what
> Visual Basic and Visual C++ does for database object creation. The
> only problem is I don't need the extra overhead of the web server for
> my app.
>
> Can glassfish be used without a web server, and if so, could someone
> please point me to an example?
>
> If it cannot be, is there something out there that can make developing
> database objects easier?
>
> thanks
>