donglangtun1850 2011-04-12 03:44
浏览 29

关于如何在基于PHP的Web门户中访问Java + Xml应用程序的说明

I Require a clarification on one Technical Implementation to check its feasible or not.

I have one VPS server which has a Java Environment and I have one more dedicated server which doesnot have a Java Environment where i have built my PHP based web application,

In the VPS environment I am planning to implement the XML based application using the Observer pattern with java and DOM Parsers and make that application available at say for example 123.124.125.65/XML_Works/Sample,xml file

Now My doubt is that: 1)is it possbile to access this application in dedicated Server where the java environment is not there. 2)if yes, then is it possible to access that java + XML application in IFrame in PHP based web portal.

  • 写回答

1条回答 默认 最新

  • dos8410 2011-04-12 04:14
    关注

    1) No JVM = no java running on that machine
    2) The most common solution I saw (and am using) is to externalize the java functionality you want as a web service or servlet and package it as a .war
    Then use some web container such as tomcat to load that war and use a connector to connect calls to tomcat to your PHP server.

    So the configuration I use is, Java as war, Tomcat as web container, Apache as PHP server and mod_jk connector for communication between servers.

    Note that the mod_jk connector also supports other web servers.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度