"roberto" wrote :
|
| | ...
| | try
| | {
| | object = new InitialContext().lookup("myinformation");
| | }
| | catch(Exception vErr)
| | {}
| | ...
| |
|
That piece of code is using the local JDNI context, not the global one. I
think you want to use the global JNDI context. Assuming you're using the all
configuration, you would do something like this:
| try
| {
| Properties properties = new Properties();
| properties.setProperty(javax.naming.Context.PROVIDER_URL, "localhost:1100");
| object = new InitialContext(properties).lookup("myinformation");
| }
| catch (Exception vErr)
| {}
|
If you've changed the port number for the HAJNDI service, then adjust the
localhost:xxxx property.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872936#3872936
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872936
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user