• 大小: 13.22MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: Java
  • 标签: sapjco3.dll  sapjco3.jar  

资源简介

sapjco30 SAP官网2017/7/18更新版本,Windows64位,Linux 64位。 因项目开发SAP RFC接口,使用sapjco3.dll/sapjco3.jar,而网上下载多个版本的sapjco3.dll都提示版本等级太低,最后从SAP官网上下载了2017/7/18更新的文件,使用后OK。

资源截图

代码片段和文件信息

import java.util.HashMap;
import java.util.Properties;

import com.sap.conn.jco.JCoDestination;
import com.sap.conn.jco.JCoDestinationManager;
import com.sap.conn.jco.JCoException;
import com.sap.conn.jco.ext.DataProviderException;
import com.sap.conn.jco.ext.DestinationDataEventListener;
import com.sap.conn.jco.ext.DestinationDataProvider;

/**
 * Each application using Java Connector 3 deals with destinations. A destination represents a logical address 
 * of an ABAP system and thus separates the destination configuration from application logic. JCo retrieves
 * the destination parameters required at runtime from DestinationDataProvider and ServerDataProvider registered
 * in the runtime environment. If no provider is registered JCo uses the default implementation that reads the 
 * configuration from a properties file. It is expected that each environment provides a suitable 
 * implementation that meets security and other requirements. Furthermore only one DestinationDataProvider 
 * and only one ServerDataProvider can be registered per process. The reason behind this design decision 
 * is the following: the provider implementations are part of the environment infrastructure. 
 * The implementation should not be application specific and in particular must be separated from 
 * application logic. 
 * 
 * This example demonstrates a simple implementation of the DestinationDataProvider interface and shows how
 * to register it. A real world implementation should save the configuration data in a secure way.
 */
public class CustomDestinationDataProvider
{
    //The custom destination data provider implements DestinationDataProvider and
    //provides an implementation for at least getDestinationProperties(String).
    //Whenever possible the implementation should support events and notify the JCo runtime
    //if a destination is being created changed or deleted. Otherwise JCo runtime
    //will check regularly if a cached destination configuration is still valid which incurs
    //a performance penalty.
    static class MyDestinationDataProvider implements DestinationDataProvider
    {
        private DestinationDataEventListener eL;
        private HashMap secureDBStorage = new HashMap();
        
        public Properties getDestinationProperties(String destinationName)
        {
            try
            {
                //read the destination from DB
                Properties p = secureDBStorage.get(destinationName);

                if(p!=null)
                {
                    //check if all is correct for example
                    if(p.isEmpty())
                        throw new DataProviderException(DataProviderException.Reason.INVALID_CONFIGURATION “destination configuration is incorrect“ null);

                    return p;
                }
                
                return null;
            }
            catch(Ru

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3957684  2017-07-17 22:25  sapjco30P_17\sapjco30P_17-64-Linux\sapjco3-linuxx86_64-3.0.17.tgz

     文件       6776  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\CustomDestinationDataProvider.java

     文件      11934  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\MultiThreadedExample.java

     文件      14633  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\RepositoryChain.java

     文件       6510  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\StatefulServerExample.java

     文件      12998  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\StepByStepClient.java

     文件      16574  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\examples\StepByStepServer.java

     文件      15018  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\allclasses-frame.html

     文件      13118  2017-07-18 03:23  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\allclasses-noframe.html

     文件      28043  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\AbapClassException.html

     文件      15024  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\AbapClassException.Mode.html

     文件      21751  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\AbapException.html

     文件      11538  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\About.html

     文件       9317  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\AbapClassException.html

     文件      10413  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\AbapClassException.Mode.html

     文件      17351  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\AbapException.html

     文件       5880  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\About.html

     文件       6020  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\ConversionException.html

     文件       5860  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCo.html

     文件      13995  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoAbapobject.html

     文件       9696  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoAttributes.html

     文件      11982  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoBackgroundUnitAttributes.html

     文件      13589  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoClassmetaData.html

     文件      11907  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoClassmetaData.JCoAttributeKind.html

     文件       5930  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoContext.html

     文件       8225  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoCustomDestination.html

     文件       8458  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoCustomDestination.SncConfigurationData.html

     文件       8246  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoCustomDestination.UserData.html

     文件       8165  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoCustomRepository.html

     文件       9985  2017-07-18 03:22  sapjco30P_17\sapjco30P_17-64-Windows\sapjco3-NTAMD64-3.0.17\javadoc\com\sap\conn\jco\class-use\JCoCustomRepository.QueryMode.html

............此处省略229个文件信息

评论

共有 条评论

相关资源