Thursday Feb 05, 2009

More Java EE 6 Specs - JSP


The JCP process defines two specification processes. The changes to JSP 2.1 for Java EE 6 are done using the Maintenance process in the JSR 245 EG led by Kin-Man.

There are two sets of changes: to the EL (Kin-Man's Overview, formal ChangeList), and JSP proper (Overview, ChangeList).

Both sets of changes are small; probably the biggest change is the addition of the ability to invoke methods in EL expressions. The review ends on March 3rd, please send feedback to Kin-Man.

Saturday Jul 12, 2008

Do You Want it? - Generic HTML Designer in NetBeans


Winston is asking for feedback on his proposal for a Generic Web Page Designer for NetBeans. The basic principle is to embed XULRunner (Wikipedia, Home, MozillaWiki, Tutorial, Use in Eclipse) into NetBeans.

The notion seems reasonable but this is not my area, so, if you can provide feedback, please check out Winston's post. The actual NetBeans proposal is WebPageDesigner, the proposal for the prerequired embedding is EmbeddebBrowser.

Sunday Jun 22, 2008

New WebLogic to GlassFish Migration Sample: JSP SimpleTag


A new example from Sekhar: Migrating WebLogic's JSP SimpleTag example to GlassFish. Like previous examples in the Switch! series, this one includes full commentary and sources. Sekhar also shows how to switch from Pointbase to MySQL Server and covers deployment.

Picture is that of the Rabbit-Proof Fence in Australia. Is an open-source, enterprise-ready, free RTU Server like the the GlassFish Server an Invasive Species?

Tuesday May 20, 2008

WebLogic to GlassFish Migration Example - JSP TagHandler

One more example from Sekhar in the Switch series. This one is from WebLogic: Converting the JSP TagHandler example.

Print of Roma people Travelling

The example covers:

• WLS Split Directory → GF Exploded Directory
• weblogic.xml → sun-web.xml Mapping
• Virtual Directory Mapping
• Relative Path in URL

Thursday Nov 15, 2007

Where did my Servlets Go? JSP, JSR199 and GlassFish

Image of Waldo

One of the benefits of using JSR-199 in GlassFish is Very Fast JSP compilation: the generated Servlets can be passed directly, in-memory, to javac. But if you really want to see what's going on you have a problem, as shown by this long mail thread: there is no Servlet code to see because writing it to disk would defeat most of the benefits of JSR-199!

The solution is easy: ask GlassFish to write the Servlet code go to disk using the keepgenerated parameter. Check out Byron's note for the details.

Wednesday Oct 31, 2007

JSP Project Now Live at GlassFish

Radio Receiver Icon

News from Rajiv, the JSP project at GlassFish:

• Announcement: JSP Project Live.
• Earlier: Pre-Announcement.
• Some users: Jetty, SJS WS 7.0.

We hope to give you news on additional adoption in the near future.

Thursday Aug 09, 2007

PreAnnouncing new GlassFish Subproject for JSP

JSP Duke

The GlassFish community is composed of many projects; some already existed when we started GlassFish, like JSF, JAXB and JAX-WS (nee JAX-RPC). Others came later but were separate from the beginning, like Jersey, and others spawned from GlassFish like Grizzly.

Separate projects encourate reuse and contributions but are more work and can create confusion so we wait before creating them. We have received several requests for a JSP project so we are going to create one. Please let me know (or just post here) if you are interested in this project.

BTW, I found the JSP Duke in the April, 2000 JSP 1.1_a errata. Two other early serving dukes are here and here

Saturday Jul 14, 2007

GlassFish Memory Usage -- and JDK 6

Close Up on Core Memory

There is a good thread on memory use on GlassFish at the USERS alias. In the use-case described, the main issue was JSP compilation. Memory consumption is much lower (and compilation is also much faster) in GlassFish v2 using JDK 6 because JSP compilation is done in-memory, using JSR-199 and without forking.

Forking can also be avoided in GF v1 and in earlier JDKs with some caveats. Check the mail thread for details.

Picture is a close up on Core Memory. Ah... the good? old days of core and Punched Cards! Have you ever dropped your deck of cards and had to reorder them? That is what those extra columns in the punched card were for :-)...

Wednesday Jun 20, 2007

SJS Web Server 7.0 Update 1 is out - Focus on Java

Sun Web Server 7.0 Update 1

Sun Java System Web Server 7.0 update 1 is now available for download (the preview version had been available for a few months). New in this release is:

