在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

如何理解ABAP和Java的destination和JNDI

136次阅读
没有评论

共计 1769 个字符,预计需要花费 5 分钟才能阅读完成。

如何理解 ABAP 和 Java 的 destination 和 JNDI,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

Netweaver 里使用事务码 SM59 创建 Destination:

如何理解 ABAP 和 Java 的 destination 和 JNDI

Java

新建一个 destination:

如何理解 ABAP 和 Java 的 destination 和 JNDI

如何理解 ABAP 和 Java 的 destination 和 JNDI

测试代码:

 try { Context ctx = new InitialContext();
 ConnectivityConfiguration configuration = (ConnectivityConfiguration) ctx.lookup( java:comp/env/connectivityConfiguration 
 DestinationConfiguration destConfiguration = configuration.getConfiguration(destinationName); if (destConfiguration == null) {
 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
 String.format(Destination %s is not found. Hint:  +   Make sure to have the destination configured. , destinationName)); return;
 } // Get the destination URL String value = destConfiguration.getProperty( URL 
 URL url = new URL(value +  xml?origins=Walldorf destinations=Paris 
 String proxyType = destConfiguration.getProperty( ProxyType 
 Proxy proxy = getProxy(proxyType);
 urlConnection = (HttpURLConnection) url.openConnection(proxy);
 injectHeader(urlConnection, proxyType); // Copy content from the incoming response to the outgoing response InputStream instream = urlConnection.getInputStream();
 OutputStream outstream = response.getOutputStream();
 copyStream(instream, outstream);
 } catch (Exception e) { // Connectivity operation failed String errorMessage =  Connectivity operation failed with reason:   + e.getMessage()
 +  . See   +  logs for details. Hint: Make sure to have an HTTP proxy configured in your   +  local environment in case your environment uses   +  an HTTP proxy for the outbound Internet   +  communication. 
 LOGGER.error(Connectivity operation failed , e);
 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
 errorMessage);
 }

通过 JNDI 获得 destination 配置的 url:

如何理解 ABAP 和 Java 的 destination 和 JNDI

关于如何理解 ABAP 和 Java 的 destination 和 JNDI 问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注丸趣 TV 行业资讯频道了解更多相关知识。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计1769字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 国内精品久久久久久久999下 | 久久成人免费大片 | 性视频福利在线看 | 久久久免费视频观看 | 宗合久久 | 少妇人妻偷人精品免费视频 | 久久久精品免费国产四虎 | 在线免费看a爱片 | 亚洲精品自拍区在线观看 | 国产区精品福利在线社区 | 亚洲综合第一区 | 福利在线一区二区 | 7m精品福利视频导航 | 97青青青国产在线播放 | 国产区在线免费观看 | 成年人免费网址 | 午夜在线观看免费影院 | 99热这里有免费国内精品 | 亚洲日韩欧美一区久久久久我 | 成年人网站免费在线观看 | 国产一区二区三区四区20p | 精品免费国产一区二区三区四区 | 最近最新高清中文字幕6页 最近最新中文字幕 | 看全黄大色黄大片老人做 | 亚洲网站在线观看 | 中文字幕乱妇无码av在线 | 国产日产欧产精品 | 国产v亚洲v天堂无码久久久 | 日韩免费a级毛片无码a∨ | 爱福利极品盛宴 | 少妇下蹲露大唇无遮挡 | 国产av旡码专区亚洲av苍井空 | 色与欲影视天天看综合网 | 国产亚洲精品久久久久久久软件 | 久操视频免费在线观看 | 秋霞网琪琪韩国理论片 | 国产亚洲精久久久久久无码 | 98久9在线 | 免费 | 欧妇女乱妇女乱视频 | 久久精品国产亚洲av高清色欲 | 久久综合中文字幕佐佐木希 |