1

Topic: Passage with.NET on Java EE

Kind put, misters There was a keen desire and some necessity to come off with.NET WinForms/WPF on sheaf Java (EE) / JavaScript With most Java questions especially did not arise, there were questions on structure of application and what to learn / on what it is possible to hammer on . It is necessary to write the application consisting of three parts: - Data Collector, working in a background and filling MariaDB the necessary data (works actually always, the web by the interface) - Data Viewer, showing the assembled data in a web the interface in a convenient and provisionable type - Data Processor, working on demand should be controlled, but it is frequent enough With Java EE put had no, is experience in applications strictly under Windows and all. Accordingly, questions: - For standard Java applications it makes sense to use Swing or JavaFX now? Whether there are made visual components, though about holding out to Telerik/DevExpress? - Structure of mine application. How correctly to issue and launch Data Collector? How jar application, how a servlet, how that or still? - Data Viewer in my case it is a servlet + JSP? What to use for visual design on client side? - The same question to Data Processor, the correct design - whether Is necessary usage Glassfish or enough Tomcat in my case? - Whether has sense to learn JSP or to pass on JavaFaces? - Recommend the correct order of learning for passage with Windows-based apps on Web based (Javascript, Sprint, Angular...?) Many thanks for your answers.

2

Re: Passage with.NET on Java EE

RB> - Recommend the correct order of learning for passage with Windows-based apps on Web based (Javascript, Sprint, Angular...?) for this purpose once let out  webforms, here after all irony

3

Re: Passage with.NET on Java EE

Hello, RainBoy, you wrote: RB> There was a keen desire and some necessity to come off with.NET WinForms/WPF on sheaf Java (EE) / JavaScript RB> With most Java questions especially did not arise, there were questions on structure of application and what to learn / on what it is possible to hammer on . Generally the desire  UI (not web) on Java is not so clear. Also forget about EE. RB> It is necessary to write the application consisting of three parts: RB> - Data Collector, working in a background and filling MariaDB the necessary data (works actually always, the web should be controlled by the interface) Normal Spring Boot Data Jpa + Web application should consults . RB> - Data Viewer, showing the assembled data in a web the interface in convenient and provisionable type Frontend do on something .  there or Reakt or that is pleasant to you more. RB> - Data Processor, working on demand, but that it often enough is not so clear well let for a change Spring Batch. RB> With Java EE no affairs had, there is an experience in applications strictly under Windows and all. Accordingly, questions: RB> - For standard Java applications it makes sense to use Swing or JavaFX now? Whether there are made visual components, though about holding out to Telerik/DevExpress? There above in  where  that? You like a web wanted? RB> - structure of mine application. How correctly to issue and launch Data Collector? How jar application, how a servlet, how that or still? As fat jar. RB> - Data Viewer in my case it is a servlet + JSP? It is a dial-up @RestController on server side RB> - What to use for visual design on client side? Sm above. RB> - the same question to Data Processor, the correct design As fat jar. RB> - whether usage Glassfish or enough Tomcat in my case Is necessary? Glassfish it is impossible to use. Use https://spring.io/guides/gs/rest-service/ RB> - whether Has sense to learn JSP or to pass on JavaFaces? Anything it it is not necessary to learn. RB> - Recommend the correct order of learning for passage with Windows-based apps on Web based (Javascript, Sprint, Angular...?) Separately you learn to do  services on , separately a web-mordostroitelstvo.

4

Re: Passage with.NET on Java EE

Hello, GarryIV, you wrote: GIV> Generally the desire  UI (not web) on Java is not so clear. Also forget about EE. Desire to write UI on Java purely academic and not for this case. What  carry, Swing or already JavaFX? GIV> There above in  where  that? You like a web wanted? The answer above.  as to the person corrupted megaconvenient Grid and similar from Telerik and DevExpress, it would be desirable  similar both on a web muzzle, and in need of JavaFX/Swing, therefrom and a question. GIV> Glassfish it is impossible to use. Use https://spring.io/guides/gs/rest-service/ GIV> Separately you learn to do  services on , separately a web-mordostroitelstvo. Thanks for answers! About Java EE not absolutely understood is it is not necessary from a word absolutely, or it is not necessary for me in my case? Like as is both model, and date, and the controler, and . Java EE it is type mega a hardcore?

5

Re: Passage with.NET on Java EE

