• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI binding  RSS feed

 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
I am having problems trying to bind an object using JNDI.
The error message says: javax.naming.OperationNotSupportedException -
This context does not allow updates !
Could anyone hint what I am doing wrong ? I created subcontexts and it
is still not working...I must have this object bound.
Thanks in advance,
Juarez Junior
SCPJ2 - SCWCD
 
saahil sinha
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have u used bind() or rebind() coz bind() gives errors if the name exists in the system
 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either are giving the same result:
bind does not work (not allowed) and rebind throws
exception because I am trying to replace a not bound object...
Any idea ?
Thks,
Juarez Junior
 
Nilesh Pereira
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OperationNotSupportedException is thrown when a context implementation does not support the operation being invoked. For example, if a server does not support the Context.bind() method it would throw OperationNotSupportedException when the bind() method is invoked on it.
Could you give more information on the JNDI directory or naming service you are using? It sounds like it could be a read only implementation. Also could you post the code where you initialize the InitialContext?
 
Juarez Alvares Barbosa Junior
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yep, you're right. This operation is not supported. I am using SilverStream and Novell has told me that it's not possible to bind objects.
I have considered another approach...
Thanks for helping.
Juarez
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!