Monday, 28 December 2009

Preparing for SCDJWS part 10: JAX-WS

Share
Today I will write about points 4.4, 4.5, 4.6, and 4.7 of SCDJWS exam objectives:
  • Describe and compare JAX-WS development approaches.
  • Describe the features of JAX-WS including the usage of Java Annotations.
  • Describe the architecture of JAX-WS including the Tools SPI that define the contract between JAX-WS tools and Java EE.
  • Describe creating a Web Service using JAX-WS.
Again, for those of you who are impatient:

According to Blogger there are 14 posts in my blog which are tagged with jax-ws :)

For a complete list click here: jax-ws.

Monday, 21 December 2009

Preparing for SCDJWS part 9: JAX-WS

Share
Section 4 of exam objectives is completely dedicated to JAX-WS.

Today I will write about first three points of this section:
  • Explain JAX-WS technology for building Web Services and client that communicate using XML.
  • Given a set of requirements for a Web service, such as transactional needs, and security requirements, design and develop Web Service applications that use JAX-WS technology.
  • Describe the Integrated Stack (I-Stack) which consist of JAX-WS, JAXB, StAX, SAAJ.
For those of you who are impatient:

According to Blogger there are 13 posts in my blog which are tagged with jax-ws :)

For a complete list click here: jax-ws.

And here are the first three points of Section 4.

Thursday, 17 December 2009

First steps with Apache Camel

Share
As you know I'm evaluating ServiceMix.

In my last post about ServiceMix I wrote that I would use Apache Camel rule-based routing and mediation engine.

But before I started with Apache Camel and ServiceMix I had decided to play a little bit with Apache Camel first.

Tuesday, 15 December 2009

Fixing jUDDI 0.9rc4 and Scout 1.2 bugs

Share
Yesterday I started playing around with UDDI and JAXR as a part of my SCDJWS exam preparations.

I'm using Apache jUDDI shipped with my favourite Java EE application server - Apache Geronimo. As a JAXR implementation I'm using Apache Scout.

When I tried to run my first save organisation operation I kept getting JAXB unmarshalling exception:
javax.xml.registry.JAXRException: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"authToken"). Expected elements are <{urn:uddi-org:api_v2}accessPoint>,<{urn:uddi-org:api_v2}add_publisherAssertions>,<{urn:uddi-org:api_v2}address>,......,<{urn:uddi-org:api_v2}uploadRegister>,<{urn:uddi-org:api_v2}validate_values>
at org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.getAuthToken(BusinessLifeCycleManagerImpl.java:755)
Here is how I fixed it!

Tuesday, 8 December 2009

Nuntius 0.5 released!

Share
Nuntius is a system developed as a part of my PhD Thesis. Nuntius is designed to be a lightweight and efficient WS-BPEL broker. Its goal is to facilitate complex management of business processes and to provide means of quality and performance measurement of the aforesaid.

Today I have released Nuntius 0.5! The effort of delivering Nuntius 0.5 is comparable to the effort of delivering all previous versions. I refactored everything there was to refactor.

Monday, 7 December 2009

Transforming more than one XML documents with one XSLT

Share
The Java XSLT Transformer API is pretty clear that there is one input (Source) and one output (Result) of XSLT transformation:



Source stylesheet = ...;
Source in = ...;
Result out = ...;

TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer transformer = xformFactory.newTransformer(stylesheet);
transformer.transform(in, out);
So, is it possible to transform more than one XML documents with one XSLT?

Of course, it is possible! And today I will show you how to do this.

Friday, 4 December 2009

Moving data between different DB2 platforms

Share
There is a pretty good article published on IBM's developerWorks about moving DB2 data accross different platforms: Using DB2 utilities to clone databases across different platforms.

But it has one minus, it talks only about happy paths. Life is not that easy :)

Today I will show you 3 scenarios which require some additional (but still very little) work.

Tuesday, 1 December 2009

ServiceMix - Problems with embedded tests

Share
As I wrote in my previous post about ServiceMix my next step would be to create embedded test for my simple Web Service.

But before I show you how to do this I will have to say that it's not that easy to execute unit test using embedded ServiceMix...