Hello, RainBoy, you wrote: RB> Many thanks for your answers. I would make ordinary  a demon on jetty, it would be launched through systemd, would open specified in a config of application port on the specified dial-up of interfaces, would accept http. In a demon it is possible to launch and something on-demand, on command through http, and on the timer too. Desktopnoe application to do sense is not present. Let it will be simple web service + angular. Https it is possible to adjust and from within jetty but as it seems to me, is easier to give it in nginx or in haproxy. In what minuses - on tomcat it is possible  application by one command , here you will need to stop, substitute service jar', to restart. Pluses - should not be adjusted tomcat, and in it it is a lot of everything with what it is necessary to understand, but is better with it not to be engaged, eat and more interesting occupations. To collect all it is better in one uberjar with the help maven-shade-plugin, it will be launched such jar' very simply java-jar myapp.jar /path/to/myconfig.xml (json) On  most easier to write the functional frame of application that it worked, and to a prettiness and imposition to give . It is the typical approach because extremely rarely there are the developers, capable to make both it is beautiful, and it is correct. Update: to you there Spring advised, your business, I would steer clear of this combine. For interview a toad-programmers the question  should "be necessary to one of questions what for? No, it is clear, what all use it, well approximately as icons on a torpedo, and what for it is necessary in sense of functionality?". At Telerik' there are components for web pages, can use and be terrified by them the abundance of their possibilities. And that can be made, and , besides, that is necessary.

6

Re: Passage with.NET on Java EE

On  most easier to write the functional frame of application that it worked, and to a prettiness and imposition to give . It is the typical approach because extremely rarely there are the developers, capable to make both it is beautiful, and it is correct. Thanks for the answer! A prettiness question in Task List last, but important. It is important to launch and initially to select correct that then  it is beautiful (not me - quite probably), but with minimum crutches from for are incorrect the selected architecture.

7

Re: Passage with.NET on Java EE

Hello, RainBoy, you wrote: GIV>> Generally the desire  UI (not web) on Java is not so clear. Also forget about EE. RB> Desire to write UI on Java purely academic and not for this case. What  carry, Swing or already JavaFX? I wrote pair of hand-made articles on JavaFX. It is more convenient than Swing. RB> Sootvetsvenno as to the person corrupted megaconvenient Grid and similar from Telerik and DevExpress, would be desirable  similar both on a web muzzle, and in need of JavaFX/Swing, therefrom and a question. RB> about Java EE not absolutely understood is it is not necessary from a word absolutely, or it is not necessary for me in my case? RB> like as is both model, and date, and the controler, and . Java EE it is type mega a hardcore? From EE it is possible to use separate spare parts. The Same servlets and filters can work under a cowl in RestController. And something, type jsp or jsf  day.

8

Re: Passage with.NET on Java EE

Hello, GarryIV, you wrote: GIV> from EE it is possible to use Separate spare parts. The Same servlets and filters can work under a cowl in RestController. And something, type jsp or jsf  day. JSP it can be convenient for any small and absolutely wooden service at which it is not necessary any JS in the browser. Something it is necessary  pages on the server.

9

Re: Passage with.NET on Java EE

Hello, Glory, you wrote: I would make ordinary  a demon on jetty, it would be launched through systemd, would open specified in a config of application port on the specified dial-up of interfaces, would accept http. And that not CMD/path/to/jar in Dockerfile? Update: to you there Spring advised, your business, I would steer clear of this combine. For interview a toad-programmers the question  should "be necessary to one of questions what for? No, it is clear, what all use it, well approximately as icons on a torpedo, and what for it is necessary in sense of functionality?". At least convenience of development of that costs, application == 1 file, specify it where a file with adjustments and rushed.

10

Re: Passage with.NET on Java EE

Hello, Glory, you wrote: GIV>> from EE it is possible to use Separate spare parts. The Same servlets and filters can work under a cowl in RestController. And something, type jsp or jsf  day. JSP it can be convenient for any small and absolutely wooden service at which it is not necessary any JS in the browser. Something it is necessary  pages on the server. And that is better not jsp , the blessing of engines as than a dirt.

11

Re: Passage with.NET on Java EE

At Telerik' there are components for web pages, can use and be terrified by them the abundance of their possibilities. And that can be made, and , besides, that is necessary. Precisely - KendoUI Thus there is sheaf KendoUI + Amgular + fatJAR + probably servlets, I  understand? By the way, and what right answer when it is necessary  Spring?

12

