Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Change Dinamically on Runtime the resourceReference/jndiName of a Queue/ConnFactory.

  1. #11

    Default

    Quote Originally Posted by Gary Russell View Post
    You need to give the container a reference to a connection factory.

    You should use a DefaultMessageListenerContainer (DMLC), not a SMLC.
    Thank you...i think that i found another problem in this context:


    Code:
    <beans:bean id="outQueue"
    class="org.springframework.jndi.JndiObjectFactoryBean" depends-on="PLUGCacheManager">
    <beans:property name="jndiTemplate" ref="jndiTemplate" />
    <beans:property name="jndiName" value="#{ PLUGCacheManager.queueReference }" />
    <beans:property name="resourceRef" value="true" />
    <beans:property name="lookupOnStartup" value="true" />
    <beans:property name="proxyInterface" value="javax.jms.Destination" />
    <!--<beans:property name="cache" value="false"/>
    --></beans:bean>
    
    I get the error MQJMS0003: Destinazione non corretta o non pił valida; nested exception is javax.jms.InvalidDestinationException: MQJMS0003: Destinazione non corretta o non pił valida
    
    like i told before.
    
    I try with javax.jms.Queue and expectedType com.ibm.mq.MQQueue but i get the same error.
    Why if i set lookupOnStartup to true and i set the proxyInterface (or expectedType) too i get this error?
    
    What is the problem in this case?
    Really Thanks again.

    IlPistolero

  2. #12
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,142

    Default

    I don't know, sorry; and I don't have access to a WAS/MQ environment to help you debug it.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #13

    Default

    Quote Originally Posted by Gary Russell View Post
    I don't know, sorry; and I don't have access to a WAS/MQ environment to help you debug it.
    Hi gary no problem..i found a related issue to this problem...take a look, it's a bug opened since 2 years and 6 weeks..(since spring 3.0.3)...https://jira.springsource.org/browse...story-tabpanel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •