Skip to content

Tuxedo

June 13, 2007

Creating a sessionPool from SessionPoolManager.
Closing (Commit/Abort) transaction gives the connection back to the pool.

import bea.jolt.pool.SessionPoolManager;
import bea.jolt.pool.Transaction;
import bea.jolt.pool.UserInfo;
import bea.jolt.pool.SessionPool;

///code….
UserInfo userInfo = new UserInfo();
userInfo.setAppPassword( msProperties.getProperty(“appPassword”) );
userInfo.setUserName( msProperties.getProperty(“user”) );
userInfo.setUserPassword( msProperties.getProperty(“password”) );
userInfo.setUserRole( msProperties.getProperty(“userrole”) );

sessionPoolManager = new SessionPoolManager();

sessionPoolManager.createSessionPool( new String[] { machineAdd },
new String[] { machineAdd },1, 60, userInfo, POOL_MS );

sessionPool = (SessionPool) sessionPoolManager.getSessionPool(POOL_MS) ;//POOL_MS is just another name
if (sessionPool == null)
logger.log(Level.DEBUG, “Couldn’t create SessionPool.”) ;
sessionPool.setKeepAlive(true);
transaction = sessionPool.startTransaction(TRANSACTION_TIMEOUT) ; // We set this to 120 seconds
Result result = sessionPool.call(serviceName, inputDataSet, null) ;
transaction.commit() ;
////code ….

Updated UBBConfig with MaxAccessers and MaxWSClients count and SanityScan Frequency.
Need to understand the simple operating system concepts to go ahead…

URL’s to Refer to :
Too Good ! : Tuxedo Architecture
Administering Tuxedo Application
Installing Tuxedo
Using BEA Jolt

Forums:
Troubleshooting Tuxedo
Tuxedo Forum on Dev2Dev
Tuxedo Support Patterns
Tuning a Tuxedo Application

BEA Tuxedo 9.1 Doc

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: