Hi,
I'm really new to spring and I hadn't encountered any serious problem using it until today... there's a first time for everything I guess :?
I'm using different "base services" (as we call them in my company, they are in fact SLSB's) that are deployed on different weblogic instances.
So, I'm defining 2 SimpleRemoteStatelessSessionProxyFactoryBean in my applicationContext.xml with the proper jndi names and environment properties. Everything (creating the beans, performing lookup,..) is going fine until I finally make use of those SLSB's. It seems that one of the SLSB's is trying to use jndi environment properties from the other SLSB (like java.naming.security.principal) and as they're not the same, I got a java.lang.SecurityException.
When using them apart, everything is ok... the problem occurs only when the 2 SLSB's are defined at the same time (even if I only make use of only one).
Maybe something is wrong with the jndi stuff ?
applicationContext.xml
Any help would be greatly appreciated!Code:<bean id="service1" class="...SimpleRemoteStatelessSessionProxyFactoryBean"> <property name="jndiEnvironment"> <props> <prop key="java.naming.factory.initial"> weblogic.jndi.WLInitialContextFactory </prop> <prop key="java.naming.provider.url">t3://server1:7215</prop> <prop key="java.naming.security.principal">user1</prop> <prop key="java.naming.security.credentials">pw1</prop> </props> </property> <property name="jndiName"> <value>ejb/service1</value> </property> <property name="businessInterface"> <value>...Service1</value> </property> </bean> <bean id="employerIdentifier" class="...SimpleRemoteStatelessSessionProxyFactoryBean"> <property name="jndiEnvironment"> <props> <prop key="java.naming.factory.initial"> weblogic.jndi.WLInitialContextFactory </prop> <prop key="java.naming.provider.url">t3://server2:7027</prop> <prop key="java.naming.security.principal">user2</prop> <prop key="java.naming.security.credentials">pw2</prop> </props> </property> <property name="jndiName"> <value>ejb/service2</value> </property> <property name="businessInterface"> <value>...Service2</value> </property> </bean>
Thanks a lot!


Reply With Quote