Type: New Feature
Affects Version/s: None
Fix Version/s: None
A very useful feature included in Java EE 7 is the default data source. It is especially useful for demo applications and beginners. However, in order for the default database to work in GlassFish, you need to start Derby separately from the domain. Via asadmin, it looks like this:
The problem is that it is easy for a beginner to miss this. It is also painful to deal with from tools like Apache Cargo (very useful for demos and smallish standalone applications a la the "containerless" buzzword) which call start-domain under the hood but not start-database.
I think it would significantly improve usability given the default database feature to simply start Derby with start-domain.
Sahoo (firstname.lastname@example.org) made this comment on the matter:
"I have always felt that GlassFish should either start Derby as part of start-domain (just like WLS) or use embedded Derby to make life of developers easier".
Do let me know if anything needs to be explained further - I am happy to help.
Please note that these are purely my personal views and certainly not of Oracle's as a company.