org.ow2.easybeans.examples.pool
Class Client

java.lang.Object
  extended by org.ow2.easybeans.examples.pool.Client

public final class Client
extends Object

Access to the bean with a limited Pool size.

Author:
Florent BENOIT

Method Summary
static void closeJMSObjects()
          Close the JMS objets that have been used.
static void initJMS()
          Initialize the JMS objects.
static void main(String[] args)
          Execute the client code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Execute the client code.

Parameters:
args - the client arguments

initJMS

public static void initJMS()
                    throws javax.jms.JMSException,
                           NamingException
Initialize the JMS objects.

Throws:
javax.jms.JMSException - if JMS objects are not initialized
NamingException - if context is not found

closeJMSObjects

public static void closeJMSObjects()
                            throws javax.jms.JMSException
Close the JMS objets that have been used.

Throws:
javax.jms.JMSException - if objects can't be closed


Copyright © 2006-2010 OW2 Consortium. All Rights Reserved.