Well, the service injection is different of course - and the CCM API is now located at
org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager
Note, that this will require AS 7.0.0.Beta4+. The actual CCM usage looks correct.
The only optimization in this area is not to have the valve enabled for deployment that don't need it.