14 Replies Latest reply: Mar 14, 2012 11:05 PM by fan kam thong RSS

Dynamic change to jboss-ejb-client.properties

Prasad Deshpande Expert

Hi Guys,

 

I read through about jboss-ejb-client.properties file, just a quick question, if I need to set properties in jboss-ejb-client.properties file programatically & then use it for EJB lookup, how do I do it?

 

So e.g. If I've to set

remote.connection.default.host=10.20.30.40

remote.connection.default.port = 4447

these properties based on user input & then do an EJB lookup, is there any way to do it (just like passing Context.PROVIDER_URL through jndi.properties & to constructor of InitialContext)?

 

Thank you,

Prasad