English 中文(简体)
a EAR(Java EE)的申请,聆听了书状申请
原标题:an EAR (Java EE) application which listen to a socket request

我想建立一个 JavaE应用程序,不仅提供网络服务,也提供JMS的直接要求(EJB),而且我还要接受书状要求(例如,UDP包装)。

我尝试用java.net撰写一名听众。 数据表,允许它作为单独程序运行,并将请求转给我的欧洲重建机构申请。

the question is.. how can I build such socket listener into my Java EE (EAR) applcation seamlessly?

感谢。

最佳回答

<>right>/em>办法就是为此设立一个联合调整中心。 JCA的改编器可用于有偿的连接。 你允许在一名联合后勤中心赞助者中开始准备或安排工作。 The in约束 links from the JCA Adaptationer to the EJB is carried out usingtom information-headed bean.

  • The adapter start a socket listener and manage the connection from remote clients
  • When a packet is received, a message is delivered to a custom MDB
  • The MDB can then delegate the processing to other EJBs

甚至可以从联合后勤中心联系人开始交易,以便把电文/包发送到欧洲黄麻组织。 JCA是Java E规格的一部分,并得到所有应用服务器的支持。

另一种做法(但不符合光谱)是开始听从<代码>的记本。 ServletContextListener 。 校对将在网上运行,你可以像往常一样称EJB。 依赖性注射不会奏效,但日本国民发展研究所的眼光仍应当ok。

问题回答

就我所知,这不符合幽灵。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签