DataSourceConnectionPropertyMetaData[] cps = {
cp1, cp2
};
lds.setDataSourceConnectionProperties(Arrays.asList(cps));
List<ManagedConnectionFactoryPropertyMetaData> mcps = new ArrayList<ManagedConnectionFactoryPropertyMetaData>();
ManagedConnectionFactoryPropertyMetaData mcp1 = new ManagedConnectionFactoryPropertyMetaData();
mcp1.setName("mcp1-name");
mcp1.setValue("mcp1-value");
mcp1.setType("java.lang.String");
mcps.add(mcp1);
ManagedConnectionFactoryPropertyMetaData mcp2 = new ManagedConnectionFactoryPropertyMetaData();
mcp2.setName("mcp2-name");
mcp2.setValue("mcp2-value");
mcp2.setType("java.lang.String");
mcps.add(mcp2);
lds.setManagedConnectionFactoryProperties(mcps);
lds.setDriverClass("org.jboss.jdbc.SomeDriver");
lds.setExceptionSorterClassName("org.jboss.jdbc.SomeExceptionSorter");
String[] depends = {"jboss:service=Naming", "jboss:service=Hypersonic,database=localDB"};