B4J Question ABMaterial Multiple Jar and Server Structure

codie01

Active Member
Licensed User
Longtime User
Hi All,

Can anyone quickly explain a simple file structure running multiple ABMaterial Jars on a single server domain.

Currently I run the jar on the server root and the www folder is one above. The main Problem is that copymewithjars.needs if different for each jar and I can only have one in the directory.

Thanks Phil
 

alwaysbusy

Expert
Licensed User
Longtime User
You can run 3 jars, each with a different port on the same IP (if they have different .needs files, then just put them in a different folder).

e.g. IP=192.168.1.100

/root/myapp1/myapp1.jar ON PORT 51042
/root/myapp1/copymewithjar.need
/root/myapp2/myapp2.jar ON PORT 51043
/root/myapp2/copymewithjar.need
/root/myapp3/myapp3.jar ON PORT 51044
/root/myapp3/copymewithjar.need

This should work fine, and you would be able to reach the apps like this:
http://192.168.1.100:51042
http://192.168.1.100:51042
http://192.168.1.100:51043
http://192.168.1.100:51044
 
Upvote 0

codie01

Active Member
Licensed User
Longtime User
Thanks AB,

I tried this, last time we spoke, do I put all the www of each app together? AB you have developed ABMaterial into a market leader.

Thanks Again!
 
Upvote 0

mindful

Active Member
Licensed User
do I put all the www of each app together?
No as AB pointed out you create a different folder for each app:

/root/myapp1/myapp1.jar ON PORT 51042
/root/myapp1/copymewithjar.need
/root/myapp1/www

/root/myapp2/myapp2.jar ON PORT 51043
/root/myapp2/copymewithjar.need
/root/myapp2/www

/root/myapp3/myapp3.jar ON PORT 51044
/root/myapp3/copymewithjar.need
/root/myapp3/www

All apps act as different apps. You don't need to have only one www folder for all the apps.
 
Upvote 0
Top