Examples of EPR


Examples of org.jboss.soa.esb.addressing.EPR

      sendToDLQ(callDetails, message, MessageType.fault) ;
        }
    }
    else
    {
      final EPR faultToEPR = message.getHeader().getCall().getTo() ;
      messageTo(faultToEPR, message, MessageType.fault);
    }
  }
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

    }

    public Message process(Message message) throws ActionProcessingException {
        // Zap the faulto and replyto EPRs before sending...
        Call call = message.getHeader().getCall();
        EPR faultTo = call.getFaultTo();
        EPR replyTo = call.getReplyTo();
        Object txObject = null;

        if(isTransactional() && suspendTransaction) {
            try {
                txObject = TransactionStrategy.getTransactionStrategy(true).suspend();
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

{
    public Message onOutput (Message msg, Map<String, Object> params) throws CourierException
    {
        final Environment.Transports type;
        final String name;
        EPR destination = msg.getHeader().getCall().getTo();
        if (destination != null)
        {
            if (destination instanceof FTPEpr)
            {
                try
                {
                    type = Environment.Transports.FTP;

                    String dir = FtpUtils.getLocalDir();

                    name = dir
                            + File.separator
                            + msg.getHeader().getCall().getMessageID()
                                    .toString()
                            + ((FTPEpr) destination).getPostDirectory();
                }
                catch (Exception ex)
                {
                    throw new CourierException(ex);
                }
            }
            else if (destination instanceof FileEpr)
            {
                try
                {
                    type = Environment.Transports.File;

                    name = destination.getURI()
                            + File.separator
                            + msg.getHeader().getCall().getMessageID()
                                    .toString()
                            + ((FileEpr) destination).getInputSuffix();
                }
                catch (Exception ex)
                {
                    throw new CourierException(ex);
                }
            }
            else if (destination instanceof JMSEpr)
            {
                type = Environment.Transports.JMS;

                name = destination.getAddr().toString();
            }
            else if (destination instanceof JDBCEpr)
            {
                type = Environment.Transports.SQL;

                name = destination.getAddr().toString();
            }
            else if (destination instanceof HibernateEpr)
            {
                type = Environment.Transports.Hibernate;
                name = destination.getAddr().toString();
            }
            else
            {
                type = null;
                name = null;
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  protected void checkMyParms() throws ConfigurationException, RegistryException, GatewayException
  {
    try
    {
            EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        RemoteFileSystem rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.quit();
      } else {
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  public boolean deleteFile(File file) throws GatewayException
  {
    RemoteFileSystem rfs = null;
    try
    {
      EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));
        rfs.deleteRemoteFile(file.toString());
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  {
    RemoteFileSystem rfs = null;
    try
    {
      File temp = File.createTempFile("FTPdown", ".tmp");
      EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));
        rfs.downloadFile(file.toString(), temp.getAbsolutePath());
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  {
    RemoteFileSystem rfs = null;
    File[] oaRet = null;
    try
    {
      EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));
        String[] sa = rfs.getFileListFromRemoteDir(_inputSuffix);
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  boolean renameFile(File from, File to) throws GatewayException
  {
    RemoteFileSystem rfs = null;
    try
    {
      EPR epr = ListenerUtil.assembleEpr(config);
      if (epr instanceof FTPEpr)  {
        FTPEpr ftpEpr = (FTPEpr) epr;
        rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
        rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));
        rfs.remoteRename( from, to );
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

  void bytesToFile(byte[] bytes, File file) throws GatewayException
  {
    RemoteFileSystem rfs = null;
    try
    {
      EPR epr = ListenerUtil.assembleEpr(config);
      if (!(epr instanceof FTPEpr)) 
        throw new Exception("This Gateway only accepts FTP and SFTP.");

      FTPEpr ftpEpr = (FTPEpr) epr;
      rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
View Full Code Here

Examples of org.jboss.soa.esb.addressing.EPR

        this.call = new Call() ;
        parse(in) ;
       
        if (extensions.size() > 0)
        {
            final EPR origEPR = call.getTo() ;
            final PortReference to = origEPR.getAddr() ;
            for(NamedElement element: extensions)
            {
                final QName name = element.getName() ;
                final TextElement content = (TextElement)element.getElementContent() ;
                to.addExtension(name.getLocalPart(), name.getPrefix(), name.getNamespaceURI(), content.getText()) ;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.