Java Web Services and XML
With JAX-WS 2.2.2 RI /Metro 2.1, Web Services deployment using RI deployment model has been made even simpler by making the web services configuration in web.xml optional.
As you know, JAX-WS RI supports two deployment models to publish web services, one using JSR-109 deployment model and the other JAX-WS RI specific deployment model. In JSR-109 deployment model, a web service can be...
on Aug 13, 2010
Content available at: http://blogs.sun.com/arungupta/entry/totd_143_retrieve_twitter_user
on Aug 4, 2010
Byron Nevins has posted a very nice blog on offline configuration for Glassfish v3.1 here.
The following blog will show how to deploy a webservices application to a Glassfish 3.1 cluster . You can do additional tasks using the Glassfish Administration Console.
For this blog I tried with the latest promoted b13 of Glassfish 3.1 available here.
1.Install Glassfish b13 on both machines (jwsdp...
on Jul 30, 2010
In a recent message to the GData Python Client Library Contributors mailing list, Joe Gregorio outlines a new discovery capability for GData APIs. E.g. here's a document that describes the Buzz API. Look familiar ? To me it looks very much like a JSON version of WADL.
Joe goes on to describe the benefits of this approach and notes that it "allows very lightweight client libraries" and...
on Jul 16, 2010
JAX-WS 2.2 is integrated into JDK 7 b100.
<pre>$ ~/jdk1.7.0/bin/java -versionjava version "1.7.0-ea"Java(TM) SE Runtime Environment (build 1.7.0-ea-b100)Java HotSpot(TM) 64-Bit Server VM (build 19.0-b03, mixed mode)
$ ~/jdk1.7.0/bin/wsimport -version
JAX-WS RI 2.2 in JDK 7
I tested with few samples, and they all worked fine.
on Jul 12, 2010
Created a new jax-ws-commons project at the familiar jax-ws-commons. JAX-WS 2.2 has defined HTTP SPI that allows to plugin a http transport with any JAX-WS runtime. This project implements the HTTP SPI using Grizzly HTTP implementation. That means ANY JAX-WS 2.2 runtime can be used with this grizzly transport portably(zero dependency on RI code). The following example shows on how...
on Jul 9, 2010
This is a new series of blogs which will cover what is new in JavaEE 6 with respect to WebServices
One of the new features of JavaEE 6 is ability to package ejb in a war. The EJB specification has always required that enterprise beans
be packaged in an enterprise module called an ejb-jar file.
Since it is common for Java EE web applications to use enterprise beans, this packaging requirement can...
on Jun 25, 2010
1) Basic understanding about web service
2) Knowledge of base 64 encoding
3) Knowledge of MTOM
Refer resource section for information on these topics.
Web service has been evolved from simple request-response mechanism to object oriented style support...
on Jun 11, 2010
I decided to write down the answer for some questions which my book's readers email me or ask me via twitter in my weblog so everyone can benefit from the answers. Here is the answer to the first question which involves custom security realms.
GlassFish supports 5 types of security realms out of the box which are sd follow:
File Realm: Usefull for development and testing purposes. GlassFish...
on May 18, 2010
Last week saw the release of three new WADL frameworks:
Ruby client for the Web Application Description Language
Earlier I had committed, but failed to blog about, changes to wadl2java that enable the latest version to read both the current and prior versions of WADL files. This is driven by an XSLT stylesheet filter that updates the previous version to the latest...
on May 10, 2010
I wanted to describe an interesting problem I recently faced that involved the most excellent JAX-RS specification and its Jersey implementation. The quick overview is that we wanted the output of our JAX-RS resource classes to be client-agnostic, but we also wanted the ability to insert a decorator of sorts in between the objects we were returning and the normal JAX-RS serialization/...
on Apr 28, 2010
This week is my last at Oracle, next week I'll be starting a new job with Mitre.
I started looking around for a "Plan B" prior to the Sun acquisition closing in February, mainly due to uncertainty about whether I'd be offerred a position with Oracle. A friend introduced me to an excellent opportunity at Mitre and, after a couple of rounds of interviews and a lot of thought, Plan B...
on Apr 27, 2010
Content located at: http://blogs.sun.com/arungupta/entry/screencast_31_java_ee_6
on Aug 2, 2010
JAX-WS RI team is pleased to announce the release of 2.2.1 version. It is also included in Metro 2.0.1 and GlassFish 3.0.1. It is a minor release with few bug fixes.
Some of the changes in 2.2.1 are:
wsgen can inline schemas in a generated wsdl using a switch
Schema Validation support is enhanced
The bits are also in JAX-WS Maven repository
Continue sending your feedback to the forum...
on Jun 21, 2010
Content available at: http://blogs.sun.com/arungupta/entry/java_ee_6_glassfish_31
on Jul 20, 2010
I am happy to announce the release of Apache Pivot 1.5! Apache Pivot (http://pivot.apache.org) is a platform for building rich Internet applications (RIAs) in Java. It combines the enhanced productivity and usability features of a modern RIA toolkit with the robustness of the industry-standard Java platform.
Pivot 1.5 includes a number of improvements intended to help improve the overall...
on Jun 8, 2010
OpenESB project initiated by Sun Microsystems to develop and deliver a high performance, and feature rich implementation of Java Business Integration (JBI) under an open source friendly license. Basic task of JBI implementations is connecting different type of resources and applications together in a standard and none intrusive way. Basic building blocks of an ESB includes the Bus which is a...
on May 24, 2010
Java EE Security refcard is available for download. This refcard covers Java EE 6 security and discuss how each application server supports the specs. The refcard covers authentication, authorization, and transport security in Web Application, EJB application and web services by introducing the concept and the related annotations and deployment descriptors which help us realize the concept....
on May 17, 2010
Please use the following articles while I am updating this entry
How to have your Own CA and configure Glassfish and your clients for mutual authentication?
How to have your Own CA and configure Glassfish and your clients for mutual authentication?, Part II
Please post any comment or question here so we can have one main reference for this.
var gaJsHost = (("https:" == document.location....
on May 13, 2010
Java User Groups
Last week's kickoff of FESI's research program went very well. There are a number of folks (>500) who are now following this blog on Java.net, and a number who have gotten involved. While we wait for more folks, we'll be researching new technologies, the first being NOSQL databases.
If the kind of topics we're research interests you, please feel free to join the project;...
on May 5, 2010