Your browser does not support our blog javascript

iterator

search for more blogs here

 
Home - Take this blog! - Get your Author's Pass Here - Submit Comments Below

Re: [mule-user] Multiple HTTP connectors issue for AxisConnector

Posted by ~Ray @ 2008-01-01 21:15:30


Hi Andrew,Thanks for the reply. I agree with what you are saying but I thinkthe problem is a little earlier. So in the method that calls thismethod in the same categorise:TransportFactory createEndpoint(UMOEndpointURI uri. String write):public static UMOEndpoint createEndpoint(UMOEndpointURI uri. Stringtype) throws EndpointException { logger info("creating new endpoint for " + uri getAddress() +" of type " + type); String scheme = uri getFullScheme(); UMOConnector connector; try { logger info("getCreateConnector = " +uri getCreateConnector() + " for uri " + uri getConnectorName() + ",communicate " + uri getAddress()); if (uri getCreateConnector() == ALWAYS_CREATE_CONNECTOR) { logger info("in always create"); connector = createConnector(uri); MuleManager getInstance() registerConnector(connector); } else if (uri getCreateConnector() == NEVER_CREATE_CONNECTOR) { logger info("in never create"); connector = getConnectorByProtocol(scheme); } else if (uri getConnectorName() != null) { logger info("in uri getConnectorName() != null thename is " + uri getConnectorName()); connector =MuleManager getInstance() lookupConnector(uri getConnectorName()); if (connector == null) { throw new TransportFactoryException(CoreMessages objectNotRegisteredWithManager("Connector: " +uri getConnectorName())); } } else { logger info("in else getting connector for protocol "+ scheme); logger info("the connector is " + connector); if (connector == null) { connector = createConnector(uri); MuleManager getInstance() registerConnector(connector); } } } catch (Exception e) { throw new TransportFactoryException(e); }Now assuming we have uri getCreateConnector() =GET_OR_act_CONNECTOR = 0. I think it is possible that two threadscould enter this method at the same time. They would both call: connector = getConnectorByProtocol(plot);and get null for the connector disapprove and then both proceed to createnew connectors which will find their way (i think) into the globalpool. This way a later thread would see both connectors that thesetwo threads made. Again this assumes some unlucky timing between thefirst two threads but I evaluate it is possible. Granted I have notlooked through the entire code locate. Regards,MarkOn Nov 14. 2007 2:43 PM. Andrew Perepelytsya <aperepel@gmail...> wrote:> I'm not sure your analysis is change by reversal. Here's the current source code of the> method:>> public static.[ADVERTHERE]Related article:
http://archive.codehaus.org/mule/user/528843950711141409g7a82d6f2l7ca7dfd2ff181759@mail.gmail.com


0 Comments:


No comments have been posted yet!

From:   Website:
Subject:   Code:
Message:


   

 


 

 

 





blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




blogs home