我们希望在我们贾瓦·埃厄应用服务器(JBos 4.2.3)中满足一些客户的要求。 我读到。 Java EE spec don t允许从一个企业开户。 但是,这种猜测没有替代物。
具体来说,企业家不应:
- listen on, accept connections on, or multicast from a network socket
因此,问题在于:在应用服务器中,我能做些什么来为某些binarytcp(而不是http://)程序服务?
我们希望在我们贾瓦·埃厄应用服务器(JBos 4.2.3)中满足一些客户的要求。 我读到。 Java EE spec don t允许从一个企业开户。 但是,这种猜测没有替代物。
具体来说,企业家不应:
- listen on, accept connections on, or multicast from a network socket
因此,问题在于:在应用服务器中,我能做些什么来为某些binarytcp(而不是http://)程序服务?
我现在谈一下:
http://yuml.me/7f82bd5c>rel=“nofollow noreferer”>alt text http://yuml.me/7f82bd5c
我使用单独的java申请,接受客户的警示,并将之转交应用服务器。
你有权这样做,因为你可以宣布在 JavaE的每一件交易,必须从你想要连接的所有组成部分那里得到支持。 如果有的话,档案应存放在数据库中。 所有物品都应由集装箱控制,因为这是利用Java EE进行推广的唯一途径。
几种选择:
Implement a Connector (JCA) a example is here: http://www.theserverside.com/tt/articles/article.tss?l=J2EE1_4 probably the best way if you have existing clients.
1. 使用 Java电洞
The relationship between this techniques is discussed here http://java.sun.com/products/jms/faq.html#relship_ejbs
在数据库中储存申请的写作服务器。 (无Tx支持)
If you have only one server and it seems too much overhead, you could ignore these aspects and follow Vinegars suggestion. But if you need Tx later or additional nodes this part has to be redesigned.
你们也不能查阅档案:
这是因为欧洲法院必须:
考虑到这一点,你将不停在你的服务器上(最好的位置可能放在服务器上),但你应注意,当你的服务器停机时,如何关闭服务器。
我采用的办法与我在春天的MVC时的需要有些相似。 这样做可以帮助周围的人。
Start a Socket Port on server start up. I used @scheduler annotation whereas you can use listener based solution as well. You can also implement ApplicationContextAware listener and can access other application beans from it.
@Scheduled(fixedDelay = 1000 * 60 * 60 * 24 * 365)
public void startListenerPort() {
ServerSocket socket = new ServerSocket(9999);
// do some stuff here
}
Just make sure that you have allowed TCP traffic on the port that you have assigned to the Socket (Firewall Settings).
这样,你就可以在99999号港进行电话交换,因为你的服务器将继续在不同的港口正常运行。
虽然严格来说,这并非纯粹的技术性CP联系,但你可以取得您所需要的<条码>@ServerEndpoint的说明,以便从Java E7的光谱中建立一个网页。
虽然指定经营实体使用“吉卜赛人”系统,但它在<代码>时将发挥像双亲界面这样的作用。 OnMessage methods and a ByteBuffer
(or byte[ ]
).
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 ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
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 ...
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 ...
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....
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 ...