how to specify individual datasource for CMP entity bean in JES

Hi,

I encounter a problem regarding specifying datasource in Sun Enterprise System.

In the deplyment descriptor sun-ejb-jar.xml, I specify a common datasource for all the CMP bean.

<sun-ejb-jar>

<enterprise-beans>

<unique-id>0</unique-id>

<ejb>

<ejb-name>User</ejb-name>

<jndi-name>User</jndi-name>

</ejb>

<ejb>

<ejb-name>Custom</ejb-name>

<jndi-name>Custom</jndi-name>

</ejb>

<cmp-resource>

<jndi-name>jdbc/STARS_ORACLE</jndi-name>

</cmp-resource>

</enterprise-beans>

</sun-ejb-jar>

But for bean User, I need to get the data from another data source due to security issue. I check through the development guide, didn't get the answer. I know that JBoss can support bean-level datasource. How to I specify a datasource for an individual bean in Sun JES?

My Environment is Sun Java Enterprise System 8.1.

Any answer is appreciated.

[1096 byte] By [CornerStone] at [2007-11-26 9:27:05]
# 1
Hi,Only one CMP datasource is supported for each CMP module. You need to split your jar into separate modules to use more than one datasource.regards,-marina
jdcmarina at 2007-7-7 0:06:35 > top of Java-index,Application & Integration Servers,Application Servers...