Whatcha trying to do exactly?  We've pulled WDDX data OUT of a database and 
deserialized it, using the .jars that (I believe) come with JRun -- this 
seemed to work pretty well:

import org.xml.sax.InputSource; // located in parser.jar in /program 
files/allaire/jrun/lib/ext
import com.allaire.wddx.WddxDeserializer;  // located in wddx.jar in 
/program files/allaire/jrun/lib
import com.allaire.wddx.WddxSerializer; // (same as above)

..

String wddxPacket = result_set.getString("wddxpacket");
// Create an input source (org.xml.sax.InputSource) bound to the packet
InputSource source = new InputSource(new StringReader(wddxPacket));
// Create a WDDX deserialiser (com.allaire.wddx.WddxDeserializer)
WddxDeserializer deserializer = new 
WddxDeserializer("com.sun.xml.parser.Parser");
// Deserialize the WDDX packet
Hashtable wddxData = (Hashtable)deserializer.deserialize(source);

HTH!

--maia
----------------------------
Maia Hansen
Senior Developer
Mindseye, Inc.
[EMAIL PROTECTED]

At 10:48 PM 11/12/2001 +0100, Christoph Schmitz wrote:
>Hi,
>
>has anyone used a WDDX implementation with Java yet? I was wondering where I
>could get more information on this. openWDDX.org is not very much of help
>(and doesn't seem up to date, by the way).
>
>Thanks,
>
>Chris
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to