473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XML databinding options?

Hello,

Was hoping to get some feeback on the following:

Current arch. is a swing client with corba services deployed on AIX.
Data tranferred over the wire is XML(string) instead of traditional
corba datatransfer objects. The corba interface just provides business
methods which take in a parameter of type java.lang.String(xml).
We are using a DOM based xml serializer/deserializer which does the
java<-->xml conversion both on client and server.This works except that
the marshall/unmarshall process is killing us (DOm coupled with
Reflection).

I have been exploring other options for the java xml
databinding(marshall & unmarshall). Is JAXB a good candidate for this
type of architecture? Are databinding frameworks normally used for
synchronous request-response type scenarios (e.g. a thick client(s) and
a server)
Essentially I need something that would work off a xml schema (the xsd
file would define the different payload formats for the req-response
scenario).

Currently xml is used internally btw the client - server, but in the
near future we forsee accepting and transmitting xml feeds to/from
external systems(where validating the instance docs would be
necessary).

Any pointers would be very helpful.

Peace!
Guru

Jan 25 '07 #1
2 1830
Hi,

ud********@yahoo.com writes:
Current arch. is a swing client with corba services deployed on AIX.
Data tranferred over the wire is XML(string) instead of traditional
corba datatransfer objects. The corba interface just provides business
methods which take in a parameter of type java.lang.String(xml).
We are using a DOM based xml serializer/deserializer which does the
java<-->xml conversion both on client and server.This works except that
the marshall/unmarshall process is killing us (DOm coupled with
Reflection).
I think data binding should work well in your case. The only thing
that you should look for is support for binary serialization (in
addition to XML) from the data binding framework. This way you can
send the XML data as OctetSeq instead of String since sending any
non-trivial XML fragments uncompressed over the wire is slow. Also
the binary encoding will speed up serialization/deserialization
quite a bit.

I don't know any Java data binding tools that support this, but
this is implemented in the C++ framework that I am working on
and people use the binary encoding for over-the-wire transfer
and compact storage all the time.
hth,
-boris
--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
Jan 25 '07 #2
On Jan 25, 3:55 am, udupi_m...@yahoo.com wrote:
Guru wrote:
I have been exploring other options for the java xml
databinding(marshall & unmarshall). Is JAXB a good candidate for this
type of architecture? Are databinding frameworks normally used for
synchronous request-response type scenarios (e.g. a thick client(s) and
a server)
Essentially I need something that would work off a xml schema (the xsd
file would define the different payload formats for the req-response
scenario).
Data binding will most likely speed up your code. We've experienced
speed
ups as much as 4 times in parsing XML into objects vs. parsing XML into
a
DOM tree. But where you really win is interrogating the data once it
is in
the objects/tree. For data binding at the 'assembly' level it is just
a
couple of pointer dereferences, whereas DOM is iterating through
elements
doing string matches, so the speed up can be enormous (100+ times
faster).

The schemas would obviously have to be fairly static (as they are
compiled
into the code) rather than downloaded on the fly and validated from
there.
I don't know if this is a problem for you.

Not all databinding tools are created equal either. I can't speak
explicitly about JAXB (although on paper it sounds good). The W3C has
been
defining a set of patterns for schema designers to use that will
hopefully
maximise the interoperability of data binding tools. You might want to
compare your schemas against them to get an idea of whether you are
pushing
the envelope or not. You can see their page at:

http://www.w3.org/2002/ws/databinding/

HTH,

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================

Jan 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Tim Jarvis | last post by:
Hi, I have an object that I am binding to a text box, this object exposes a boolean field, and I have implemented a format event handler and a parse event handler for the binding object, where I...
3
by: Peter Morris [Droopy Eyes Software] | last post by:
Hi all When I bind to multiple records I use a DataList. This allows the web-designer to add code like <%#DataBinder.Eval(Container.DataItem, "Name")%> Whenever I want to retrieve a single...
3
by: Kevin Swanson | last post by:
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method,...
2
by: Shane | last post by:
When I click on the DataBinding in the properties window a list of options open up called Advanced,Tag and Text. I would like to know what Tag and Text are set to? I hope to Bind a text box to a...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
1
by: udupi_mail | last post by:
Can anybody suggest possible databinding options which would bind(map) xml instance docs(which conforms to some pre-defined xsd) to a PRE-EXISTING java object (see below example). I looked at...
8
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the...
3
by: Jason Wolf | last post by:
I have added application settings for a few user options such as ShowFramerate. I have a toolstrip with menu checkable menu items and have bound their checked property to the relevant...
0
by: theleshie | last post by:
Hi, I am creating an application which dynamically creates forms depending on the information held in a dataset (which also includes the data the application itself uses). As part of dynamically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.