1

I have two connection factories under Resources ->JMS ->Connection Factories.

1) ConnectionFactory

2) IntegrationConnectionFactory

I want to modify the maximum Connection of connection pool under both the connection factories. Resources ->JMS ->Connection Factories -> ConnectionFactory -> Connection Pool -> Maximum Connection.

Can someone please help me to write Jython script to modify the maximum connection of connection pool under connection Factories.

Gas
  • 17,601
  • 4
  • 46
  • 93
codehunter
  • 81
  • 2
  • 14
  • Please someone help me to fix it – codehunter Apr 09 '17 at 10:48
  • Rather than ask the community to write the script for you, you're more likely to get the help you're seeking if you post a script that you've written that is not working. If you don't know where to start, you should ask that specific question and someone will likely chime in with pointers. – F Rowe Apr 10 '17 at 13:25

1 Answers1

3

Here is an example,

wsadmin>confactory = AdminConfig.getid('/J2CConnectionFactory:ConnectionFactory/')

wsadmin>conpool = AdminConfig.showAttribute(confactory, 'connectionPool')

wsadmin>AdminConfig.modify(conpool, '[[maxConnections 50]]')

wsadmin>print AdminConfig.showall(conpool)
[agedTimeout 0]
[connectionTimeout 180]
[freePoolDistributionTableSize 0]
[maxConnections 50]
[minConnections 1]
...
njr
  • 3,399
  • 9
  • 7