当前位置: 首页 > news >正文

图片展示网站建设天津滨海新区大爆炸

图片展示网站建设,天津滨海新区大爆炸,WordPress主题在线汉化插件,wordpress 缩放窗 修改要让JAVA程序能访问SAP系统#xff0c;一般通过SAP JCO接口进行通讯#xff0c;在获取到SAP的连接时需求提供一些连接参数#xff0c;这些参数在最新的 JCO 3.0 中需要被保存到一个带有扩展名.jcoDestination的文件中#xff0c;这个文件同时被保存在应用程序的安装目录中。…  要让JAVA程序能访问SAP系统一般通过SAP JCO接口进行通讯在获取到SAP的连接时需求提供一些连接参数这些参数在最新的 JCO 3.0 中需要被保存到一个带有扩展名.jcoDestination的文件中这个文件同时被保存在应用程序的安装目录中。因为这只中一个纯文本文件所有的连接参数并没有被加密这样对于公用程序可能有安全问题。要使用登陆连接更加安全可以实现自定义的 DestinationDataProvider 实现此接口只有简单的三个方法 interface DestinationDataProvider {Properties getDestinationProperties(java.lang.String destinationName);void setDestinationDataEventListener(DestinationDataEventListener eventListener);boolean supportsEvents(); } getDestinationProperties 当Java程序获取到SAP的连接时jco会从这里读取连接属性你可以编程动态的设定这些属性setDestinationDataEventListener 设置一个连接事件监听器实现一个监听器当JCO连接SAP以获得通知supportsEvents 返回是否被实现的DestinationDataProvider有事件监听器 实现一个自定义Provider: static class MyDestinationDataProvider implements DestinationDataProvider{private DestinationDataEventListener eL;private Properties ABAP_AS_properties; public Properties getDestinationProperties(String destinationName){if(destinationName.equals(ABAP_AS) ABAP_AS_properties!null)return ABAP_AS_properties;return null;//alternatively throw runtime exception//throw new RuntimeException(Destination destinationName is not available);}public void setDestinationDataEventListener(DestinationDataEventListener eventListener){this.eL eventListener;}public boolean supportsEvents(){return true;}void changePropertiesForABAP_AS(Properties properties){if(propertiesnull){eL.deleted(ABAP_AS);ABAP_AS_properties null;}else {if(ABAP_AS_properties!null !ABAP_AS_properties.equals(properties))eL.updated(ABAP_AS);ABAP_AS_properties properties;}}} 测试连接 public static void main(String[] args) throws Exception{Properties connectProperties new Properties();connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, binmain);connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, 53);connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, 000);connectProperties.setProperty(DestinationDataProvider.JCO_USER, JCOTEST);connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, JCOTEST);connectProperties.setProperty(DestinationDataProvider.JCO_LANG, en);MyDestinationDataProvider myProvider new MyDestinationDataProvider();com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(myProvider);myProvider.changePropertiesForABAP_AS(connectProperties);JCoDestination ABAP_AS JCoDestinationManager.getDestination(ABAP_AS);ABAP_AS.ping();System.out.println(ABAP_AS destination is ok);}  转载于:https://www.cnblogs.com/rinack/p/8041582.html
http://www.huolong8.cn/news/23898/

相关文章:

  • wordpres做影视网站企业宣传图片模板
  • 黄浦企业网站制作财务办公室装修设计
  • 重庆做企业网站设计的公司甘肃省酒泉市做网站公司
  • 电话约建设网站 客户民治营销型网站制作
  • 具有设计感的网站做网站用什么后台
  • 加强网站硬件建设方案在wordpress中设置mx记录
  • 别人在百度冒用公司旗号做网站赣州网站建设渠道
  • 夺宝网站开发简体中文wordpress5.2下载
  • 做断桥铝最知名的网站微网站栏目
  • 招远做网站阿里云虚拟主机可以做几个网站
  • 河南网站建设外贸自主建站平台
  • 修改wordpress的登陆地址北京网站seo推广
  • 中卫网站设计公司排名深圳买门的网站建设
  • 电商网站设计流程图门窗厂家东莞网站建设
  • 江山企业自适应网站建设首选自学考试
  • html制作一个个人主页网站网站改版 影响google 404跳首页
  • 已注册域名怎么做网站呢酒店网站建设栏目分析
  • 那个做图网站叫什么企业所得税计算
  • 做网站前途人力资源短期培训班
  • 网站定位的核心意义江西省工程建设信息官方网站
  • 上海哪里可以做网站软件外包行业分析
  • 谷歌网站质量指南网站建设:上海珍岛
  • 做彩票网站收费标准企业网站服务类型
  • 做加油机公司网站swipe类网站
  • 广东专业商城网站建设北京 集团公司网站建设
  • 网站建设合同应注意什么yahoo提交网站入口
  • 免费素材视频网站哪个最好58同城招聘 招聘网
  • 公司网站是做的谷歌的深圳定制建站
  • 合肥网站制作公司排名狠狠做新网站
  • 网站关键词被改韩国和乌拉圭谁出线