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

网站开发合同付款方式上海大型广告公司

网站开发合同付款方式,上海大型广告公司,鹤壁做网站哪家便宜,网络营销的功能有哪些要让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.yutouwan.com/news/217647/

相关文章:

  • 织梦贷款网站源码网站搭建视频
  • 网站域名登记证明文件建设部网站最新消息
  • dede网站搬家教程什么网站专门做自由行的
  • 网站备案要关站吗多个域名指向同一个网站 备案
  • 内江做网站哪里便宜网站建设与管理 情况总结
  • 江苏南京建设厅网站音乐制作软件
  • 网站系统源代码郑州市做网站
  • 网站建设财务计划与预测软件开发学院
  • 网页升级紧急通知页面seo服务商
  • 域名网站负责人的责任wordpress每页不显示文章
  • 汇泽网站建设asp网站下载
  • 顺德网站建设要多少钱木藕设计网
  • 郑州手机网站搭建免费白嫖国外服务器app
  • 龙华响应式网站建设唐山哪个公司可以建网站
  • 烟台网站制作公司在线咨询怎么自己开发app软件
  • 网站友链查询接口梅州高铁
  • 电子商务如何做网站销售启航做网站好吗
  • 潍坊企业网站制作wordpress 链接失效
  • 沈阳做网站优秀公司制作图片工具
  • 电子商务企业网站建设计划书泰安网站建设泽讯
  • 百度网站官方认证怎么做温州网络推广平台建设
  • 济南网站建设q479185700惠网站开发的案例分析模板
  • 自己建的网站有乱码wordpress中文网站
  • 软文网站外包全球网站域名
  • 案例学 网页设计与网站建设关于房子的最新政策
  • php开源网站 网上商城卖房网站排名
  • 公司设计网站有哪些辽宁省网站备案注销
  • 中国建设规划采购网站公司培训网站需要广播证吗
  • 简易购物网站前端模板设计公司是做什么的
  • 南明区住房和城乡建设局网站上网站关键词快速排名