Share My Creation JavaFX application in WebPage.

After building a complex access-control, security Application in B4J and running like a charm for 3 years, I get the question to turn this in a Web-application.
This Application is that complex, that it is not possible to turn this, a easy way, in a Web-Application.
This means rewrite the hole application again for web.
I have found a way to let the application run in a Web Browser.

More info and Images follow
 

rboeck

Well-Known Member
Licensed User
Longtime User
Can you show us your config file; currently i was not able start my examples.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Can you show us your config file; currently i was not able start my examples.
Watch the video @Kiffi say.

Also you can do this.
First create a new application just like the video say.
What I have done to start is set the value from the javaFX application Config.

To do that start the management console in an other browser windows for easy copy paste.
Make your changes you need for the application.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
My problem was, that i used b4j.example for Main Class in config, correct is b4j.example.main. Than it works!
Ok nice.
Your application is working?
 

rboeck

Well-Known Member
Licensed User
Longtime User
Sure, on first look everythings seems to be ok. Because its using sqlite, now i have to check if it also works with concurrent sessions. Than i have to check the tablets etc. if its useable here.
 

Kiffi

Well-Known Member
Licensed User
Longtime User
Hello,

Webswing runs without problems on localhost 8080.

now I want Jetty to be routed through my IIS. I have set up a reverse proxy for this purpose, which modifies the URL:


w1PCW7Y.png


However, websocket requests are not forwarded correctly and I don't know what the rule for this should look like.

http://webswing.tuebben.de/webswingtest/

anybody got a tip for me?

Thanks in advance & Greetings ... Peter
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Sure, on first look everythings seems to be ok. Because its using sqlite, now i have to check if it also works with concurrent sessions. Than i have to check the tablets etc. if its useable here.
I use my application with MySQL and MsSQL so Sqlite have to work.
You just get in problems, when you are using more then one Form.
Not all combinations will work but you can see this when the title bar start to flicker.
There is a solution for that.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hello,

Webswing runs without problems on localhost 8080.

now I want Jetty to be routed through my IIS. I have set up a reverse proxy for this purpose, which modifies the URL:


w1PCW7Y.png


However, websocket requests are not forwarded correctly and I don't know what the rule for this should look like.

http://webswing.tuebben.de/webswingtest/

anybody got a tip for me?

Thanks in advance & Greetings ... Peter
I have not done this before. Maybe the forum can help.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hello,

Webswing runs without problems on localhost 8080.

now I want Jetty to be routed through my IIS. I have set up a reverse proxy for this purpose, which modifies the URL:


w1PCW7Y.png


However, websocket requests are not forwarded correctly and I don't know what the rule for this should look like.

http://webswing.tuebben.de/webswingtest/

anybody got a tip for me?

Thanks in advance & Greetings ... Peter

I have not done this before. Maybe the forum can help.
If you find a solution Peter please share it with us.
 

rboeck

Well-Known Member
Licensed User
Longtime User
I am currently locked to my on pc; what do i have to do to use this webserver in an local network? I tested to shut down the firewall, but i does not help. What have i overseen?
 

Swissmade

Well-Known Member
Licensed User
Longtime User
I am currently locked to my on pc; what do i have to do to use this webserver in an local network? I tested to shut down the firewall, but i does not help. What have i overseen?
localhost:8080 is only for your local PC.
in jetty.probery set host from localhost to 0.0.0.0
 

rboeck

Well-Known Member
Licensed User
Longtime User
I used the ip adress from my pc: http:\\192.168.1.50:8080, but i dont get any response. Which file or setting do i have to change?
 
Last edited:

Swissmade

Well-Known Member
Licensed User
Longtime User
I used the ip adress from my pc: http:\192.168.1.50:8080, but i dont get any response. Which file or setting do i have to change?
Single slash in this link
Is webswing running?
see
in jetty.probery set host from localhost to 0.0.0.0
# org.webswing.server.host=localhost
# org.webswing.server.host=192.168.178.10
org.webswing.server.host=0.0.0.0
 

rboeck

Well-Known Member
Licensed User
Longtime User
Was only a type in the message. Now i am a step further, i get asked for username and password, so i have to research this setting.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Was only a type in the message. Now i am a step further, i get asked for username and password, so i have to research this setting.
Default UN admin PW pwd
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all
Please share your creation, problems you have and also what you have find out.
Just share all about WebSwing.
We all have to learn.
Thanks
 
Top