axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shen, Chunxia " <>
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) {

    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://");
        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);

      //  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);


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(
	at weblogic.rmi.internal.BasicRemoteRef.invoke(
	at weblogic.jms.dispatcher.DispatcherImpl_815_WLStub.dispatchSyncFuture(Unknown Source)
	at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSync(
	at weblogic.jms.client.JMSSession.createTemporaryDestination(
	at weblogic.jms.client.JMSSession.createTemporaryQueue(
	at webserviceSample.TempQueueTester.sendWLS(
	at webserviceSample.TempQueueTester.main(
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(
	at weblogic.jms.frontend.FEConnection.createTemporaryDestination(
	at weblogic.jms.frontend.FEConnection.invoke(
	at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(
	at weblogic.jms.dispatcher.DispatcherImpl.dispatchAsyncInternal(
	at weblogic.jms.dispatcher.DispatcherImpl.dispatchSyncFuture(
	at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
	at weblogic.rmi.internal.BasicServerRef.invoke(
	at weblogic.rmi.internal.BasicServerRef$
	at weblogic.rmi.internal.BasicServerRef.handleRequest(
	at weblogic.rmi.internal.BasicExecuteRequest.execute(
	at weblogic.kernel.ExecuteThread.execute(

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
Tel: (86 21)38954626-61246  

Thanks & Regards

Shen Chunxia (Jennie)
Tel: 86-21-38954626 ext. 61104 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message