[ 
https://issues.apache.org/jira/browse/WOOKIE-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184876#comment-13184876
 ] 

Paul Sharples commented on WOOKIE-284:
--------------------------------------

I've commited some changes that should allow you to run two instances of wookie 
on one machine. (NOTE: This fix is really just to allow you to run two default 
jetty/derby instances of wookie together)

I've added a new runtime argument which both the Start and Stop classes look 
for called shutdownport

You can either put this value into your build.properties file i.e.

run.args="port=8081" "shutdownport=8078"

or you can add...

 -Drun.args="port=8081 shutdownport=8078"
 
 to the "Main" tab of your eclipse ant launch configuration for build.xml.
 
 
FYI: To test this out I made a new build of wookie standalone using the ant task

'build-release-standalone'

I then unzipped this build twice into two folders. (wookie-1 and wookie-2) 

I ran the startup script in wookie-1 which started wookie on port 8080.

In the folder wookie-2 I modified the startup script as follows...

java -classpath 
./lib/*;./build/webapp/wookie/WEB-INF/lib/*;./build/webapp/wookie/WEB-INF/classes
 org.apache.wookie.server.Start port=8082 shutdownport=8078 %PROGARGS%

...and also modified the shutdown script as follows...

java -classpath 
./lib/*;./build/webapp/wookie/WEB-INF/lib/*;./build/webapp/wookie/WEB-INF/classes
 org.apache.wookie.server.Stop shutdownport=8078

I then ran the startup script in wookie-2 which started wookie on port 8082.

I stopped and started both instances and they didn't seem to interfere which 
each other.
                
> Unable to run two instances of wookie on one machine
> ----------------------------------------------------
>
>                 Key: WOOKIE-284
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-284
>             Project: Wookie
>          Issue Type: Improvement
>    Affects Versions: 0.9.0, 0.9.1
>            Reporter: Ross Gardler
>            Assignee: Paul Sharples
>            Priority: Trivial
>             Fix For: 0.9.2
>
>
> It is possible to change the port number by setting the "run.args" property 
> in "local.build.properties" however, it is not possible to run two instances 
> of Wookie on the same machine as the port for the monitor thread used to stop 
> Wookie running is not configurable,
> This port number appears in line 123 of org.apache.wookie.server.Start
> This should be configurable from the properties setting.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to