Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: CommonContext.java 130 2009-06-05 17:01:24Z karianna $
   * $URL: https://ikasaneip.svn.sourceforge.net/svnroot/ikasaneip/tags/ikasan-0.7.3/common/src/main/java/org/ikasan/common/CommonContext.java $
   * 
   * ====================================================================
   * Ikasan Enterprise Integration Platform
   * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the 
  * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
  * or see the FSF site: http://www.fsfeurope.org/.
  * ====================================================================
  */
 package org.ikasan.common;
 
Common context provides the base interface for all context access.

Author(s):
Ikasan Development Team
   
 public interface CommonContext
 { 
    
endpoint prefix
 
     public String ENDPOINT_NAME_PREFIX = "jboss.j2ee:binding=message-inflow-driven-bean,jndiName=";
    
endpoint suffix
 
     public String ENDPOINT_NAME_SUFFIX = ",plugin=invoker,service=EJB";
    
stop method
 
     public String STOP_METHOD = "stop";
    
destroy method
 
     public String DESTROY_METHOD = "destroy";
    
    
standard location of the Transaction Manager
 
     public String TRANSACTION_MANAGER =
         ResourceLoader.getInstance().getProperty("transaction.manager"); //$NON-NLS-1$
     
standard location of the User Transaction
 
     public String USER_TRANSACTION =
         ResourceLoader.getInstance().getProperty("user.transaction"); //$NON-NLS-1$
     
    
standard JNDI for non-managed clients
 
     public final String JAVA_NAMING_FACTORY_INITIAL_CONST = "java.naming.factory.initial"//$NON-NLS-1$
     
Initial Naming Factory
 
         ResourceLoader.getInstance().getProperty(); //$NON-NLS-1$
 
    
standard JNDI for factory of URL packages
 
     public final String JAVA_NAMING_FACTORY_URL_PKGS_CONST = "java.naming.factory.url.pkgs";
    
Initial Factory for URL Packages
 
         ResourceLoader.getInstance().getProperty(); //$NON-NLS-1$
 
    
JNDI URL prefix constant
 
     public final String JAVA_NAMING_PROVIDER_URL_PREFIX_CONST = "java.naming.provider.url.prefix";
    
Initial JNDI URL prefix
 
         ResourceLoader.getInstance().getProperty(); //$NON-NLS-1$
 
    
standard location of the Global JMS connection factory
 
         ResourceLoader.getInstance().getProperty("global.jms.connectionFactory"); //$NON-NLS-1$
     
standard location of the Global XA JMS connection factory
 
         ResourceLoader.getInstance().getProperty("global.jms.xa.connectionFactory"); //$NON-NLS-1$
 
    
Lookup the objectName from the given object context

Parameters:
object
objectName
Returns:
referenced object
Throws:
javax.naming.NamingException
 
     public Object lookup(Object objectString objectName)
         throws NamingException;

    
Lookup the objectName from the default context

Parameters:
objectName
Returns:
Object bound to this name
Throws:
javax.naming.NamingException
 
     public Object lookup(String objectName)
         throws NamingException;

    
Bind the objectValue to the given objectName in the default context

Parameters:
objectName
objectValue
Throws:
javax.naming.NamingException
    public void bind(String objectNameObject objectValue)
        throws NamingException;

    
Bind the objectValue to the given objectName in the given context

Parameters:
object
objectName
objectValue
Throws:
javax.naming.NamingException
    public void bind(Object objectString objectNameObject objectValue)
        throws NamingException;

    
Unbind the objectName from the default context

Parameters:
objectName
Throws:
javax.naming.NamingException
    public void unbind(String objectName)
        throws NamingException;

    
Unbind the objectName from the given context

Parameters:
object
objectName
Throws:
javax.naming.NamingException
    public void unbind(Object objectString objectName)
        throws NamingException;

    
Rebind the objectValue as the objectName in the default context

Parameters:
objectName
objectValue
Throws:
javax.naming.NamingException
    public void rebind(String objectNameObject objectValue)
        throws NamingException;

    
Rebind the objectValue as the objectName in the given context

Parameters:
object
objectName
objectValue
Throws:
javax.naming.NamingException
    public void rebind(Object objectString objectNameObject objectValue)
        throws NamingException;
New to GrepCode? Check out our FAQ X