K
K
Konstantin Malyarov2016-03-02 07:46:17
Java
Konstantin Malyarov, 2016-03-02 07:46:17

RMI or JSF which is better?

I decided to implement a project for storing clinical cases for myself and my group (text and photo). And the question arose: How to implement it correctly?
I plan to write the text in the database using JSF, and upload the pictures using RMI. Can arrange everything as JSF, or write a separate GUI using RMI. Just if the project grows to the size of an average hospital in Moscow (~ 1000 people), will RMI technology survive?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2016-03-02
@zolt85

It seems to me that you have confused warm with soft. Do you understand what JSF is and what RMI is, what they are for, and where they are used?
About text and JSF it seems clear, about files and RMI it seems not clear.
I advise you to first understand what the web is, how it works, how the client (browser) communicates with the server. How can I send data to the server (forms). How to process this data on the server. And only then, when you figure it out, you can think about JSF and RMI.
Do not misunderstand me, I do not want to offend you in any way, I just want to set the right direction for your development in this matter.

V
Vladimir Smirnov, 2016-03-10
@bobzer

will RMI technology hold up?
almost any technology will survive if your hardware resources can. Basically, this is a network and disk subsystem, but there may be a load on the RAM of the application server, because. many technologies load the byte representation of the file into the server's RAM before saving it to disk. As for " ~1000 people " - this figure does not mean anything, in this case, the number and size of uploaded / downloaded files should be considered and not abstract users.
How to implement correctly?
If you are using the JSF specification to build the client side, then it is logical to use the file upload facilities provided by libraries/frameworks that implement this specification - almost all of them have components for uploading files to the server. I recommend using PrimeFaces, which is an actively developing, component-rich framework. They have several options for uploading the file(s) to the server, you can start with this.
Regarding RMI - it is generally out of place here. JSF runs in the browser using the HTTP protocol, so it makes sense to use the same protocol for downloading files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question