[JCA/JBoss] - Re: How to configure the minsize and maxsize of connectionpo
by adrianï¼ jboss.org
"liujw2001" wrote : Thank you for your help.
|
| I have another question. If a ManagedConnection is used by connection, Can this ManagedConnection be matched with a new connecion?
|
PLEASE CREATE ONE THREAD PER QUESTION.
Multiple questions on one thread makes it very difficult to follow,
both for those answering the questions and those searching for answers
to similar questions later.
anonymous wrote :
| If so, I have the following question:
|
| If one connection "A" get a ManagedConnection from pool which is used by another connection "B". After the first one "A" finished and want to close, dose it have some effection to connection "B"? for example, if "A" invokes "close()", the ManagedConnection will invoke the "cleanup()" function, does it effect the connection "B"? Is the ManagedConnection pushed into pool before the "A" finished ?
|
The connection does not "get" a ManagedConnection.
The ConnectionManager retrieves a "connection handle" for a ManagedConnection
to give to the user application.
Whether there are mutliple connection handles
for a ManagedConnection depends upon the ConnectionManager configuration
(e.g. transaction affinity or interleaving - not relevant in your case)
and what the application is doing
(e.g. opening multiple connections handles in the same transaction)
Regardless, the ManagedConnection won't be returned to the pool until ALL
connection handles associated with it are closed by the application(s)
(and in the case of transaction affinity until the transaction ends).
THIS IS ANSWERED IN THE SPEC. See the javaee connector architecture 1.5 spec available from www.jcp.org
If you think the spec is unclear, speak to the author(s). :-)
There will be an e-mail address associated with the spec where you can post comments.
anonymous wrote :
| The second question is why jobss service does't invoke "mat{c}hManagedConnection{s}()" which is implemented in MyManagecConnectionFactory?
|
THIS IS ALSO SPEC DEFINED BEHAVIOUR, see the section on pooling.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096101#4096101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096101
18Â years, 9Â months
[JBoss Seam] - Re: Very slow initialization of Captcha
by Toby451
Hi Peter & Shane,
As can be seen below it seems that HeirarchicalLoaderRepository3 is slow at two points during Captcha init.
I am still clueless on this one bu will continue to investigate. Any insightful points will be much appreciated.
Cheers,
Tobias
| 15:57:45,974 INFO [Contexts] starting up: org.jboss.seam.captcha.captchaImage
| 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.captcha.captchaImage
| 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.captcha.captchaImage
| 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.captcha.captchaImage
| 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.captcha.captchaImage
| 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:57:45,974 DEBUG [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.captcha.captchaImage
| 15:57:45,992 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8d02eb{ url=null ,addedOrder=0}
| 15:57:45,992 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ba9aca{ url=null ,addedOrder=0}
| 15:57:46,032 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@92949f{ url=null ,addedOrder=0}
| 15:57:55,165 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ae30a{ url=null ,addedOrder=0}
| 15:58:25,241 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@4b44f0{ url=null ,addedOrder=0}
| 15:58:25,242 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@119ca2c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@19afa26{ url=null ,addedOrder=0}
| 15:58:25,243 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,243 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,243 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,243 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,243 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,243 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,244 DEBUG [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.captcha.captchaImage
| 15:58:25,244 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,244 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,244 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,244 DEBUG [Events] Processing event:org.jboss.seam.postInitialization
| 15:58:25,244 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,244 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,245 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,245 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,245 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,245 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,245 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
| 15:58:25,245 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,246 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
| 15:58:25,247 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,247 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
| 15:58:25,248 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Component] initializing new instance of: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Component] done initializing: org.jboss.seam.core.events
| 15:58:25,248 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096100#4096100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096100
18Â years, 9Â months