我正在研究JMS和t3协议。 JMS通过某些属性文件配置springframework。 Spring配置看起来像这样......
我使用的是spring3.1.0版本。
<?xml version="1.0" encoding="windows-1252" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<bean id="testJndiEnvironment.environment" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
</property>
</bean>
<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate"/>
<property name="jndiName" value="QueueConnectionFactory"/>
</bean>
<bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate"/>
<property name="jndiName" value="TestTopic"/>
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="defaultDestination" ref="destination"/>
</bean>
<bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destination" ref="destination"/>
<property name="messageListener">
<bean id="messageListener" class="com.aires.test.jms.listener.TestMessageListener"/>
</property>
<property name="messageSelector">
<bean id="TestMessageSelector.messageSelector" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
</property>
</bean>
</beans>
这个spring配置从其他服务器读取消息,其中创建了JSMServer,Topic和connectionFactory。
但Springcode已配置为抛出和异常。
<Dec 20, 2016, 1:00:53,139 AM EST> <Warning> <RMI> <BEA-080003> <A RuntimeException was generated by the RMI server: 1471831785
java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators].
java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
at weblogic.security.service.SecurityServiceManagerDelegate2Impl.seal(SecurityServiceManagerDelegate2Impl.java:484)
at weblogic.security.service.SecurityServiceManagerDelegate2Impl.getSealedSubjectFromWire(SecurityServiceManagerDelegate2Impl.java:177)
at weblogic.security.service.SecurityServiceManager.getSealedSubjectFromWire(SecurityServiceManager.java:426)
at weblogic.rjvm.MsgAbbrevInputStream.getSubject(MsgAbbrevInputStream.java:360)
at weblogic.rmi.internal.BasicServerRef.acceptRequest(BasicServerRef.java:996)
Truncated. see log file for complete stacktrace
我仔细检查了providerURL,主体和主题所有信息都是正确的。我搜索了很多东西,但找不到任何解决方案。 有人可以帮助确定我在这里失踪的东西。