简体   繁体   English

是否可能 - Drupal插件到Java Web应用程序

[英]Is it possible - Drupal Plugins to Java Web application

This may sound really stupid, but I want to know if it is possible to convert Drupal plugins to java web application? 这听起来真的很愚蠢,但我想知道是否有可能将Drupal插件转换为java web应用程序? Is there some sort of converter or connector or probably a way to achieve this? 是否有某种转换器或连接器或可能是实现这一目标的方法?

We all know that Drupal has largest number of plugins available. 我们都知道Drupal拥有最多的插件。 I was thinking whether it is technically feasible for a drupal plugin to go through some process and come out as Java web application. 我在想是否技术上可行的drupal插件经历一些过程并作为Java Web应用程序出现。 Sounds silly but would be really interested if this can be achieved. 听起来很傻,但如果可以实现这一点,我会非常感兴趣。 The ideal scenario would be for me to have them as plugins in my java portal. 理想的情况是我将它们作为我的java门户中的插件。

No, there is no magic to convert a PHP code intended to run as plugin for a PHP application to a Java web application. 不,将用作PHP应用程序插件的PHP代码转换为Java Web应用程序是没有魔力的。

What should be doable (with some work), is to run Drupal and the wanted module(s) in a Java Web Container using the Quercus PHP engine. 什么应该是可行的(有一些工作),是使用Quercus PHP引擎在Java Web容器中运行Drupal和想要的模块。 Quercus is a 100% Java implementation of PHP 5. So you wont convert anything but run PHP code on top of the Java platform (JVM, Web Container, etc.). Quercus是PHP 5的100%Java实现。因此,除了在Java平台(JVM,Web容器等)之上运行PHP代码之外,您不会转换任何内容。 The application code (Drupal core, module, themes, etc.) would be packaged as a .war file to be deployed on a Web Container. 应用程序代码(Drupal核心,模块,主题等)将打包为.war文件,以部署在Web容器上。

In short, no. 简而言之,没有。

Drupal plugins rely on the Drupal hook system and its API, which you would have to replicate in Java. Drupal插件依赖于Drupal钩子系统及其API,您必须在Java中进行复制。 Given the complexity of Drupal's internals, that alone would likely be prohibitively difficult. 考虑到Drupal内部的复杂性,仅此一点可能会非常困难。 An effort to port Drupal to Python never really went anywhere . 将Drupal移植到Python的努力从来没有真正去过任何地方

Another interesting approach would be to run Drupal within Quercus , which would give you access to Drupal from Java; 另一个有趣的方法是在Quercus中运行Drupal,它可以让你从Java访问Drupal; ie run PHP from within the JVM. 即从JVM中运行PHP。 I know that people have tried running Drupal in Quercus, but I'm not sure if they had any success. 我知道有人试过在Quercus中运行Drupal,但我不确定他们是否有任何成功。 I don't know of an instance of Drupal/Quercus in production. 我不知道Drupal / Quercus的生产实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java Spring 应用程序的插件 - Plugins for Java Spring application 是否可以在 heroku 非 Web Java 应用程序上运行? - Is it possible to run on heroku non web java application? 使用插件扩展Java Web应用程序 - Extending Java Web Applications with plugins 使用用户插件扩展Java应用程序 - Extending Java application with user plugins “多插件” Java Web应用程序的最佳实践-管理公共库和冲突版本 - Best practices for a “multi plugins” Java web application - Managing common libraries and conflictual versions 在Java应用程序中使用Drupal cms - Using Drupal cms with Java application 是否可以从另一个 Java Web 应用程序访问 Java Web 应用程序的公共方法? - Is it possible to access a public method of a java web application from another java web application? 是否可以使用Java在Netbeans中创建可视插件? - Is it possible to create visual plugins in Netbeans, with Java? 是否可以使用 Java 后端和 Web 技术 UI 创建桌面应用程序 - Is it possible to create Desktop Application using Java backend & Web Technologies UI 一个Java Web应用程序中可以有两种认证机制吗? - Is it possible to have two authentication mechanisms in one Java web application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM