Bugs item #690789, was opened at 2003-02-21 17:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=690789&group_id=22866

Category: JBossMQ
Group: v3.0 Rabbit Hole
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: David Saslawsky (saslawsky)
>Assigned to: Adrian Brock (ejort)
Summary: java.net.ConnectionException when deleting a temp Q

Initial Comment:
Cut/Paste from
http://www.jboss.org/forums/thread.jsp?forum=48&thread=20604&message=3739038&q=temporary#3739038

I get the same error on JBoss 3.0.4



import javax.naming.*;
import javax.jms.*;
import java.util.*;

public class TempQ
{
public static void main (String[] args)
throws Exception
{
QueueConnection conn1 = null;

try
{
System.out.println("GET JNDI ROOT CONTEXT");
Properties prop = new Properties();
prop.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
prop.put("java.naming.provider.url",
"jnp://localhost:1099");
Context context = new InitialContext(prop);

System.out.println("DO JNDI LOOKUP FOR QUEUE CONNECTION
FACTORY");
QueueConnectionFactory factory = (QueueConnectionFactory)
context.lookup("java:/ConnectionFactory");

System.out.println("CREATE A QUEUE CONNECTION");
conn1 = factory.createQueueConnection();

System.out.println("CREATE A QUEUE SESSION");
QueueSession session1 =
conn1.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);

System.out.println("CREATE A TEMPORARY QUEUE");
TemporaryQueue tempQueue = session1.createTemporaryQueue();

System.out.println("DELETE THE TEMPORARY QUEUE");
tempQueue.delete();

System.out.println("END OF TEST");
}
catch (Exception e)
{
e.printStackTrace();
}
finally
{
if (conn1 != null)
{
conn1.close();
}
}
}
}

----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2003-03-15 00:25

Message:
Logged In: YES 
user_id=9459

This was fixed back in February on branch 3.0 by
alindsey

Regards,
Adrian

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=690789&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to