onsdag 26 juni 2013

Yakutia game progress

I will try to blog more about my hobby-project Yakutia.

Mainly it is a project for me to learn the Java EE suite and have something to fiddle around with on my spare time. Since I have been working in a few projects with continuous delivery/integration I also setting up my own pipeline for this project. 

Now I have been struggling with having two glassfish instances on the same server box (unfortunately I don't have the resources for having two servers..). 

What I have been struggling with now is to setup two glassfish instances (one for test and one for "prod). However I seem to have a problem with getting the both instances standalone and not to be interfering with each other. 

I created both domains with the asadmin command with:
$: ./asadmin create-domain --portrange <myportrange>

That seemed to do the trick with clashing ports.

However when I login to the second instance and are logged in to the first one, I get thrown out from the first one. The same issue is for my deployed web-app. So I will try to find a solution for this. It might be that I am using the same domain name? I have really no clue.
If not, I don't know the best practice for this but maybe running two different domains in the same instance?