[jboss-jira] [JBoss JIRA] Closed: (JBMESSAGING-625) ClassCastException String to ManagedDestination

Tim Fox (JIRA) jira-events at jboss.com
Thu Oct 26 15:30:42 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBMESSAGING-625?page=all ]

Tim Fox closed JBMESSAGING-625.
-------------------------------

    Resolution: Done
      Assignee: Tim Fox  (was: Ovidiu Feodorov)

> ClassCastException String to ManagedDestination
> -----------------------------------------------
>
>                 Key: JBMESSAGING-625
>                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-625
>             Project: JBoss Messaging
>          Issue Type: Patch
>          Components: Messaging Core
>    Affects Versions: 1.2.0.Alpha1
>            Reporter: ya xiang
>         Assigned To: Tim Fox
>             Fix For: 1.2.0.Alpha2, 1.2.0.Alpha1
>
>         Attachments: DestinationJNDIMapper.java.patch.txt
>
>
> in code :/trunk/src/main/org/jboss/jms/server/DestinationJNDIMapper.java
> there are two type errors.
> maybe it should be:
> 263 Set queues=new HashSet(queueMap.values());
> 265 Set topics = new HashSet(topicMap.values());
> 	
> source code as follows:
>      67    // Map <name , destination holder>
>      68    private Map queueMap;
>      69    private Map topicMap;
>     261    public void stop() throws Exception
>     262    {
>     263       Set queues = new HashSet(queueMap.keySet());
>     264       
>     265       Set topics = new HashSet(topicMap.keySet());
>     266       
>     267       // remove all destinations from JNDI
>     268       for(Iterator i = queues.iterator(); i.hasNext(); )
>     269       {
>     270          unregisterDestination((ManagedDestination)i.next());         
>     271       }
>     272 
>     273       for(Iterator i = topics.iterator(); i.hasNext(); )
>     274       {
>     275          unregisterDestination((ManagedDestination)i.next());
>     276       }
>     277 
>     278       initialContext.unbind(serverPeer.getDefaultQueueJNDIContext());
>     279       initialContext.unbind(serverPeer.getDefaultTopicJNDIContext());
>     280 
>     281       initialContext.close();
>     282    }
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list