throw new BuildException("ImageProxy unable to retrieve image: " + e.toString()); } catch (java.lang.Exception e) { throw new BuildException("ImageProxy unable to retrieve image: " + e.toString());
public void run() { try { MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext(); Event<MessageContext> event = new Event(msgCtx); subscriptions = subscriptionManager.getMatchingSubscriptions(event); } catch (EventException e) { handleException("Matching subscriptions fetching error", e); } for (Subscription subscription : subscriptions) { synCtx.setProperty(SynapseConstants.OUT_ONLY, "true"); // Set one way message for events try { getEndpointFromURL(subscription.getEndpointUrl(), synCtx.getEnvironment()) .send(MessageHelper.cloneMessageContext(synCtx)); } catch (AxisFault axisFault) { log.error("Event sending failure " + axisFault.toString()); } if (log.isDebugEnabled()) { log.debug("Event push to : " + subscription.getEndpointUrl()); } } } }
public void run() { try { MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext(); Event<MessageContext> event = new Event(msgCtx); subscriptions = subscriptionManager.getMatchingSubscriptions(event); } catch (EventException e) { handleException("Matching subscriptions fetching error", e); } for (Subscription subscription : subscriptions) { synCtx.setProperty(SynapseConstants.OUT_ONLY, "true"); // Set one way message for events try { getEndpointFromURL(subscription.getEndpointUrl(), synCtx.getEnvironment()) .send(MessageHelper.cloneMessageContext(synCtx)); } catch (AxisFault axisFault) { log.error("Event sending failure " + axisFault.toString()); } if (log.isDebugEnabled()) { log.debug("Event push to : " + subscription.getEndpointUrl()); } } } }
System.out.println("Subscription identifier: " + subId); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("UnSubscribe Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); "SynapseSubscription Renew Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("GetStatus Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString());
System.out.println("Subscription identifier: " + subId); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("UnSubscribe Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); "SynapseSubscription Renew Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("GetStatus Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString());
String msg = Messages.getMessage("getMessageContextError", af.toString()); log.debug(msg); return null;
System.out.println("Subscription identifier: " + subId); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("UnSubscribe Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); "SynapseSubscription Renew Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString()); System.out.println("GetStatus Response Received: " + response.toString()); } catch (AxisFault e) { System.out.println("Fault Received : " + e.toString()); System.out.println("Fault Code : " + e.getFaultCode().toString());
String msg = Messages.getMessage("getMessageContextError", af.toString()); log.debug(msg); return null;
} catch (AxisFault e) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.couldNotSendCloseResponse, sequenceId, e.toString()); throw new SandeshaException(message, e);
String message = SandeshaMessageHelper.getMessage( SandeshaMessageKeys.couldNotSendTerminate, e.toString()); throw new SandeshaException(message, e); } finally {
public static EPRDecorator getEPRDecorator(ConfigurationContext context) throws SandeshaException { EPRDecorator decorator = null; AxisConfiguration config = context.getAxisConfiguration(); Parameter p = config.getParameter(Sandesha2Constants.EPR_DECORATOR); if(p != null) decorator = (EPRDecorator) p.getValue(); if (decorator != null) return decorator; try { //Currently module policies are used to find the decorator impl. These cant be overriden String decoratorClassStr = getDefaultPropertyBean(context.getAxisConfiguration()).getEPRDecoratorClass(); decorator = getEPRDecoratorInstance(decoratorClassStr,context); p = new Parameter(Sandesha2Constants.EPR_DECORATOR,decorator); config.addParameter(p); } catch(AxisFault e) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotInitEPRDecorator, e.toString()); throw new SandeshaException(message,e); } return decorator; }
public static ContextManager getContextManager(ConfigurationContext context) throws SandeshaException { ContextManager mgr = null; AxisConfiguration config = context.getAxisConfiguration(); Parameter p = config.getParameter(Sandesha2Constants.CONTEXT_MANAGER); if(p != null) mgr = (ContextManager) p.getValue(); if (mgr != null) return mgr; try { //Currently module policies are used to find the context impl. These cant be overriden String securityManagerClassStr = getDefaultPropertyBean(context.getAxisConfiguration()).getContextManagerClass(); mgr = getContextManagerInstance(securityManagerClassStr,context); p = new Parameter(Sandesha2Constants.CONTEXT_MANAGER,mgr); config.addParameter(p); } catch(AxisFault e) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotInitContextManager, e.toString()); throw new SandeshaException(message,e); } return mgr; }
public static StorageManager getInMemoryStorageManager(ConfigurationContext context) throws SandeshaException { StorageManager inMemoryStorageManager = null; AxisConfiguration config = context.getAxisConfiguration(); Parameter parameter = config.getParameter(Sandesha2Constants.INMEMORY_STORAGE_MANAGER); if(parameter != null) inMemoryStorageManager = (StorageManager) parameter.getValue(); if (inMemoryStorageManager != null) return inMemoryStorageManager; try { //Currently module policies (default) are used to find the storage manager. These cant be overriden //TODO change this so that different services can hv different storage managers. String storageManagerClassStr = getDefaultPropertyBean(context.getAxisConfiguration()).getInMemoryStorageManagerClass(); inMemoryStorageManager = getStorageManagerInstance(storageManagerClassStr,context); parameter = new Parameter(Sandesha2Constants.INMEMORY_STORAGE_MANAGER, inMemoryStorageManager); config.addParameter(parameter); } catch(AxisFault e) { String message = SandeshaMessageHelper.getMessage( SandeshaMessageKeys.cannotInitInMemoryStorageManager, e.toString()); throw new SandeshaException(message, e); } return inMemoryStorageManager; }
String message = SandeshaMessageHelper.getMessage( SandeshaMessageKeys.couldNotSendClose, e.toString()); throw new SandeshaException(message, e); } finally {
public static SecurityManager getSecurityManager(ConfigurationContext context) throws SandeshaException { SecurityManager util = null; AxisConfiguration config = context.getAxisConfiguration(); Parameter p = config.getParameter(Sandesha2Constants.SECURITY_MANAGER); if(p != null) util = (SecurityManager) p.getValue(); if (util != null) return util; try { //Currently module policies are used to find the security impl. These cant be overriden String securityManagerClassStr = getDefaultPropertyBean(context.getAxisConfiguration()).getSecurityManagerClass(); util = getSecurityManagerInstance(securityManagerClassStr,context); p = new Parameter(Sandesha2Constants.SECURITY_MANAGER,util); config.addParameter(p); } catch(AxisFault e) { String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotInitSecurityManager, e.toString()); throw new SandeshaException(message,e); } return util; }
public static StorageManager getPermanentStorageManager(ConfigurationContext context) throws SandeshaException { StorageManager permanentStorageManager = null; AxisConfiguration config = context.getAxisConfiguration(); Parameter parameter = config.getParameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER); if(parameter != null) permanentStorageManager = (StorageManager) parameter.getValue(); if (permanentStorageManager != null) return permanentStorageManager; try { //Currently module policies (default) are used to find the storage manager. These cant be overriden //TODO change this so that different services can hv different storage managers. String storageManagerClassStr = getDefaultPropertyBean(context.getAxisConfiguration()).getPermanentStorageManagerClass(); permanentStorageManager = getStorageManagerInstance(storageManagerClassStr,context); parameter = new Parameter(Sandesha2Constants.PERMANENT_STORAGE_MANAGER, permanentStorageManager); config.addParameter(parameter); } catch(AxisFault e) { String message = SandeshaMessageHelper.getMessage( SandeshaMessageKeys.cannotInitPersistentStorageManager, e.toString()); throw new SandeshaException(message, e); } return permanentStorageManager; }
} catch (AxisFault e) { String message = SandeshaMessageHelper.getMessage( SandeshaMessageKeys.cannotSendAckRequestException, e.toString()); throw new SandeshaException(message, e);