User development, A new message was posted in the thread "CachedConnectionManager API issue":
http://community.jboss.org/message/524442#524442 Author : Yong Hao Gao Profile : http://community.jboss.org/people/gaohoward Message: -------------------------------------------------------------- Hi Vicky, Thanks for look after my question. JBM 1.x has a test framework to simulate a JBoss server runtime environment. The simulated server can be configured to selectively start a set of services such as Transactions, Remoting, Datasources, JCA services etc for different tests. The above mentioned method is used to start a JCA service, like: if (jca) { startCachedConnectionManager(CACHED_CONNECTION_MANAGER_OBJECT_NAME); // DefaultDS specific startManagedConnectionFactory(DEFAULTDS_MANAGED_CONNECTION_FACTORY_OBJECT_NAME); startManagedConnectionPool( DEFAULTDS_MANAGED_CONNECTION_POOL_OBJECT_NAME, DEFAULTDS_MANAGED_CONNECTION_FACTORY_OBJECT_NAME, "ByContainer"); startConnectionManager(DEFAULTDS_CONNECTION_MANAGER_OBJECT_NAME, true, true, TRANSACTION_MANAGER_OBJECT_NAME, CachedConnectionManagerMBean.OBJECT_NAME, DEFAULTDS_MANAGED_CONNECTION_POOL_OBJECT_NAME); startWrapperDataSourceService(); } where CACHED_CONNECTION_MANAGER_OBJECT_NAME = new ObjectName("jboss.jca:service=CachedConnectionManager"); DEFAULTDS_MANAGED_CONNECTION_FACTORY_OBJECT_NAME = new ObjectName("jboss.jca:name=DefaultDS,service=ManagedConnectionFactory"); DEFAULTDS_MANAGED_CONNECTION_POOL_OBJECT_NAME = new ObjectName("jboss.jca:name=DefaultDS,service=ManagedConnectionPool"); DEFAULTDS_CONNECTION_MANAGER_OBJECT_NAME = new ObjectName("jboss.jca:name=DefaultDS,service=LocalTxCM"); TRANSACTION_MANAGER_OBJECT_NAME = new ObjectName("jboss:service=TransactionManager"); My understanding is that it simulates a JCA start up in a JBoss server. This works with AS 4 lib set. Now I need this work with AS 5 too. It turned out AS 5 has changed the API. I don't know how to do it. I attached the source file (ServiceContainer) that contains the above code piece for your info. Thanks. -------------------------------------------------------------- To reply to this message visit the message page: http://community.jboss.org/message/524442#524442
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