• Performance and stability improvements
• Out-of-box Java support for Servlets 2.5, JSP 2.1, JSF 1.2, and more
• Support for Java SE 5.0 and 6
• Support for NetBeans IDE 5.5.1
• Administration interface support for FastCGI

You'll notice that the main features are Java-related. Specifically, the product is now at the Java EE 5 specification level which means that any web application that runs on GlassFish now also runs on Sun's Web Server 7.0 Update 1 (the implementation is actually taken straight from GlassFish). On the more technical side of things, you can use dependency injection in the web tier.

When released in early 2007, Web Server 7.0 enjoyed an excellent review and has been powering a whole new set of demanding web sites (including the one serving you this content). Any question, see the dedicated forum.

Wednesday Feb 28, 2007

jMaki Day presentations available

jMaki proje ct

Last week several of us participated in the very first jMaki Day. We wanted to provide training material including presentations, labs and demos to get folks started. The talks included a session on Web 2.0 technologies, Introduction to jMaki, Introductiion to Phobos, Tools, and State of the Union for jMaki.

This set of talks were presented to Sun internal folks mostly because we wanted to keep the number of attendees small and also have the ability to get specific feedack. All material has been made available on the jMaki website here. See my blog and Arun's blog for more details on jMaki day.

Thursday Feb 15, 2007

jMaki plugin for Eclipse now available

Eclipse logo

Ludo spent the last couple of weeks working on the much asked for Eclipse plugin for jMaki. The plugin is now available and also supports the latest release (v.8.3.1) of jMaki. Ludo also provided some documentation on how to get started using the new Eclipse plugin. Enjoy.

Tuesday Jan 09, 2007

jMaki examples

jMaki home

If learning how to write Ajax enabled web apps is one of your New Year's resolutions then check out the following blogs.

My blog, Building web 2.0 apps with jMaki uses one of the layout templates, glue code to tie widgets together and the injector code to load pages within a div tag to create a web application. The glue code ties the Yahoo Geocoder and Google Maps widgets. The injector is used to load the page containing those widgets in the div tag genereated by layout template and navigation is done using the Dojo fisheye widget.

Jennifer published two blogs at roughly the same time. Fun with jMaki: Using the Yahoo Geocoder service with the Dojo Combobox also uses the Yahoo Geocoder but she used the Yahoo Map and a combobox to select the city to map. More Fun with jMaki: Getting Data From a Bean shows how to get data from a bean using an EL experssion to a widget (in this case ComboBox). The data is converted to JSON format using the org.json libary.

Finally, checkout the new project jmaki-charting. This friend of jMaki project provides a charting widget which can be added to the jMaki framework. It's open source, freely available and it supports Java, PHP and Phobos.

Thursday Dec 28, 2006

jMaki beta 2 release available

jMaki seal

jMaki beta 2 release is now available for download. Highlights of this release include a new widget model, improvements to the dynamic container which loads pages on demand and of course, bug fixes. Check out my blog for more details.

jMaki is a framework that provides a lightweight model for building Ajax enabled web applications using standards-based technologies. It allows you to use widgets from popular toolkits and includes support for PHP, JSP, JSF and Phobos.

Monday Nov 13, 2006

New jMaki release supports Mochikit, Dojo and NetBeans plugin


jMaki is a framework that provides a lightweight model for reusable Ajax-enabled widgets. The lastest (.5.1) release of jMaki includes:

  • Most significant in this release are the jMaki Layouts which are available in the Netbeans Plugin with templates.
  • Improvements to the widget.json configuration files to provide better property editing support in Netbeans.
  • Mochikit 1.3.4 support
  • Dojo is now updated to the shipping .4
  • Yahoo YUI Widgets has been updated to .11.4
  • Value Change Listner Support was add to the JSF component view of jMaki
  • Many updates to the current widget set

At the same time, the jMaki NetBeans plugin was updated to include a new stylized JSP wizard. See a previous Aquarium entry for more info.

Monday Nov 06, 2006

GlassFish and Geronimo

Geronimo Logo

One of the benefits of using an OpenSource license is to simplify adoption by other F/OSS groups, and, slowly we are getting more customers.

In the case of Geronimo their Report Card shows a plan to use JAXB 2.0 (or 2.1?). Other modules are listed as multiple options, including JSF 1.2, TopLink Essentials, and JSP 2.1 (used by Jetty). The table is probably not up-to-date; for example, check this Thread on JSTL 1.2.