What is Message Server?
Some users thinks they need to run Message Server to be able to connect to SQL Server. Message Server has no relation with database and if you have problems configuring database please read SambaPOS Database Configuration topic. After configuring database connection come back to this tutorial to complete your network connection.
Message server is a special server application that enables communication between terminals. On a network environment waiters uses different terminals to enter orders. However other terminals waiting on Table Screen
does not update table color changes automatically. When a terminal connected to message server it can understand when it needs to refresh screens so when you create a ticket from a terminal all other terminal screens will update automatically.
Message Server Not Connected error message does not mean Database Not Connected. It means your terminals does not refresh automatically when tickets created.
On this video you can see how an order received from Ipad changes table colors on other computers.
How to configure it?
You need to run message server application only on SERVER computer. In the other words run it on the computer SQL Server runs.
You can run Message Server as a windows service or standalone application. Configuring Standalone App is easier however you need to keep it running. Once you install it as a windows service it will always run in the background and there will be no risk to close it.
###Running Standalone App
Navigate to SambaPOS Installation Folder
with Windows explorer and start Samba.MessagingServer.exe
program.
When you start running it you’ll see Server configuration window. Click Start
button to start running server.
Server will be running on 8080
port. On first start Windows Firewall
will ask if you want to allow Message Server
.
You can enable Start Server Automatically
setting to make it run automatically when windows restarts.
Click Allow Access
button. If you don’t allow access SambaPOS won’t be able to access Message Server
.
When message server started it hides itself to System Tray
area.
If you don’t see it in tray please expand tray and look for the apple icon.
You can click on Apple
icon to display message server window. Please just minimize it to hide it to tray. Closing this window will close message server.
Running message server multiple times may generate errors. When you receive error while starting message server please be sure it is not already running as a standalone app or windows service.
If message server running properly you’ll see Working...
label under window. You can click Stop
button to stop message server.
###Running Windows Service
You can prefer installing Message Server
as a windows service. Please run it only on server computer and be sure standalone app not already running.
To run service installer app open SambaPOS installation folder with file explorer and start Samba.MessagingServerServiceTool.exe
You need to have Administrator
privileges to be able to install services.
Default Port for windows service is 8383. We’ll need port number while configuring terminals so note the port number somewhere.
Click Install Service
button to start.
It will install windows service and start running Message Server
. To check if it is running fine or not you can check Task Manager’s Services
tab. It should be Running
.
You can close Service Tool
window. Messaging server will always run even you restart windows and you don’t need to care about it anymore…
###Configuring SambaPOS
On client computers you need to configure SambaPOS to connect to message server. You need to do it on each client computer.
Run SambaPOS and open Management > Local Settings
- Message Server Name: Type here the name of the
Server
computer. For example if your server name isSERVER-PC
typeSERVER-PC
here. - Message Server Port: Type port number here. If you’re using standalone app default port number is
8080
. For windows service it is8383
. - Auto Start Message Client: Enable this setting to reconnect to Message Server when you restart SambaPOS.
Click Save
and Restart SambaPOS
Windows will again ask if you want to allow SambaPOS to access to Server.
Allow it by clicking Allow Access
button. If you don’t allow SambaPOS won’t connect to message server.
When SambaPOS connected to a message server you’ll see Green Connected
label here.