De: Nirmal Fernando [mailto:[email protected]] 
Enviado el: domingo, 13 de mayo de 2012 1:20
Para: Jorge Infante Osorio
CC: [email protected]
Asunto: Re: [User] Issue with a mediator: Unknown mediator referenced by
configuration element

Hi Jorge,
On Sun, May 13, 2012 at 4:56 AM, Jorge Infante Osorio <[email protected]>
wrote:
Hi all.

I´m building a mediator using the class mediator and I call it in this way
and it work fine.

   <class name="cdae.uci.cu.mediadores.LdapEnriquecimientoMediator">
               <property name="INITCTX"
value="com.sun.jndi.ldap.LdapCtxFactory"/>
               <property name="MY_HOST"
value="ldap://localhost:10389/ou=Users,dc=cdae,dc=uci,dc=cu"/>
               <property name="usuario" value="uid=admin,ou=system"/>
               <property name="pass" value="secret"/>
               <property name="tipo_auth" value="simple"/>
       </class>

Now I want to go a step further  and call it in this way:

                       <LdapEnriquecimiento>

<INITCTX>com.sun.jndi.ldap.LdapCtxFactory</INITCTX>

<MY_HOST>ldap://localhost:10389/ou=Users,dc=cdae,dc=uci,dc=cu</MY_HOST>
                               <usuario>uid=admin,ou=system</usuario>
                               <pass>secret</pass>
                               <tipo_auth>simple</tipo_auth>
                       </LdapEnriquecimiento>

Please make sure that the QName you've used in MediatorFactory is same as
"LdapEnriquecimiento".

Further you can refer OT article [1], if you're not already referring to it.

[1] http://wso2.org/library/2936


Thanks Nirmal. A few moments before receive your email I resolve my problem.

1. I need to deploy my jar inside [ESB]/lib and inside [ESB]
repository\components\lib\. I don´t know why but it work :-D. If I just
deploy inside [ESB]/lib I receive a lots of errors. This is normal or a bug?
2. I have to change the way I access the OMElement that represent my
mediator xml. Just like in http://wso2.org/library/2936 I´m doing in the
wrong way.

Thanks a lot.

Saludos,
Ing. Jorge Infante Osorio.
J´Dpto Soluciones SOA.
CDAE.
Fac. 5.
UCI.


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS 
INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci
_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to