You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Clough, Samuel (USPC.PRG.Atlanta)" <Sa...@princetonrg.com> on 2007/07/17 16:38:31 UTC

RE: How to enable mtom on the embedded server?

We're trying to convert some services off of XFire and onto CXF.  On
XFire, the following would automatically enable MTOM for any types in a
service that returned a byte array:
 
Service service = serviceFactory.create(FeedbackFilesService.class);
service.setInvoker(new BeanInvoker(new FeedbackFilesServiceImpl()));
       
//enable MTOM to send the file contents more efficiently.
service.setProperty("mtom-enabled", "true");
 
I cannot find how to do that easily using the new ServerFactoryBean
approach.  How do I enable MTOM on a service using the embedded HTTP
server? 
--------------------------------------------------------

Princeton Retirement Group, Inc - Important Terms 
This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location. 
This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail. 
The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail. 

--------------------------------------------------------

RE: How to enable mtom on the embedded server?

Posted by Christopher Moesel <Ch...@avid.com>.
Hi Samuel,

Have you looked at the MTOM documentation in the user guide?
http://cwiki.apache.org/CXF20DOC/mtom.html

If so, then what information is missing (or incorrect) that you need?

-Chris

-----Original Message-----
From: Clough, Samuel (USPC.PRG.Atlanta)
[mailto:Samuel_Clough@princetonrg.com] 
Sent: Tuesday, July 17, 2007 10:39 AM
To: cxf-user@incubator.apache.org
Subject: RE: How to enable mtom on the embedded server?

We're trying to convert some services off of XFire and onto CXF.  On
XFire, the following would automatically enable MTOM for any types in a
service that returned a byte array:
 
Service service = serviceFactory.create(FeedbackFilesService.class);
service.setInvoker(new BeanInvoker(new FeedbackFilesServiceImpl()));
       
//enable MTOM to send the file contents more efficiently.
service.setProperty("mtom-enabled", "true");
 
I cannot find how to do that easily using the new ServerFactoryBean
approach.  How do I enable MTOM on a service using the embedded HTTP
server? 
--------------------------------------------------------

Princeton Retirement Group, Inc - Important Terms 
This E-mail is not intended for distribution to, or use by, any person
or entity in any location where such distribution or use would be
contrary to law or regulation, or which would subject Princeton
Retirement Group, Inc. or any affiliate to any registration requirement
within such location. 
This E-mail may contain privileged or confidential information or may
otherwise be protected by work product immunity or other legal rules. No
confidentiality or privilege is waived or lost by any mistransmission.
Access, copying or re-use of information by non-intended or
non-authorized recipients is prohibited. If you are not an intended
recipient of this E-mail, please notify the sender, delete it and do not
read, act upon, print, disclose, copy, retain or redistribute any
portion of this E-mail. 
The transmission and content of this E-mail cannot be guaranteed to be
secure or error-free. Therefore, we cannot represent that the
information in this E-mail is complete, accurate, uncorrupted, timely or
free of viruses, and Princeton Retirement Group, Inc. cannot accept any
liability for E-mails that have been altered in the course of delivery.
Princeton Retirement Group, Inc. reserves the right to monitor, review
and retain all electronic communications, including E-mail, traveling
through its networks and systems (subject to and in accordance with
local laws). If any of your details are incorrect or if you no longer
wish to receive mailings such as this by E-mail please contact the
sender by reply E-mail. 

--------------------------------------------------------