WebLogic JCA
Components
Another major kind of component is the resource
adapter based on the Java connector architecture (JCA). Resource
adapters are a quite complex type of application as they can
establish communication to any sort of backend, support
transactions, and can use any kind of third party protocol for the
communication. They support outgoing and also incoming connections.
This result is another rather complex hierarchy
of MBeans for each connector module. The following script shows a
function which can provide a number of values and information for a
connector module:
def printConnectorRuntimeInformation(applicationName,connectorComponentRuntime):
myName = connectorComponentRuntime.getName()
print '\nFound JCA modul '+myName+' with current state='+
connectorComponentRuntime.getState()+'
and deployment state = ' +
getApplicationComponentState(connectorComponentRuntime)
# connection pools
myConPools = connectorComponentRuntime.getConnectionPools()
for myNextCon in myConPools:
print 'ConncetionPool: Name='+myNextCon.getName()+
'
State='+myNextCon.getState()+
' testable='+str(myNextCon.isTestable())+
'
TransactionSupport='+myNextCon.getTransactionSupport()
See the book code download for full
script
print '
ActiveCurrentCount='
+str(myNextCon.getActiveConnectionsCurrentCount())+
' ActiveHighCount='+str(myNextCon.getActiveConnectionsHighCount())+
'
FreeCurrentCount='+str(myNextCon.getFreeConnectionsCurrentCount())+
'
FreeHighCount='+str(myNextCon.getFreeConnectionsHighCount())+
' AverageActiveUsage='+str(myNextCon.getAverageActiveUsage())
Note that line breaks have in inserted here for
better presentation. For the execution of the script, those must be
removed.
The following listing provides an impression
about the complexity of a connector component and its sub MBeans. In
this case, the connection pool:
<...>/ComponentRuntimes/MyConnectorComponent>
ls()
dr--
ConnectionPools
dr--
ConnectorServiceRuntime
dr--
InboundConnections
dr--
WorkManagerRuntimes
-r--
ActiveVersion
true
-r--
ActiveVersionId
null
-r--
ComponentName
MyConnectorComponent.rar
-r--
Configuration
...
-r--
ConfigurationVersion
1.0
-r--
ConfiguredProperties
...
-r--
ConnectionPoolCount
1
-r--
DeploymentState
2
-r--
Description
JCA Implementation of the Test Connector
-r--
Descriptions
java.lang.String[JCA Implementation of the Test
Connector]
-r--
EISResourceId
...
-r--
EISType
Test Connector
-r--
InboundConnectionsCount
0
-r--
JndiName
jca/myTestConnector
-r--
Linkref
null
-r--
ModuleId
MyConnectorComponent.rar
-r--
Name
MyConnectorComponent
-r--
Schema
<?xml version = "1.0" encoding = "UTF-8"?>...
-r--
SpecVersion
1.5
-r--
State
Activated
-r--
SuspendedState
0
-r--
Type
ConnectorComponentRuntime
-r--
VendorName
MH-EnterpriseConsulting
-r--
Version
1.5
-r--
VersionId
null
-r--
Versioned
false
JCA connectors can have multiple connection
pools. The following listing provides a list of possible values that
are available for each connection pool.
<...>/ComponentRuntimes/MyConnectorComponent>
ls ('ConnectionPools/MyConnectorComponent')
-r--
ActiveConnectionsCurrentCount
0
-r--
ActiveConnectionsHighCount
0
-r--
AverageActiveUsage
0
-r--
CapacityIncrement
1
-r--
CloseCount
0
-r--
ConnectionFactoryClassName
com.mh_enterpriseconsulting.test.DataSourceImpl
-r--
ConnectionFactoryName
null
-r--
ConnectionIdleProfileCount
0
-r--
ConnectionIdleProfiles
null
-r--
ConnectionLeakProfileCount
0
-r--
ConnectionLeakProfiles
null
-r--
ConnectionProfilingEnabled
false
-r--
ConnectionsCreatedTotalCount
0
-r--
ConnectionsDestroyedByErrorTotalCount
0
-r--
ConnectionsDestroyedByShrinkingTotalCount
0
-r--
ConnectionsDestroyedTotalCount
0
-r--
ConnectionsMatchedTotalCount
0
-r--
ConnectionsRejectedTotalCount
0
-r--
ConnectorEisType
Test Connector
-r--
CurrentCapacity
0
-r--
EISResourceId
...
-r--
FreeConnectionsCurrentCount
0
-r--
FreeConnectionsHighCount
0
-r--
FreePoolSizeHighWaterMark
0
-r--
FreePoolSizeLowWaterMark
0
-r--
HighestNumWaiters
0
-r--
InitialCapacity
1
-r--
LogFileName
null
-r--
LogRuntime
null
-r--
MaxCapacity
10
-r--
MaxIdleTime
0
-r--
Name
jca/myTestConnector
-r--
NumUnavailableCurrentCount
0
-r--
NumUnavailableHighCount
0
-r--
NumWaiters
0
-r--
NumWaitersCurrentCount
0
-r--
NumberDetectedIdle
0
-r--
NumberDetectedLeaks
0
-r--
PoolName
jca/myTestConnector
-r--
PoolSizeHighWaterMark
0
-r--
PoolSizeLowWaterMark
0
-r--
ProxyOn
false
-r--
RecycledTotal
0
-r--
ResourceAdapterLinkRefName
null
-r--
ResourceLink
null
-r--
ShrinkCountDownTime
-2407850
-r--
ShrinkPeriodMinutes
15
-r--
ShrinkingEnabled
true
-r--
State
Running
-r--
Testable
false
-r--
TransactionSupport
LocalTransaction
-r--
Type
ConnectorConnectionPoolRuntime
|
|
|
Advanced WebLogic Server
Automation Book
The above is an excerpt from the
book
"Advanced
WebLogic Server Automation: Administration and Monitoring with WLST and
JMX". This book covers everything
administrators need to know for WebLogic scripting and
automation, and includes a comprehensive code download of
powerful WLST and JMX scripts.
|
|
|
|
Burleson is the American Team
Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright © 1996 - 2020
All rights reserved by
Burleson
Oracle ®
is the registered trademark of Oracle Corporation.
|
|