Challenge here is parameters depends on the container rather than the
inbound connector.

IMO we should follow the same concept followed in ejb mediator. (Except we
need to make it dynamic)

eg:

Will have one JNDIID and user can add multiple entries against it.

inbound.ejb.JNDIID=jboss
inbound.ejb.JNDIID.jboss.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
inbound.ejb.JNDIID.jboss.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
inbound.ejb.JNDIID.jboss.java.naming.provider.url=jnp://localhost:1099

[1] https://docs.wso2.com/display/ESB490/EJB+Mediator

On Mon, Nov 2, 2015 at 5:34 PM, Rajjaz Mohammed <[email protected]> wrote:

> Hi,
> I'm implementing Connector for EJB 2.x. so in order to create JNDI
> properties i need pair of parameters [1]. and the number of parameters also
> depend on EJB server and Version. How can i write the operation fro
> that?(normally our Init methods will be like [2])
>
>
> [1]
> Properties props = new Properties();
> props.put("A" ,"B");
> props.setProperty("C","D");
> props.setProperty("E", "F");
>
>
> [2]
> <connector.init>
>     <A>{$ctx:a}</A>
>     <B>{$ctx:b}</B>
>     <C>{$ctx:c}</C>
>     <D>{$ctx:d}</D>
> </connector.init>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> WSO2 Inc. <http://wso2.com/>
> lean | enterprise | middleware
> Mobile | +94752833834
> Email   | [email protected]
> LinkedIn | Blogger | WSO2 Profile
> <http://wso2.com/about/team/mohammer_rajjaz/>
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to