His example is taken from the BEA dev2dev site, so I imagine its what BEA recommends for Weblogic 9.
The problem with that example is there is a typo:
Code:
<prop key="java.naming.security.principle">
${WS_USERNAME}</prop>
<prop key="java.naming.security.credentials">
${WS_USERNAME}</prop>
should read:
Code:
<prop key="java.naming.security.principle">
${WS_USERNAME}</prop>
<prop key="java.naming.security.credentials">
${WS_PASSWORD}</prop>
Unless of course your username and password values are the same for your server.
Of course the various variables would have to inserted into the appliation context using a PropertyPlaceholderConfigurer, something they don't mention in the BEA example.