axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shen, Chunxia " <chunxia.s...@citi.com>
Subject axis2: TemporaryTemplate not found
Date Mon, 03 Nov 2008 11:05:50 GMT
Hi all,

my project is built on axis2 , with weblogic jms as transport .
 weblogic version 8.1
 jdk version 1.4
 axis2 version 2.1.4
I have changed the axis2.xml to suit for jms transport both on client and server. 
unluckily , still got the error of "temporary queue can not be created for response".

so I use the below tesing code to test whether I can create temporary queue.

import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;

public class TempQueueTester {
    public static void main(String[] args) throws Exception {
        try {
            new TempQueueTester().sendWLS();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void sendWLS() throws Exception {
        Hashtable props = new Hashtable();
        props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
        props.put("java.naming.provider.url", "t3://169.181.236.80:80");
        Context jndiContext = new InitialContext(props);

        ConnectionFactory connectionFactory = (ConnectionFactory) jndiContext.lookup("weblogic.jms.ConnectionFactory");
        Destination dest = (Destination) jndiContext.lookup("myjmsqueue");

        Connection connection = connectionFactory.createConnection();
        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

     session.createTemporaryQueue();
     
     
      //  co.createTemporaryDestination();

        MessageProducer producer = session.createProducer(dest);

        for (int i=0; i<10; i++) {
            System.out.println("Sending message : " + i);
            TextMessage m = session.createTextMessage();
            m.setText("Message : " + i);
            producer.send(m);
        }

        connection.close();
    }
}


got  this error:

weblogic.jms.common.JMSException: TemporaryTemplate not found.
Please make sure that you have configured a TemporaryTemplate for your JMSServer(s).
	at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
	at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:164)
	at weblogic.jms.dispatcher.DispatcherImpl_815_WLStub.dispatchSyncFuture(Unknown Source)
	at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSync(DispatcherWrapperState.java:345)
	at weblogic.jms.client.JMSSession.createTemporaryDestination(JMSSession.java:2077)
	at weblogic.jms.client.JMSSession.createTemporaryQueue(JMSSession.java:1767)
	at webserviceSample.TempQueueTester.sendWLS(TempQueueTester.java:49)
	at webserviceSample.TempQueueTester.main(TempQueueTester.java:31)
Caused by: weblogic.jms.common.JMSException: TemporaryTemplate not found.
Please make sure that you have configured a TemporaryTemplate for your JMSServer(s).
	at weblogic.jms.frontend.FEManager.getTemporaryDestinationFactory(FEManager.java:129)
	at weblogic.jms.frontend.FEConnection.createTemporaryDestination(FEConnection.java:1537)
	at weblogic.jms.frontend.FEConnection.invoke(FEConnection.java:1698)
	at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
	at weblogic.jms.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:132)
	at weblogic.jms.dispatcher.DispatcherImpl.dispatchSyncFuture(DispatcherImpl.java:211)
	at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
	at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
	at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
	at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
	at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)



Although I created a TemporaryTemplate to bind to my jms server. still got this error.








He Jinda(Black)
Citicorp Software and Technology Services(Shanghai) Limited
E-mail: jinda.he@citi.com
Tel: (86 21)38954626-61246  


Thanks & Regards


Shen Chunxia (Jennie)
ReBT
Tel: 86-21-38954626 ext. 61104
chunxia.shen@citigroup.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message