aze opuiy

Greenhorn
+ Follow
since Dec 03, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by aze opuiy

Thank you for your answer.

What is the difference between runtime and "when the component is initialized" ?
The component is not initialized at runtime ??

I am sorry but i don't understand.

I understood that, during the deployment, "injected resource" is binding in the ENC of managed bean with the path declared by the attribute name => java:/comp/env/[name]
And that during execution, the resource is accessible (with injection or direct access) via the ENC entry.

But i don't understand the goal of the class level annotation (and so the goal of the <resource-ref>).

I you want use directly JNDI and if you do not declare class level annotation, you will have not entry in the ENC but you can lookup to the global JNDI, no ?

I am sure i missed something...

Thank you for your help
Hello,

I am sorry but i still don't understand.

There are differents posts around this subject so i don't know where to post.
Before i found this topic, I have asked a question on this subject there : https://coderanch.com/t/519214/EJB-JEE/java/Cla...Type-level-resource-annotation

Thank you
Hello,

I didn't see this question, so i have posted a new one around the same subject :
https://coderanch.com/t/519214/EJB-JEE/java/Class-Type-level-resource-annotation

Sorry for that.

I don't understand the goal of the Class level annotations in EJB3 too.

Thank you for your help !
Hello,

I don't understand the aims of the Class/Type level resource annotation.

Why to declare a Class/Type level resource annotation :



When it is working without :




Could someone explain to me the difference and the goal of the class level resource annotation ?
Thank you by advance for your help.