Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8491

Re: JNDI Context lookup issues between EJB and Servlet and others

$
0
0

Hello,

 

I can see that in the servlet you are trying to bind something in the naming context.

 

This is not allowed as per specification:

 

"

Java™ Platform, Enterprise Edition (Java EE) Specification, v6

 

EE.5.3.4Java EE Product Provider’s Responsibilities

 

The container must ensure that the application component instances have only read access to their naming context. The container must throw the javax.naming.OperationNotSupportedException from all the methods of the javax.naming.Context interface that modify the environment naming context and its subcontexts.

"

 

You should use env-entry elements in the deployment descriptor as per  "EE.5.4.1.3Declaration of Simple Environment Entries" for example.

 

Regards

Violeta


Viewing all articles
Browse latest Browse all 8491

Trending Articles