Alexander Kogan wrote:
[...]
> Right. But are you sure that the modified jndi.properties is in
> classpath for your client? Looks like it's not.
[...]
It dosn't work... look at the following experiments (little long)
There is JNDIview simple application in the JBoss2.0Final,
it reads properties from the file. I have to machines 'A'(10.1.0.33) and
'B'(10.1.0.35)
There is a JBoss run on the machine 'A'
configuration looks like
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=10.1.0.33:1099
java.naming.factory.url.pkgs=org.jboss.naming
When I run JNDIview on 'A' I got proper result, when I change to
differnt IP
where JBoss is not run (for ex. 'blahblah:1099') I got:
error while listing context javax.naming.InitialContext@fabe9: blahblah
and this is correct.
Let's move to computer 'B'
on 'B' with 'blahblah:1099' in the config I got the same error as above
(expected), when I change to '10.1.0.33:1099' ('A' machine)
It says: error while listing context javax.naming.InitialContext@297b0b:
null
Another experiment was when I run to JBoss instances each on machines
'A' and 'B', and tried to run JNDIview,
When I read name list from the same machine where client is located (on
'A' from 'A',...) I got good result (name listing)
When I tried to read names from different server (on 'A' from 'B', on
'B' from 'A') I got error with 'null' keyword.
Finished ;)
So, what is going on here ???
Please help me...
Thx, Tomek
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]