Couple of things we need to check
1) How are you getting the Connection Handle from the ConnectionFactory ? Are
you passing the CRI details to the Connection Handle through the application
code?
eg
| DemoConnectionFactory cf = (DemoConnectionFactory)ctx.lookup("<JNDINAME>");
| DemoConnectionHandle connection = cf.getConnection(parameter1,
parameter2,......) ;
| where getConnection(parameter1,parameter2,.....) contains the parameter
which are used by ConnectionHandle implementation to generate the CRI object
which is later passed to the ConnecitonManager Pool.
2) Verify if the <connectionfactory-impl-class> implementation are passsing the
ConnectionRequestInfo appropriately when asked to .
Look at the jdbc resource adapter implemetaion of the
connectionfactory-impl-class here
http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss/resource/adapter/jdbc/WrapperDataSource.java
See how the WrappedConnectionRequestInfo is created in it and passed to
ConnectionManager in it
public Connection getConnection(String user, String password) throws
SQLException
| {
| ConnectionRequestInfo cri = new WrappedConnectionRequestInfo(user,
password);
| try
| {
| WrappedConnection wc = (WrappedConnection)
cm.allocateConnection(mcf, cri);
| wc.setDataSource(this);
| return wc;
| }
| catch (ResourceException re)
| {
| throw new NestedSQLException(re);
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130003#4130003
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130003
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user