Sun One - Weblogic interoperability
I have a web app on Sun One. I am trying to use an EJB on a weblogic server. I get the following error.
Unexpected exception in LoginManagerHome:org.omg.CORBA.INITIALIZE: can't instantiate custom socket factory: weblogic.corba.client.cluster.ORBSocketFactory vmcid: 0x0 minor code: 0 completed: No
I have added the weblogic jar and the wlclient.jar to the path. Can anyone point me in the right direction?
[425 byte] By [
echurleya] at [2007-10-2 15:38:32]

We are using spring to do lookup.
<bean id="registrationService"
class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean2" lazy-init="true">
<property name="jndiEnvironment">
<props>
<prop key="java.naming.factory.initial">
weblogic.jndi.WLInitialContextFactory
</prop>
<prop key="java.naming.provider.url">${regEJBURL}</prop>
</props>
</property>
<property name="jndiName">
<value>ejb.PortalInterface</value>
</property>
<property name="businessInterface">
<value>com.bcbsma.providerreg.ejb.portalinterface.ProviderPortalInterface</value>
</property>
</bean>
SimpleRemoteStatelessSessionProxyFactoryBean can be substituted for SimpleRemoteStatelessSessionProxyFactoryBean2.
It's just overridden to correct a bug in spring m3 that's fixed in m4:
package org.springframework.ejb.access;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import javax.naming.NamingException;
public class SimpleRemoteStatelessSessionProxyFactoryBean2 extends
SimpleRemoteStatelessSessionProxyFactoryBean {
public void afterPropertiesSet() throws NamingException {
Properties properties = new Properties();
for (Iterator iter = getJndiEnvironment().entrySet().iterator(); iter.hasNext();) {
Map.Entry property = (Map.Entry) iter.next();
properties.setProperty((String) property.getKey(),(String) property.getValue());
}
setJndiEnvironment(properties);
super.afterPropertiesSet();
}
}