Class EJBMediator

    • Constructor Detail

      • EJBMediator

        public EJBMediator()
    • Method Detail

      • init

        public void init​(SynapseEnvironment se)
        Description copied from interface: ManagedLifecycle
        This method should implement the initialization of the implemented parts of the configuration.
        Specified by:
        init in interface ManagedLifecycle
        Parameters:
        se - SynapseEnvironment to be used for initialization
      • mediate

        public boolean mediate​(MessageContext synCtx)
        Calls an external EJB according to the supplied semantics and attaches the result into the message/message context.
        Specified by:
        mediate in interface Mediator
        Parameters:
        synCtx - The current message for mediation
        Returns:
        true If mediation should continue
      • destroy

        public void destroy()
        Description copied from interface: ManagedLifecycle
        This method should implement the destroying of the implemented parts of the configuration.
        Specified by:
        destroy in interface ManagedLifecycle
      • getBeanstalkName

        public String getBeanstalkName()
      • setBeanstalkName

        public void setBeanstalkName​(String beanstalkName)
      • getClassName

        public String getClassName()
      • setClassName

        public void setClassName​(String className)
      • getBeanId

        public Value getBeanId()
      • setBeanId

        public void setBeanId​(Value beanId)
      • getMethod

        public Method getMethod()
      • setMethod

        public void setMethod​(Method method)
      • getTarget

        public Target getTarget()
      • setTarget

        public void setTarget​(Target target)
      • getJndiName

        public String getJndiName()
      • setJndiName

        public void setJndiName​(String jndiName)
      • isRemove

        public boolean isRemove()
      • setRemove

        public void setRemove​(boolean remove)
      • getArgumentList

        public List<Value> getArgumentList()
      • addArgument

        public void addArgument​(Value argument)
      • isContentAltering

        public boolean isContentAltering()
        Description copied from interface: Mediator
        This is used to indicate whether message payload get modified during mediation
        Specified by:
        isContentAltering in interface Mediator
        Overrides:
        isContentAltering in class AbstractMediator
        Returns:
        whether mediator modify the payload