Niceties with build41

GlassFish build 41 is out.

Deadline for FCS is approaching. So, what are some of the goodies in this build?

There are many and I have a hard time categorizing them.

Well, the most important one is Security Manager is turned OFF by default on GlassFish Server. Although this was in b40, I think I need to highlight it. It seems all the frameworks and popular applications will now run out of the box (at least not fail with the infamous AccessControlException).

A significant change has gone in into setting up the domain/server itself. When you run ant -f setup.xml after exploding the glassfish-image.jar, you will see the following: This means that since you are a developer (well, primarily), you will not be bothered to enter the routine admin user and password for the asadmin commands!

What do you do next?

Start the Domain/Server:

glassfish/bin/asadmin start-domain

This is what you see ...

This is a long time request serviced. You now know your whereabouts. You are going to love this.

There is talk of Java EE 5 Persistence everywhere. To try out your persistence units, what you need to start is the default database called the "Java DB" that is bundled in GlassFish.

When you do "asadmin start-database" (Although a second time -- this is a bug), you see the coordinates of the bundled database! There is no need to go hunt for what version of JDBC driver, JDBC specification etc. is supported. It is \*right\* there. Now, you deploy your applications you would like to see how your JVM is behaving. But your affinities are already decided. You don't want a GUI. No JConsole (great tool, but I want to show you the power of asadmin). So, all you do is asadmin generate-jvm-report :

First, you start with all the system properties that the JRE has, sorted lexically : Then, on to memory, using asadmin generate-jvm-report --type=memory and more memory But you are interested in how your threads are doing: asadmin generate-jvm-report --type=thread:

and

Comments:

Post a Comment:
Comments are closed for this entry.
About

Welcome to my blog where mostly my work related thoughts are expressed.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today