• About vijay

    http://vijaykandy.com

    Windows Management Instrumentation (WMI) from Java

    by  • September 25, 2009 • Java, WMI • 43 Comments

    This post shows how to instrument Windows resources using WMI and Java. The attached source code has 3 programs:

    1. PrintInstances.java prints all instances of a given class. For e.g., to retrieve a list of services use Win32_Service in WML.
    2. SimpleServiceManager.java starts or stops a given service.
    3. ServiceManager.java starts or stops a service by starting/stopping any dependents.

    Read more →

    Customizing java.sql.Connection, app server independent manner

    by  • May 27, 2008 • JEE • 0 Comments

    This post explains how to customize a java.sql.Connection by overriding default properties. I demonstrate the topic by changing the isolation level of Connection object obtained from WebSphere server. By default the connection obtained from WebSphere 5.1 JNDI has a transaction isolation level of “Repeatable Read”. If you ever wanted to change this level today’s...

    Read more →

    Pausing Message Delivery in JBoss

    by  • March 25, 2008 • JEE • 11 Comments

    In my previous post I described how to pause message delivery in WebSphere. Today I am going to show how to pause message delivery in JBoss. The technique is the same. Obtain MBean that control’s a Queue or Topic and invoke methods on it. Alternatively in JBoss you can go to JMX Console: Go...

    Read more →

    Pausing message delivery in WebSphere

    by  • March 24, 2008 • JEE • 14 Comments

    The advantage of using JMS Queues or Topics is that messages can be processed asynchronously. Sometimes you need to pause the processing temporarily. Say for example, your messages write data to a database but the database is shutdown in the evenings. What do you do with the messages in the Queue or Topic? The...

    Read more →