远程管理接口应用程序
我正在开发一个无纸化系统,用于休假申请、询问和安排会议。它将有 3 类用户,即管理员、员工和学生。我正在使用 eclipse 编写 RMI 应用程序。它包括:
- 管理 - 由管理员将使用的屏幕组成
- Admin_Main - 这是绑定注册表中接口的主服务器
- 公共 - 管理员、员工和学生端使用的公共屏幕
- 实施 - 定义的方法的开发在接口中 接口
- - 此处定义了管理员、员工和学生将使用的方法
- 员工 - 员工使用的屏幕
- 学生 - 学生使用的屏幕
另外,在我的 RMI 应用程序中的一些接口中,我正在使用 org .eclipse.swt显示日历,允许用户通过在日历上选择来输入日期。当我尝试在命令提示符下运行它时,但它无法识别 org.eclipse.swt 包。
所以我的问题是如何部署我的整个 RMI 应用程序以使其在没有 Eclipse 的情况下运行,并且我想单独部署它,即工作人员、管理员和学生分别部署,以便能够使其在真实网络上运行。如果我使用 RMI 插件在 eclipse 上运行它们,它工作正常。
I am working on a development of a paperless system for leaves application and for asking queries and for scheduling meetings. It will have 3 categories of users namely Admin side, staffs and students. I am using eclipse to write an RMI application. It comprises of :
- Admin - Consist of the screens the admin will be using
- Admin_Main - This is the Main Server which bind the interfaces in the registry
- Common - Common screens used by both admin, staff and student side
- Implementation - The development of the methods defined in the Interfaces
- Interfaces - The methods that will be used by admin, staff and student are defined here
- Staff - The screens used by the staffs
- Student - the screen used by the student
Also in a few interfaces in my RMI application, i am using org.eclipse.swt to display calendar, to allow users to input date just by choosing on the calendar. When I tried to run it in command prompt, but it is not recognizing the org.eclipse.swt
package.
So my question is how can i deploy my whole RMI application to make it run without eclipse, and i want to deploy it separately, that is staff, admin and student separately to be able to make it work on a real network. If i run these on eclipse using an RMI plugin, it is working fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在编写一个客户端/服务器应用程序,两者共享一个公共接口。
Eclipse 向您隐藏了其中一些部署详细信息,但是您必须将它们整理出来才能在没有它的情况下进行部署。
您必须拥有客户端和服务器 JAR,以及它们所有可用的独立依赖项,以及它们共享的类的通用 JAR。
您必须有一个 RMI 容器,用于在您选择的端口上侦听来自客户端的 RMI 请求。
您是否已将服务器编写为每个请求使用一个线程或非阻塞 IO?您应该知道是否会有大量客户端同时访问您的服务器。
You're writing a client/server application, where the two share a common interface.
Eclipse is hiding some of those deployment details from you, but you'll have to sort them out to deploy without it.
You have to have client and server JARs, with all their separate dependencies available, plus a common JAR for the classes they share.
You have to have an RMI container that's listening for RMI requests from clients on a port of your choosing.
Have you written your server to use one thread per request or non-blocking IO? You should know if there will be lots of clients simultaneously accessing your server.
您是否尝试过使用 RMI 插件在 Apache Tomcat 上部署 RMI 应用程序?
我不太擅长 RMI,但去年在大学做了一个单元,为了部署它,我们使用了 Apache Tomcat (http://tomcat.apache.org/)
Have you tried deploying your RMI application on Apache Tomcat with the RMI plugin?
Im not too good with RMI, but did a unit on it last year at university, and to deploy it, we used Apache Tomcat (http://tomcat.apache.org/)