name binding of webshpere

Use a new name to deploy the resource

 

web.xml

	<resource-ref id="ResourceRef_1234567890123">
		<description></description>
		<res-ref-name>jdbc/xxxDataSource</res-ref-name>
		<res-type>javax.sql.DataSource</res-type>
		<res-auth>Container</res-auth>
		<res-sharing-scope>Shareable</res-sharing-scope>
	</resource-ref>

 

ibm-web-ext.xmi

ibm-web-bnd.xmi

<resRefBindings xmi:id="ResourceRefBinding_1234567890124" jndiName="jdbc/xxxNewDataSource">
    <bindingResourceRef href="WEB-INF/web.xml#ResourceRef_1234567890123"/>
  </resRefBindings>
 

ResourceRef_1234567890123 , jdbc/xxxDataSource-->jdbc/xxxNewDataSource

 

ejb-jar.xml

<session id="xxxId">
         <ejb-name>xxxName</ejb-name>
</session>

 

ibm-ejb-jar-bnd.xmi

<ejbBindings xmi:id="xxxbindId" jndiName="ejb/xxxNewName">
    <enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#xxxId"/>
</ejbBindings>
 

xxxId, xxxName-->ejb/xxxNewName

 

ctx.lookup("java:cmp/env/xxxEnvEntryName");  

你可能感兴趣的:(Web,jdbc,ejb,ext,IBM)