Send object via web service, with a java.sql.Timestamp attribute
I want to expose a method in a web service, which returns a "Topic" object.
This Topic object, has a java.sql.Timestamp attribute inside.
I can compile the project and deploy it, but it doesn't start.
I read that there is a problem with java.sql.Timestamp class, because it doesn't have a default constructor, so it does not serialize to xml.
I tried to write an xmladapter, but with no luck at all.
If I remove the Timestamp attribute, the application runs fine (of course, loosing functionality).
I also tried to make this attribute Transient annotating it with @XmlTransient, but it does not work neither. :mad:
I'm using netbeans 6.7, jdk 1.6.14, jax 2.1
Help needed!! Thanks!