Changing to "jnp" does NOT solve the problem.
I got now the following exception:
MyClient exception: invalid URL scheme: jnp://localhost:1099/
java.net.MalformedURLException: invalid URL scheme: jnp://localhost:1099/
at java.rmi.Naming.parseURL(Naming.java:233)
at java.rmi.Naming.list(Naming.java:181)
at test.rmi.simple.MyClient.main(MyClient.java:28)
Yes, I put %JBOSS_HOME%/client/jnp-client.jar in the CLASSPATH.
The full code is:
public static void main(String[] args ) {
// Create and install a security manager
/*
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager()); }
*/
try {
String[] objlist = null;
objlist = Naming.list("jnp://localhost:1099/");
if (0 < objlist.length) {
System.out.println(" Available RMI objects (after rebind) using
external Registry:");
int i = 0;
while(i < objlist.length) {
System.out.println(" - Object[" + i + "]="+ objlist);
i++; } }
} catch(......) { ... }
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854409#3854409
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854409
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user