Correct me if I am wrong. I don't see a J2EE spec violation for JAX-RPC 
accepted value types if my WSStatus class looks like this.

  | public class WSStatus extends Status {
  |     public WSStatus() {}
  |     //...no other methods
  | }
  | 
where Status looks like

  | public class Status implements Serializable {
  |     public static final int OK = 0;
  |     public static final int SYSTEMERR = -1;
  |     //and similar other constants
  | 
  |     private int type;
  |     private String fieldName;
  |     private String fieldValue;
  | 
  |     public Status() {}
  |     //...other constructors and accessor methods for the private fields
  | }
  | 
I thought such value classes can implement any interface except Remote. Funny 
enough, when I redeclared the WSStatus as

  | public class WSStatus {
  |     private int type;
  |     private String fieldName;
  |     private String fieldValue;
  | 
  |     public WSStatus() {}
  |     //...other constructors and accessor methods for the private fields
  | }
  | 
and its RPC holder class as I mentioned before, it started working fine. Was I 
missing something?

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891767#3891767

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891767


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to