Hi Yoav
> I'm fairly sure you'd understand them just fine ;)
Well, I read both specs, the J2EE section 5.4 being the relevant one here,
and I am sorry to say but I think I am a little more confused now than
before!
It was good to see this bit of succinct code being sanctioned:
javax.sql.DataSource ds = (javax.sql.DataSource)
initCtx.lookup("java:comp/env/jdbc/EmployeeAppDB");
I actually arrived at that on my own, so I guess my Java instincts are not
so bad after all.
What I cannot figure out is: what does the 'resource-ref' element in the
deployment descriptor *actually* do?
What is its function, and am I breaking something by not having it there at
all?
You wrote:
> Even though in tomcat's current implementation resource-ref might not be
> strictly required under certain conditions, you should include it as the
> tomcat documentation suggestions, for completeness, portability, and
> spec compliance.
Which suggests that *perhaps* for a stand-alone Tomcat server this element
is not needed.
I guess I might (time permitting) post a question on Server-Side and see if
one of the J2EE boffins can shed any light on this.
Please do not get me wrong about this: I am just trying to understand what
the code I am using in my application is doing - or not doing :-)
Many thanks, and kind regards
BTW - the Ant 'filtering' trick you put me onto works a treat. Fantastic.
Ant should be mandatory learning!
Harry Mantheakis
London, UK
> Hi,
>
>> I use Tomcat as a stand-alone server, but in the back of my mind I know
>> there are J2EE specifications that Tomcat is adhering to which I am
> likely
>> not to understand.
>
> I'm fairly sure you'd understand them just fine ;) It's SRV.9.11 in the
> Servlet Specification 2.4 and J2EE.5 in the J2EE Specification v1.4.
> Even though in tomcat's current implementation resource-ref might not be
> strictly required under certain conditions, you should include it as the
> tomcat documentation suggestions, for completeness, portability, and
> spec compliance.
>
> Yoav Shapira
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged. This e-mail is intended only for the individual(s) to whom
> it is addressed, and may not be saved, copied, printed, disclosed or used by
> anyone else. If you are not the(an) intended recipient, please immediately
> delete this e-mail from your computer system and notify the sender. Thank
> you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]