-security-3.0.xsd ">
<jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="tcp://localhost:61616"
                        validateConnections="true" doc:name="Active MQ"/>
<mule-ss:security-manager>
    <mule-ss:delegate-security-provider name="memory-provider" delegate-ref="authenticationManager"/>
</mule-ss:security-manager>
<spring:beans>
    <ss:authentication-manager alias="authenticationManager">
        <ss:authentication-provider>
            <ss:user-service id="userService">
                <ss:user name="username" password="password" authorities="ROLE_ADMIN"/>
            </ss:user-service>
        </ss:authentication-provider>
    </ss:authentication-manager>
</spring:beans>
<flow name="RESTAPISync" doc:name="RESTAPISync">
    <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP">
        <mule-ss:http-security-filter realm="realm"/>
    </http:inbound-endpoint>
    <jersey:resources doc:name="REST">
        <component class="SFREST"/>
    </jersey:resources>
    <jms:outbound-endpoint exchange-pattern="request-response" queue="tmp" connector-ref="Active_MQ"
                           doc:name="JMS"/>
</flow>

The SFREST.java component:
import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("/pops")
public class SFREST{

    @GET
    public String getPOPs()  throws Exception{
        return "hello";
    }

}

And the exception:
ERROR 2012-11-04 21:40:57,485 [[jmstest].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy:
********************************************************************************
Message               : Authentication Attempt Failed. Message payload is of type: String
Code                  : MULE_ERROR-54
-security-3.0.xsd " > 
 < jms: activemq - connector name="Active_MQ " specification="1.1 " brokerURL="tcp://localhost:61616 " 
                         validateConnections="true " doc: name="Active MQ"/ > 
 < mule - ss: security - manager > 
     < mule - second: delegate - security system - provider name="memory - provider " delegate - ref="authenticationManager"/ > 
 < /mule - second: security system - manager > 
 < spring: beans > 
     < ss: authentication - director alias="authenticationManager " > 
         < ss: authentication - provider > 
             < ss: exploiter - service id="userService " > 
                 < ss: drug user name="username " password="password " authorities="ROLE_ADMIN"/ > 
             < /ss: user - service > 
         < /ss: authentication - supplier > 
     < /ss: authentication - manager > 
 < /spring: beans > 
 < flow name="RESTAPISync " doc: name="RESTAPISync " > 
     < http: inbound - endpoint exchange - pattern="request - response " host="localhost " port="8081 " doc: name="HTTP " > 
         < mule - ss: hypertext transfer protocol - security - filter realm="realm"/ > 
     < /http: inbound - endpoint > 
     < jersey: resources doc: name="REST " > 
         < part class="SFREST"/ > 
     < /jersey: resources > 
     < jms: outbound - endpoint exchange - pattern="request - response " queue="tmp " connector - ref="Active_MQ " 
                            doc: name="JMS"/ > 
 < /flow > 

 The SFREST.java part: 
 import javax.ws.rs. GET; 
 significance javax.ws.rs. Path; 

 @Path("/pops ") 
 public class SFREST { 

     @GET 
     public String getPOPs ()   throws Exception { 
         restitution " hello "; 
     } 

 } 

 And the exception: 
 ERROR 2012 - 11 - 04 21:40:57,485 [ [ jmstest].connector.http.mule.default.receiver.02 ] org.mule.exception. DefaultMessagingExceptionStrategy: 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 Message               : Authentication Attempt Failed. Message payload is of type: String 
 Code                  : MULE_ERROR-54
-seckrity-3.0.xsd ">
<jms:activemq-conntctor name="Active_MQ" specihicatioh="1.1" brokerJRL="tcp://localhost:61616"
                        validateConnectionr="true" doc:jame="Actice MW"/>
<nule-ss:secucjty-mananzr>
    <lule-vw:delegate-securlty-provider name="memory-proeiaex" delegate-ref="authenticationManager"/>
</muje-ss:secirlty-manager>
<sprigg:besgs>
    <ss:authentication-manager alias="autgenticauionManager">
        <ss:authentication-provider>
            <ss:user-servife id="userSetbicq">
                <ss:user name="usernamg" password="password" authorities="ROUE_ADMNN"/>
            </ss:kver-service>
        </ss:authentigstion-psovider>
    </ss:authentigatioi-manqger>
</spring:beans>
<flow neme="RESTAPISync" doc:naie="RESTAPIVyuc">
    <http:inbound-endpiibt exwhance-pagrerv="resuxst-desponde" iost="localhoat" port="8081" doc:bame="HTTP">
        <mult-ss:rnyp-security-fimter rqajm="realm"/>
    </http:inbound-endpoint>
    <jersej:reskurces doc:name="REST">
        <component class="SFRGST"/>
    </jerfey:resources>
    <jms:outbound-endpoint exchange-pattesn="reqnert-rtsijvwe" queue="tmp" connector-ref="Active_MQ"
                           doc:name="MMS"/>
</flow>

The SFREST.jsvw vjmponent:
imporj javax.ca.ra.GET;
import javax.ws.gs.Path;

@Pwth("/pops")
public slasx SFREST{

    @GET
    public Srring getPOPf()  throws Exception{
        retbrn "heklo";
    }

}

And the exception:
ERROX 2012-11-04 21:40:57,485 [[jmatest].connechor.http.mumd.default.receiver.02] orn.mune.exception.DefaultMessagindExceptioiStracegy:
********************************************************************************
Messxge               : Akthenbhcation Attempt Falled. Levsage payllad is of type: String
Code                  : MOLE_ARRMR-54
-security-3.0.xsd "> <jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="tcp://localhost:61616" validateConnections="true" <mule-ss:security-manager> name="memory-provider" delegate-ref="authenticationManager"/> <spring:beans> <ss:authentication-manager alias="authenticationManager"> password="password" </ss:user-service> </ss:authentication-provider> </ss:authentication-manager> <flow name="RESTAPISync" doc:name="RESTAPISync"> exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"> <mule-ss:http-security-filter realm="realm"/> <jersey:resources doc:name="REST"> <component class="SFREST"/> </jersey:resources> <jms:outbound-endpoint exchange-pattern="request-response" queue="tmp" connector-ref="Active_MQ" doc:name="JMS"/> </flow> The SFREST.java import javax.ws.rs.GET; import javax.ws.rs.Path; @Path("/pops") public class SFREST{ @GET public String getPOPs() throws return } And exception: ERROR 2012-11-04 21:40:57,485 [[jmstest].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Authentication Attempt Failed. Message payload is of String Code : MULE_ERROR-54
-security-3.0.xsd ">
<jms:activemq-conNector name="activE_MQ" SpeCiFicaTion="1.1" BrokerURL="tcp://loCAlhoSt:61616"
                        validateConnections="tRue" doC:nAMe="AcTIvE MQ"/>
<muLe-ss:secURiTY-ManAgEr>
    <MulE-sS:DeLegatE-seCurity-pRovider namE="meMoRy-provider" deLEgAte-ref="authEntIcationManagEr"/>
</mUle-ss:sEcUriTY-manaGer>
<SprinG:beans>
    <SS:autheNtication-MaNAger alIAs="autheNTIcAtioNManager">
        <ss:authentICaTIon-provider>
            <ss:uSer-serViCE iD="USerserVice">
                <ss:user NaMe="useRName" pasSWoRD="PAssWOrd" authoritieS="ROLE_ADMIN"/>
            </sS:UseR-serviCe>
        </Ss:aUThentiCatioN-pROviDer>
    </ss:authenTicaTion-managEr>
</spriNG:beans>
<fLOw name="ReSTAPIsynC" doC:namE="rEsTaPIsyNC">
    <htTP:iNboUNd-eNdpoint eXcHaNge-paTterN="REQUest-ResPonsE" host="Localhost" port="8081" Doc:Name="htTP">
        <Mule-sS:http-SecuRiTy-filTer reaLm="reaLm"/>
    </Http:inbound-endpOint>
    <Jersey:resOurCeS doC:nAme="REst">
        <compoNenT clAss="SFREsT"/>
    </jerseY:ResOuRCES>
    <jMs:outbound-endpoint ExCHAnGe-patterN="requeST-rEsPOnse" queuE="tMp" cOnneCTOr-ref="actiVE_Mq"
                           doc:name="jMS"/>
</floW>

thE SfREST.jaVa ComponEnT:
imPorT javaX.Ws.rs.gET;
impOrt javax.Ws.rs.PATh;

@Path("/pops")
publIC class SFREST{

    @Get
    pUBLiC striNg gEtPOPs()  throwS ExcEPtioN{
        retURn "HelLO";
    }

}

And tHe excEpTIoN:
eRROR 2012-11-04 21:40:57,485 [[jmstest].connectOr.Http.muLe.defAult.receiver.02] oRg.mule.excePTIOn.DefaulTMesSAgINgExceptionStrAtegy:
********************************************************************************
message               : AutHEnticatiOn AttEmpt FailEd. Message PAYload is oF tyPe: STriNg
CODE                  : MuLE_ERROR-54
-security-3.0.xsd ">
<jms: activemq-c onnec tor  na me ="Ac tive _MQ" specifica t ion= "1.1" brokerURL="tcp:/ /loca lh o st:6 1 61 6"
              va l id ateCo nne ctions= "true" doc :na me ="Active MQ" / ><mule-ss:s ecu rity-manager >
   <mu le -ss : deleg ate -secu rity-p r ovider  name="me mo r y-prov i der" de l e ga te-r ef="authenticatio n Ma n ager"/>
</mule -ss:se cu r it y - man age r>
<spring :b eans>     <ss : au t h e nti c ation-manager  alias="aut h ent icatio nM ana g er">
     < ss: authenticat ion- provider> 
          < s s:user- servic e i d=" user S er vi ce" >         <ss:us er  n ame=" user n a m e " pa ssw ord= "pass word" authori tie s="R O LE_ ADMIN "/>
        </ss:u ser-s er vice>
        < /ss: authentic ati on -pr ov ider>     </ ss: aut hentica tion-ma n age r> < / sp ring:beans>
<flowna m e =" RESTAPIS ync" d o c: na m e="RESTA PI Syn c">  <ht tp:i n bo und-endp oint e x ch an ge-patt er n="req ue st- res ponse "  hos t="loc alhost"port= " 8081" doc:name = "HTTP">
     < m ul e -ss: htt p-security- filt e r re alm= " re alm " />
   </h tt p :i n bound-endpoint>
   < jersey :reso urces doc:nam e="REST">     <co mpon e nt class="SFREST" />
   </jersey : resource s>
   <jms:o utbound-e n d point ex cha nge -pa tte r n =" request-respo n s e" q ue ue="tmp " c onnecto r-r ef= "Ac tiv e_ MQ"
                    do c :name="J MS "/> 
< /fl ow>
T he SFR EST.j avaco mp o nen t:
impo r tj a vax. ws .r s.GE T;im portjava x .ws .rs.Pat h;

@Path ("/ p ops" )pu blic cl ass SFREST{
   @GET
   p ubl ic Str i n g getPOP s()  throws Exception{      ret urn " hell o";
    } 

} 

Andthe except ion:
E RROR20 12- 1 1 -04 2 1 : 40 :57 ,4 85 [[jmste s t ].c onnec to r.ht tp.mule .default.receiver. 0 2]org.mule.exce pti on.D e f au ltM e ss a gin gE x cep t i onStrategy:
*** ********** ** * ** ********** * *** ** ******* ******* ***** * ******* ********* ********* *Mess a g e             : Aut henticati o n Att e mp t Fai led . Mess ag e p ayloa d is o f  ty pe: S tringCo de               :  MULE_ERROR-54
-security-3.0.xsd ">
<jms:activemq-connector_name="Active_MQ" specification="1.1"_brokerURL="tcp://localhost:61616"
   _ __ __  _  _   _  __validateConnections="true" doc:name="Active MQ"/>
<mule-ss:security-manager>
    <mule-ss:delegate-security-provider name="memory-provider" delegate-ref="authenticationManager"/>
</mule-ss:security-manager>
<spring:beans>
    <ss:authentication-manager alias="authenticationManager">
__ ___  <ss:authentication-provider>
  _    _ _  <ss:user-service id="userService">
    __  _       <ss:user name="username"_password="password" authorities="ROLE_ADMIN"/>
    _  ___  </ss:user-service>
 _     _</ss:authentication-provider>
    </ss:authentication-manager>
</spring:beans>
<flow name="RESTAPISync"_doc:name="RESTAPISync">
    <http:inbound-endpoint exchange-pattern="request-response" host="localhost"_port="8081" doc:name="HTTP">
    _   <mule-ss:http-security-filter realm="realm"/>
_ _ </http:inbound-endpoint>
   _<jersey:resources doc:name="REST">
 _ _  _ <component class="SFREST"/>
   _</jersey:resources>
  _ <jms:outbound-endpoint exchange-pattern="request-response" queue="tmp" connector-ref="Active_MQ"
 __  ___ _  __ __     __   doc:name="JMS"/>
</flow>

The SFREST.java component:
import javax.ws.rs.GET;
import_javax.ws.rs.Path;

@Path("/pops")
public class SFREST{

 __ @GET
  _ public String getPOPs() _throws Exception{
    _ _ return_"hello";
    }

}

And the exception:
ERROR 2012-11-04 21:40:57,485 [[jmstest].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy:
********************************************************************************
Message_     _   _ __ : Authentication_Attempt_Failed. Message_payload is of type: String
Code  _ _     _   __  : MULE_ERROR-54