Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with ejb client in Jboss

 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder no one knows the solution for this.
 
Ambily G Nair
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ambili. It is working fine now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic