aspose file tools*
The moose likes JBoss/WildFly and the fly likes problem with ejb client in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "problem with ejb client in Jboss" Watch "problem with ejb client in Jboss" New topic
Author

problem with ejb client in Jboss

S.L.Narayanan
Ranch Hand

Joined: Apr 01, 2005
Posts: 431
I have created a small ejb and deployed it in jboss4.0. It got deployed. But when I tried to write a client for that it is not working. I am getting the following exception.


My Initial Context creation code is this:



What is wrong with this?. The initial context factory and provider url are correct because previously I was getting different exceptions and I changed them and now they are fine. Kindly help me out.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, NEXT--->IBM XML
S.L.Narayanan
Ranch Hand

Joined: Apr 01, 2005
Posts: 431
I wonder no one knows the solution for this.
Ambily G Nair
Greenhorn

Joined: Aug 21, 2004
Posts: 28
Hi,

I am using the following code for getting the context and it is working fine for me.

Properties props= new Properties();

props.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
return new InitialContext(props);

-- Ambily
S.L.Narayanan
Ranch Hand

Joined: Apr 01, 2005
Posts: 431
Thank you Ambili. It is working fine now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with ejb client in Jboss