[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: mapped-name is required for jdbc

Wolfgang Knauf do-not-reply at jboss.com
Thu Jul 16 07:12:20 EDT 2009


Hi,

the "res-ref-name" is the name of the entry in your Environment Naming Context (needed only for programmatic JNDI lookups), it is NOT the name of the datasource in JNDI.

You need something like this (might still contain minor errors):

  | <resource-ref>
  |   <res-ref-name>NameForLookup</res-ref-name>
  |   <res-type>javax.sql.DataSource</res-type>
  |   <mapped-name>jdbc/LOYALTY</mapped-name>
  |   <res-auth>Container</res-auth>
  | </resource-ref>
  | 

Hope this helps

Wolfgang

PS: Please use "[ code ]" tags to mark XML, so that no information is lost.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244055#4244055

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244055



More information about the jboss-user mailing list