Results 1 to 1 of 1
- 08-16-2009, 12:40 AM #1Member
- Join Date
- Aug 2009
- Rep Power
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!
- By dream_ in forum NetworkingReplies: 1Last Post: 04-16-2009, 07:56 AM
- By Nicholas Jordan in forum Advanced JavaReplies: 0Last Post: 01-05-2009, 08:03 AM
- By nn12 in forum New To JavaReplies: 2Last Post: 12-08-2008, 04:42 PM
- By grinsalot in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-04-2008, 05:54 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 02-10-2008, 12:37 PM