Learnings

Posted on

This post comprises the learnings gathered throughout the development of the nuvoPOS.

  1. javax.naming.NoInitialContextException  -> This error was encountered during the setup of JMS on Glassfish. The library gf-client.jar needs to point to the library in the Glassfish folder.

BitTorrent Sync

Posted on

To install BitTorrent Sync on Ubuntu 12.04 you need to do the following:

1) Add the PPA to the repository

Code: sudo add-apt-repository ppa:tuxpoldo/btsync

Code: sudo apt-get update

 

2) Install BitTorrent Sync

Code: sudo apt-get install btsync

 

3) Configure BitTorrent Sync

Open a browser and go to localhost:8888

Here you can add a new folder or join a shared folder

GlassFish Server

Posted on

To install Glassfish server on Ubuntu 12.04 you need to to the following:

– Download and install JDK 7

– Download and install Glassfish

 

JDK 7:

http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7

 

Glassfish server:

https://glassfish.java.net/getstarted.html

http://hiromia.blogspot.dk/2013/06/how-to-auto-start-glassfish-server.html

 

Configure Glassfish server:

Server-config -> Java Message Service -> JMS Hosts:

Add new:

Name and Host should be the IP address of the terminal

Port 7676

 

Java Message Service:

Set the default JMS host to the newly added IP adddress

Save and ping

 

Resources -> JMS resources -> Connection factory:

Create new Connection Factory

JNDI Name: nuvoposFactory

Resource type: topic

Save

 

Destination resources:

Add new:

JNDI name: nuvoposTopic

Physical destination name: nuvoposTopic

Resource type: topic