B4J Question Web app

besoft

Active Member
Licensed User
Longtime User
Hi,
I would like to created a web application with the Oracle database. I read a lot and read on the Internet and I'm a little confused.
The application made by B4J using WebSocket. Locally on the computer I know how it works, in the jar file is an integrated server.
How do I run an application on the host server with a domain? Would anyone was friendly and wrote a bit more about it.
I am a rookie in B4J, before I have a lot to deal mostly with MSAccess.

Thanks
 

Roycefer

Well-Known Member
Licensed User
Longtime User
What host server are you planning on using? B4J apps will run on any computer that has installed on it a Java 8-compatible JVM. Running your server is usually as simple as running
B4X:
cd path/to/jar/file
java -jar MyServer.jar
from the command line or in the terminal emulator. Have you looked at Erel's tutorials?

http://b4x.com/android/forum/threads/webapp-web-apps-overview.39811/
http://b4x.com/android/forum/threads/webapp-hello-world-web-app.39808/
http://b4x.com/android/forum/threads/server-building-web-servers-with-b4j.37172/
 
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime User
Sorry to interfer @Roycefer , but maybe for @besoft, it's not that simple.
I had the same issue with a customer, who wanted finally, a war file, to integrate in an application server like Tomcat, in that case, B4J will not do the job, and maybe @Erel has a clever view, in order to use B4J in those cases... (high level production IT environment )

Patrick
 
Upvote 0

besoft

Active Member
Licensed User
Longtime User
Server is Tomcat. Therefore, I ask. User requirements are Java and Oracle

What should I do in this case?
 
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime User
Server is Tomcat. Therefore, I ask. User requirements are Java and Oracle

What should I do in this case?
I really don't know, upon my experience, I had to re-develop everything using Eclipse, and Hibernate (for data layer), adding a data abstraction layer.

I think @Erel should answer such a question. Because it's a real question, where we have to think if B4J is just a prototype help, or a tiny alternative solution, or if it's more than this, in a real production world, where middle or big sizes companies don't care about embedded jetty solutions (or standalone tiny solutions), and where Apache Tomcat or websphere are used.

Patrick
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4J creates very powerful standalone web servers.

You cannot embed the web server inside a Tomcat server. You can run both on the same physical server and configure Tomcat to act as a proxy (based on the path) and delegate the requests to the B4J server. There can be many web servers running on the same computer.

Note that B4J server performance is similar to Tomcat performance.
 
Upvote 0

besoft

Active Member
Licensed User
Longtime User
Thanks for the answers

I ask the user for more information. The application would work in the local network with about 60 users. It is mostly for reading data in a few points the entry or just a correction data.

In the network is also the Oracle server. If correct thinking could run on a single computer B4J server and application, and then from other computers on the network access to applications?
 
Upvote 0

besoft

Active Member
Licensed User
Longtime User
It has a computer running the server and any application specific settings, you can access other applications? How to connect computers to the server? Directly or via a VPN?

I apologize for such basic questions. from a read on the Internet I did not give the whole picture. In this area, I have very little experience.

Thanks
 
Upvote 0

besoft

Active Member
Licensed User
Longtime User
Thank you very much.
I got all the answers for now. I did a quick test. It works great.
Now it follows the development of applications and will probably have a few questions.
 
Upvote 0
Top