3 Replies Latest reply on Oct 19, 2004 2:25 PM by Thomas Diesler

    Customized Date serialization

    emcgreal Newbie

      Dates are serialized as pure UTC dates in JBoss.Net
      I want to be able to send the date with the timezone
      yyyy-MM-dd'T'HH:mm:ss.SSS Z (Z should produce something like -01:00)
      What I've tried to do is hook up a custom serializer in the web-service.xml - but although JBoss reads the type mapping it doesn't seem to use it. Here is the type mapping I added

      <typeMapping xmlns:ns= "http://www.w3.org/2001/XMLSchema" qname="ns:dateTime"
      type= "java:java.util.Calendar"
      serializer= "com.imilia.bookit.utils.DateTimeSerializerFactory"
      deserializer= "org.apache.axis.encoding.ser.CalendarDeserializerFactory"/>

      Any help appreciated!