This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final ObjectName sibMes = new ObjectName( | |
"WebSphere:type=SIBMessagingEngine,*"); | |
final Set sibMesSet = server.queryNames(sibMes, null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final MBeanFactory mbfactory = AdminServiceFactory.getMBeanFactory(); | |
final MBeanServer server = mbfactory.getMBeanServer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Properties props = new Properties(); | |
props.put(AdminClient.CONNECTOR_TYPE,AdminClient.CONNECTOR_TYPE_SOAP); | |
props.put(AdminClient.CONNECTOR_HOST, hostname); | |
props.put(AdminClient.CONNECTOR_PORT, port); | |
props.put(AdminClient.USERNAME, username); | |
props.put(AdminClient.PASSWORD, password); | |
props.put(AdminClient.CONNECTOR_SECURITY_ENABLED, "true"); | |
props.put("javax.net.ssl.trustStore", trustStoreLocation); | |
props.put("javax.net.ssl.trustStoreType", "JKS"); | |
props.put("javax.net.ssl.keyStore", keyStoreLocation); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.microsoft.sqlserver.jdbc.SQLServerException: The operation could not be | |
performed because OLE DB provider "SQLNCLI10" for linked server "TEST-DB" was | |
unable to begin a distributed transaction. | |
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source) | |
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void getAllQueuesInfo() { | |
try | |
{ | |
final ObjectName sibMes = new ObjectName( | |
"WebSphere:type=SIBMessagingEngine,*"); | |
final Set sibMesSet = AdminClient.queryNames(sibMes, null); | |
for (Iterator i = sibMesSet.iterator(); i.hasNext();) { | |
final ObjectName meObj = (ObjectName) i.next(); | |
final String meName = meObj.getKeyProperty("name"); | |
final ObjectName queuePoints = new ObjectName( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void executeQuery() { | |
logger.info("executeQuery()... "+getQuery()); | |
super.executeQuery(); | |
logger.info("executeQuery()... completed: "+getFetchedRowCount()); | |
} |
NewerOlder