@ SuppressWarnings ( "unchecked" ) protected void preLoad ( FFMQJNDIContext context ) throws NamingException { context . bind ( FFMQConstants . JNDI_CONNECTION_FACTORY_NAME , new FFMQConnectionFactory ( ( Hashtable < String , Object > ) context . getEnvironment ( ) ) ) ; context . bind ( FFMQConstants . JNDI_QUEUE_CONNECTION_FACTORY_NAME , new FFMQQueueConnectionFactory ( ( Hashtable < String , Object > ) context . getEnvironment ( ) ) ) ; context . bind ( FFMQConstants . JNDI_TOPIC_CONNECTION_FACTORY_NAME , new FFMQTopicConnectionFactory ( ( Hashtable < String , Object > ) context . getEnvironment ( ) ) ) ; }
Preload the context with factories