Here is what I have done, let me know if this is unnecessary:

1. I have "invented" a system property (myapp.ha.naming.provider.url). Now, 
where I need HA JNDI, I lookup this property and pass it as the 
Context.PROVIDER_URL in the env to the InitialContext(env).

2. In the file server/app/deploy/properties-service.xml, which is application 
deployment dependent, I set the default value of this property as:
...
  | <attribute name="Properties">
  |     myapp.naming.provider.url=${jboss.bind.address}:1100
  | </attribute>
  | ...
  | 
This system property can now be changed at deploy time if necessary.

-shree

PS: Sorry, I took a while to come back to this forum.

PPS: ibruell, did you find some trick as well?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918527#3918527

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918527


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to