Scott et al,

First off, I can not help you solve this (year old) issue. I am groveling for 
your/someone's help on getting a simple C# client (via iKVM) to connect to 
JBoss (ultimately JBossMQ). You were able to contact the naming service, so you 
got further than I have. Hopefully you can share your wisdom...

When I try my C#/ikvm port it hangs during "lookup" requests on the 
InitialContext..  I can run the same Java (JRE 1.5) sample program 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=QueueExample) against my (local) 
JBoss installation, so it is configured properly.

Note: The C# client is contacting the JBoss instance, because if I change the 
port it throws a connection exception.

Compiling jboss-client.jar as follows resulted in a bunch of warnings (gulp), 
but no errors:
ikvmc -out:jbossall-client.jar.dll ./client/jbossall-client.jar 

I was concerned with that the notation necessary for the inline setup of the 
properties:
properties.put(javax.naming.Context.__Fields.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");

So, I hand loaded the properties to ensure they were populated properly:
Properties properties = new Properties();
FileInputStream fis = new FileInputStream(new 
java.io.File("./jndi.properties"));
properties.load(fis);
fis.close();
InitialContext ctx = new InitialContext(properties);

// Go grab lunch, cause I am going to take a VERY long nap...
Queue queue = (Queue) ctx.lookup("queue/testQueue"); 

./jndi.properties:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

I have seen this issue mentioned elsewhere (e.g. 
http://lists.gnu.org/archive/html/bug-classpath/2005-10/msg00281.html), but 
since you seem to have solved/avoided the problem, I figured I would start 
here...

Versions used:
JBoss: 4.0.3SP1 (JRE 1.5.0_05-b05, tried 1.4.2 as well)
ikvm: 0.20.0.0
C#/.Net: 1.1.4

Cheers and thanks,
Erik

P.S. I was successful using ActiveMQ (with ikvm), but JBossMQ's management 
features are more important to me than performance. Maybe I should reassess my 
evaluation criteria...


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

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


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to