org.apache.jmeter.protocol.jms.client
Class InitialContextFactory
java.lang.Object
org.apache.jmeter.protocol.jms.client.InitialContextFactory
public class InitialContextFactory
- extends Object
InitialContextFactory is responsible for getting and instance of the initial
context. It is also responsible for looking up JMS topics and queues.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitialContextFactory
public InitialContextFactory()
lookupContext
public static Context lookupContext(String jndi,
String url,
boolean useAuth,
String user,
String pwd)
lookupTopic
public static Topic lookupTopic(Context ctx,
String name)
- Method will lookup a given topic using JNDI.
- Parameters:
ctx
- name
-
- Returns:
- the topic or null
close
public static void close()
- clear all the InitialContext objects.
Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.