[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [sca-j] ISSUE 25: Detailed proposal for non-conversational callbacks
I realized I made two omissions and one mistake in my original post...The JAXB Order and OrderResponse types should have a no-args constructor in addition to the arguments-based constructors. Also, I mistakenly set the constructor of OrderResponse to Order(...), which was a copy-and-paste error. Jim On Aug 8, 2008, at 2:22 PM, Jim Marino wrote: > <snip/> > > @ XmlRootElement // assuming JAXB > public class Order implements Serializable { > public Order(String type, int qty, String id) { > // .... > } > > String getType() { > // ... > } > > void setType(String type) { > // ... > } > > int getQuantity() { > // ... > } > > void setQuantity(int qty) { > //... > } > > String getOrderId() { > // ... > } > > void setOrderId(String id) { > // ... > } > > } > > @XmlRootElement // assuming JAXB > public class OrderResponse implements Serializable { > public Order(int available, String id) { > // .... > } > > int getAvailable() { > // ... > } > > void setAvailable(int qty) { > //... > } > > String getOrderId() { > // ... > } > > void setOrderId(String id) { > // ... > } > } >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]