Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How should a List of MTOM DataHandler images be represented with jaxb annotations

 
Chris Riffle
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wanting to leverage MTOM in writing a service with 'java code first' jaxb annotations to deploy to jaxws jbosswsnative on jboss. I understand putting annotations on a 'Single' DataHandler parameter or member variabe as in




I'm hoping to have other operations that use ArrayList as input and output but haven't found examples online for recommendations on how to use jaxb annotations wtih DataHandler(s?) to accomplish this. Would it be advised to put a DataHandler inside an ArrayList as in:




To annotate a pojo to be used as a return type for a service operation -- could I use an ArrayList to store an ArrayList of images:

Thank you
 
H Paul
Ranch Hand
Posts: 471
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Doc:

This annotation is used in conjunction with datatypes such as Image or Source that are bound to base64-encoded binary in XML.

1. For me: I define




Some where I use



2. I also used @MTOM feature given JAX-WS 2.x has it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic