org.apache.jmeter.protocol.jms.client

Class 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.

Method Summary

static void
close()
clear all the InitialContext objects.
static Context
lookupContext(String jndi, String url, boolean useAuth, String user, String pwd)
static Topic
lookupTopic(Context ctx, String name)
Method will lookup a given topic using JNDI.

Method Details

close

public static void close()
clear all the InitialContext objects.

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

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.