Re: Passage with.NET on Java EE

Hello, GarryIV, you wrote: GIV> At least convenience of development of that costs, application == 1 file, specify it where a file with adjustments and rushed. And maven with a plug-in for creation uberjar makes to you just the same result - one file.

13

Re: Passage with.NET on Java EE

Hello, RainBoy, you wrote: RB> Thus there is sheaf KendoUI + Amgular + fatJAR + probably servlets, I  understand? Yes, so. Most likely not servlets, and simply class-controler labeled by attributes. About KendoUI I of anything cannot tell. RB> by the way, and what right answer when it is necessary  Spring? When it already is in the project. Or here, is such Spring Security, and near to it SAML, not by the night be remembered. It is better most not to write it.

14

Re: Passage with.NET on Java EE

Hello, Glory, you wrote: GIV>> At least convenience of development of that costs, application == 1 file, specify it where a file with adjustments and rushed. And maven with a plug-in for creation uberjar makes to you just the same result - one file. And how  in ?  to adjust? Remaining adjustments where? There are no thanks, I am better the docker-file from three lines and all this economy though in the docker, though in ec2 though in kubernetes.

15

Re: Passage with.NET on Java EE

Hello, GarryIV, you wrote: RB>> - the Same question to Data Processor, the correct design GIV> As fat jar. It now certainly main method, but at usage of containers fat jar already in general is not mandatory (to drive some tens megabytes of dependences on everyone  it long and not clearly what for).

16

Re: Passage with.NET on Java EE

Hello, Glory, you wrote: to you there Spring advised, your business, I would steer clear of this combine. For interview a toad-programmers the question  should "be necessary to one of questions what for? No, it is clear, what all use it, well approximately as icons on a torpedo, and what for it is necessary in sense of functionality?". To explain "what for" it is simple enough, the answer to a question "why far away" and "that instead of it is much more interesting?".

17

Re: Passage with.NET on Java EE

Hello, RainBoy, you wrote: RB> Sootvetsvenno as to the person corrupted megaconvenient Grid and similar from Telerik and DevExpress, would be desirable  similar both on a web muzzle, and in need of JavaFX/Swing, therefrom and a question. On web muzzle Java there is no minimum of years ten (and with everyone new JDK the next nail in a cover of this coffin arrives). The decent interface can be collected quickly on Angular/TypeScript. RB> About Java EE not absolutely understood is it is not necessary from a word absolutely, or it is not necessary for me in my case? And such platform does not exist any more. They left Orakla in Eclipse and were renamed in Jakarta EE that already many speaks about a driving vector. Well it also looks all the same at present archaically. Alternatively it is necessary to look on Spring Boot 2.0 and Spring WebFlux. Today still Spring Cloud 2.0 GA quitted, if clouds, scalability and CD interest.

18

Re: Passage with.NET on Java EE

Hello, Glory, you wrote: RB>> By the way, and what right answer when it is necessary  Spring? You always have three variants: JEE, Spring to collect a stack most of different decisions. The variant 3 makes sense if there is absolutely nothing or there are very specific requirements. JEE on many parameters loses to stack Spring (convenience API, a functional, sometimes generally conciseness of the selected decisions). If it is necessary to collect simply quickly the web application Spring is quite normal choice with the minimum quantity of a rake (I passed to it as the main stack about 10 years ago, about 4 years ago started to use Spring Boot, and never faced any problems).

19

Re: Passage with.NET on Java EE

Hello, Baudolino, you wrote: RB>>> - the Same question to Data Processor, the correct design GIV>> As fat jar. B> It now certainly main method, but at usage of containers fat jar already in general is not mandatory (to drive some tens megabytes of dependences on everyone  it long and not clearly what for). At the expense of what long? At the expense of archive creation? Yes that copecks. And it does not influence the size of the container in any way.

20

Re: Passage with.NET on Java EE

Hello, GarryIV, you wrote: GIV> At the expense of what long? At the expense of archive creation? Yes that copecks. And it does not influence the size of the container in any way. If at you fat jar delta of the assembly it will be all entirely, and each assembly in CI drives on a test server of tens-other superfluous megabytes (and even all one hundred - yet at all microservices). If CI the server at you costs at office, and a hosting somewhere in far region Amazona, it can occupy time. If  versions of all dependences to collect in a separate image which will be cached in a test surrounding, it can spare about several minutes on a cycle of the assembly and testing in enough large-scale project.