This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
EJB Certification (SCBCD/OCPJBCD)
@Resource & mappedName
Benoît de Chateauvieux
Joined: Aug 10, 2007
Sep 04, 2007 16:32:00
I try to
simples environment entries in my OC4J and I don't understand the difference between the attributes
of the annotation
I wrote the following ejb-jar:
<enterprise-beans> <session> <ejb-name>devengoServicio</ejb-name> <env-entry> <env-entry-name>montoMinimoRecursoDevengado</env-entry-name> <env-entry-type>java.lang.Double</env-entry-type> <env-entry-value>0.0</env-entry-value> </env-entry> </session> </enterprise-beans>
And in my bean:
It works only with mappedName and no with name.
Thanks a lot for your help!
SCJP5 | SCBCD5 | SCEA5 Part 1
Joined: Nov 24, 2005
Sep 04, 2007 19:04:00
mappedName is container dependant, and should be avoided. There's an article
about injecting environment entries.
All roads lead to JavaRanch
subject: @Resource & mappedName
where should I put ejb-jar.xml
Setting up enviornment variables
Problem looking up local interface of Session Beans - WSAD 5.1, WAS 5.0 Test Env
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014