Tuesday Feb 14, 2006

Useful blog on Pluto

If you are trying to develop portlets on GlassFish using Pluto, The following blog will be useful.This blog covers more information than Apache documentation.

Wednesday Feb 08, 2006

@OneWay or @Oneway?

I was coding an oneway web service method. I looked for documentation about this annotation.I found the following on java.sun.com and another list on java.net.However I could not import javax.jws.OneWay. So Looks like java.jws.Oneway (@Oneway) is the right annotation. Hopefully these links will be fixed soon.

Tuesday Feb 07, 2006

Sample Portlet development in Glassfish

I copied the pluto-1.0.1.jar and portlet-api-1.0.jar from Apache Pluto 1.1 distribution into $GLASSFISH_HOME/lib. Please note that these jar files are in pluto-1.0.1/shared/lib directory. Started the GlassFish server. I downloaded the Sample Portlet and copied to $GLASSFISH_HOME/domains/domain1/autodeploy.

Verified that deployment went through fine. The server.log had the following output:

[#|2006-02-06T23:30:30.421-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=Timer-4;|Finished loading persistence units for application: /export/satish/install/glassfish/domains/domain1/applications/j2ee-modules/SamplePortlet|#] [#|2006-02-06T23:30:30.528-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=Timer-4;success;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#] [#|2006-02-06T23:30:30.531-0800|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Timer-4;|[AutoDeploy] Successfully autodeployed : /export/satish/install/glassfish/domains/domain1/autodeploy/SamplePortlet.war.|#] Soon I will use this Portlet in an application and verify the portlet implementation.

Monday Jan 30, 2006

Samples in GlassFish

By default samples are not available in GlassFish builds. The following Build instructions talk about checking out the source and building the server from scratch. Once the build is complete, check out the 'packager'.

% cd workspace % cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs checkout packager % cd packager % maven bootstrap You should now see samples in glassfish.home.

Friday Jan 27, 2006

Monitoring web services in Glassfish

JAX WS 2.0 and Annotations (JSR 181) makes developing Web Services easy. Now Glassfish takes it further by providing Monitoring functionality for Web Services. TechTip has been posted on java.sun.com where this is discussed with a sample application.