• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SCBCD 1.3] env-entry lookup problem

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my client :


In my DD :


The error I get, using Jonas application server:


Maybe it has something to do with the application server that i am using.
Any idea ? Thanks a lot
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my client

What do you mean by your client ? You've defined an environment entry for a bean, right ? Are you trying to access that entry from a client, or from the bean owning the entry ?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for helping.
I am indeed trying to get the environment variable from the client layer.
I know this env. variable has been defined in the deployment descriptor for a specific entity bean,
but it should also be possible to access it from my client class, not just my entity bean.
If not, please tell me why it would not be possible.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not accessible. An environment entry is scoped to the enterprise bean whose declaration contains the env-entry element. This means that the environment entry is inaccessible from other enterprise beans at runtime. Neither from a client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic