Hi, 


I have had some success connecting from Cold Fusion to jBoss using the following class 
to create a context to lookup my bean

package jboss;

import java.util.Properties;

import javax.naming.NamingException;
import javax.naming.Context;
import org.jnp.interfaces..NamingContextFactory;

public class JBossEnvironment
{
    public static Context getInitialContext()
        throws NamingException
    {
        Properties prop = new Properties();
        prop.put(Context.INITIAL_CONTEXT_FACTORY,
            "org.jnp.interfaces.NamingContextFactory");
        prop.put(Context.URL_PKG_PREFIXES,
            "org.jboss.naming");
        prop.put(Context.PROVIDER_URL,
            // Put something else here if the server is on another machine
            "127.0.0.1");
        NamingContextFactory ncf = new NamingContextFactory();
        return ncf.getInitialContext(prop);


    }
}

But now I run in to a different problem.

javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: com/trainseek/ejb/entity/category/CategoryHome]. 
Java exception occurred in call to method.

My Home class are in my classpath, double, triple, quadruple check,  What else 
(besides classpath) could be causing this problem?

TIA
Brandon



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to