The Artima Developer Community
Sponsored Link

Java Buzz Forum
Tighter Integration of JAXB & JAX-RPC

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Adam Sherman

Posts: 20
Nickname: carbon60
Registered: Nov, 2003

Adam Sherman is a Principal of Tritus CG.
Tighter Integration of JAXB & JAX-RPC Posted: Nov 2, 2003 9:42 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Adam Sherman.
Original Post: Tighter Integration of JAXB & JAX-RPC
Feed Title: Adam Sherman's Musings
Feed URL: http://www.contegix.com/blog/dev/?flavor=rss2
Feed Description: Adam Sherman on Java, XML and Other
Latest Java Buzz Posts
Latest Java Buzz Posts by Adam Sherman
Latest Posts From Adam Sherman's Musings

Advertisement

Working with the XML specifications for Java has always been a pleasure for me. Yes, some criticise them fiercely, however I feel they are mostly adequate for the task.

I recently encountered a problem with [WWW]JAXB: the specification requires two behaviours which I find to cause integration hassles:

  1. You must use ObjectFactory to get new beans,
  2. ObjectFactory creates beans with null references.

Both issues crop up when using [WWW]JAXB with a container such as [WWW]PicoContainer, [WWW]Spring or anything else that expects to be able to instantiate empty beans without special knowledge.

The second issue becomes a difficulty when using JAXB beans with "dot notation". For example, you cannot simply create an empty bean and then try and set a property like car.engine.timing since the reference to engine is null until you create an Engine object and assign it. Would it be more appropriate to recursively populate the bean?

George Datuashvili mentioned on the JAXB [WWW]mailing list:

    "In future JAX-RPC 2.0 will be based on JAXB 2.0, and since JAX-RPC already requires EJB bindings, your issue will have to be resolved by JAXB or JAX-RPC working groups."

That thread also talks about using java.lang.Proxy, which I find very interesting.

Read: Tighter Integration of JAXB & JAX-RPC

Topic: London Java Meetup - tonight Previous Topic   Next Topic Topic: RSSReaper

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use