从客户端到服务器,我用的是ejb,客户端只需要知道服务器的名字和ejb的接口就可以了,与IP地址无关,我希望用ejb来实现服务器到客户端的通信,该怎样做?
解决方案 »
- 通过IP校验工具简易理解对象封装及开闭原则的相关思路
- 求个程序的构思~
- 请教一下,java的正则表达式怎么用?(如:replaceAll()怎么用?)
- 关于JTable让我很是心痛的问题,希望大家予以帮助
- 100个线程同时开启,怎么判断它们都已经运行结束呢
- 哪位大虾能帮我实现能打印JTABLE表中的记录。急!
- 问个简单的swt+线程的问题(大家一定互相帮助)
- 请问怎么使用剪贴板类阿?
- [求助]找一份数据库连接池的代码(要求内详)
- 究竟应不应该花精力去学习java的图形设计GUI?
- 如何将scr.jar中的每一个java程序解压出来
- ●●●●●如何做到,防止用户在TextField控件中输入非数字字符?●●●●●
It decoupling objects so that changes to one(model) can affect any number of others(views) without requiring the changed object to know details of the others ... To make it more reliability and scalablity you need read more info such as JMS(publish/subscribe messaging), j2ee(connector) and so on.Good luck!
-----------------jms真有用呀!---还是jms好!
顺便问一句,如果用jms的话,我该看看哪些方面的资料?指点指点哦。
:每个客户端都连接到一个代理上,它提供了创建消息,发消息,收消息的功能,使任一个messaging 的客户端可以与其他客户端交换消息。
Messaging 以松耦合的方式实现分布式的通讯。一个组件发一个消息到一个已知的位置,需要接受消息的一端也从那里得到消息,也就是说,发送方和接受方不用同时在线,实施上,发方和收方彼此可以互不相知他们只需要知道消息的格式和那个已知的位置,在这种关系下,Messaging 区别于相对紧耦合的rmi!
What Is Messaging?
Messaging is a method of communication between software components or applications. A messaging system is a peer-to-peer facility: a messaging client can send messages to, and receive messages from, any other client. Each client connects to a messaging agent that provides facilities for creating, sending, and receiving messages.
Messaging enables distributed communication that is loosely coupled. A component sends a message to a destination, and the recipient can retrieve it from the destination. However, the sender and receiver do not have to be available at the same time in order to communicate. In fact, the sender does not need to know anything about the receiver, nor does the receiver need to know anything about the sender; they only need to know what message format and what destination to use. In this respect, messaging differs from tightly coupled technologies such as Remote Method Invocation (RMI), which require an application to know a remote application's methods. Messaging also differs from electronic mail (e-mail), which is a method of communication between people, or between software applications and people. Messaging is used for communication between software applications or software components.
谢谢大虾!!