FileDocCategorySizeDatePackage
Client.javaAPI DocJBoss 4.2.11813Fri Jul 13 20:55:00 BST 2007org.jboss.tutorial.dependency.client

Client

public class Client extends Object
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      InitialContext jndiContext = new InitialContext();
        
      try
      {
         HasXmlMBeanDependency dependency = (HasXmlMBeanDependency)jndiContext.lookup("HasXmlMBeanDependencyBean/remote");
         dependency.noop();
         System.out.println("Lookup and bean access succeeded");
      }
      catch (Exception e)
      {
         System.out.println("Caught unsatisfied dependency exception " + e);
      }