I don't use Spring (or rather it has been ages since I did anything with Spring) so I could not comment on that.
As far a EJBs go, I always use the straight JNDI name (java:jdbc/SomeDS
in the example). There is no need to translate ENC into the JNDI name.