Community

Binding a SessionFactory

reply from Lulseged Zerfu in JNDI and Naming - View the full discussion

Hi

 

I have posted the stack trace earlier. I don't know if the format is correct. The code is not that much.

 

package com.ericsson.ims.pag.xdms.resource.list.session;

 

import java.util.Hashtable;

 

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.naming.spi.InitialContextFactory;

 

public class SessionFactoryContext implements InitialContextFactory
{

 

    public Context getInitialContext(Hashtable<?, ?> environment) throws NamingException
    {
        return new InitialContext(environment);
    }
}

 

 

Lulseged

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community