简体   繁体   English

什么样的应用程序可以作为专用的应用程序服务器?

[英]What kind of application would serve as a dedicated application server?

In a very popular ecommerce store, I'd imagine the actual processing of the credit card would be moved to some sort of dedicated application server, and made into more of a asynchronous process. 在一个非常受欢迎的电子商务商店中,我想象信用卡的实际处理将被转移到某种专用的应用服务器,并进入更多的异步过程。

What sort of java application type would that be? 那将是什么样的Java应用程序类型? ie a service that would take a message of the queue, and start processing the request and update some db table once finished. 即一个服务,它将接收队列的消息,并开始处理请求并在完成后更新一些db表。

In .net, I guess one would use a windows service. 在.net中,我猜一个人会使用Windows服务。 What would you use in the java world? 你会在java世界中使用什么?

It is typically a J2EE application that uses a HTTP web service interface or a JMS messaging interface. 它通常是使用HTTP Web服务接口或JMS消息传递接口的J2EE应用程序。 HTTP interfaces are accessible via a URL, and JMS connects to a queue to pick up messages that are sent to it. HTTP接口可通过URL访问,JMS连接到队列以获取发送给它的消息。 The app can run on any one of the major commercial (WebSphere, Weblogic, Oracle) or free (Glassfish, JBoss) servers. 该应用程序可以在任何一个主要的商业(WebSphere,Weblogic,Oracle)或免费(Glassfish,JBoss)服务器上运行。

在Java中,您已经拥有了很好的开源项目,可以为您提供所有这些,如GlassfishTomcat等。

For a mission critical system, you might want something like IBM MQ series as the middleware, and a straight Java application that uses the MQ interface to process the requests. 对于关键任务系统,您可能需要IBM MQ系列作为中间件,以及使用MQ接口处理请求的直接Java应用程序。

At a few banks that I know of, this is their architecture. 在我所知道的几家银行,这是他们的架构。 Originally the application servers were written in C, as was the middleware. 最初应用程序服务器是用C语言编写的,中间件也是如此。 They were able to switch to java because the code that was actually doing the critical work (sending and receiving messages, assuring guaranteed delivery, protecting against interruptions if a component went down) were the IBM MQ's. 他们能够切换到java,因为实际执行关键工作的代码(发送和接收消息,确保有保证的交付,防止在组件发生故障时中断)是IBM MQ的。

In our case we use an application server from Sybase that can house Java components. 在我们的例子中,我们使用Sybase的应用程序服务器来容纳Java组件。 They are pretty much standard Java classes that have public methods that are exposed for calling via CORBA. 它们几乎是标准的Java类,它们具有公开的方法,可以通过CORBA进行调用。 Components can also be scheduled to run constantly or on a schedule (like a service) to look for work to do (via items in a database table, an Oracle AQ queue, or a JMS queue). 组件也可以安排为不断运行或按计划运行(如服务)以查找要执行的工作(通过数据库表,Oracle AQ队列或JMS队列中的项)。 All of this is contained in the app server and the app server provides transaction management, resource management, and database connection pooling for us. 所有这些都包含在app服务器中,app服务器为我们提供事务管理,资源管理和数据库连接池。

或者使用OSGI环境。

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

相关问题 查找专用应用程序文件夹的位置 - Find place for dedicated application folder 当我开始通过Tomcat服务器运行Java应用程序时,遇到了此类错误。 我该怎么办? - When I start running my java application through Tomcat server, I encountered this kind of error. What should I do? 我应该在Android应用程序中使用哪种简单的数据存储区? - What kind of simple datastore should I use in my android application? 我应该在Android应用程序中使用哪种图像格式? - What kind of image formats should I use in an Android application? 应用服务器应用程序客户端的目的是什么? - What is the purpose of an Application Server Application-Client? 专用服务器:为什么我的JAVA应用程序无法连接到我的MySQL数据库? - Dedicated server: why can't my JAVA application connect to my MySQL database? 专用的Android活动为应用程序初始化数据和库 - Dedicated Android Activity to initialize data and libraries for the application 应用服务器提供的罐子是什么? - What are the jars provided by an application server? tomcat不是应用服务器是什么原因 - What is the reason that the tomcat is not an application server 用于获取SOAP客户端的哪种“模式”? Web应用程序/企业应用程序 - What kind of “pattern” to use for getting SOAP Client? Web Application / Enterpise Application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM