Re: Syncope clustering on localhost

2016-01-06 Thread andrea . patricelli
Hi Colm,

Massimiliano's answer is the best one and the way to follow.
I add this only for completion and to give visibility to a new technology.
In your case another approach could be the docker one.
You could have on the same machine two instances of docker running the same 
syncope with the same configuration (same port, datasource, etc.) and "bypass" 
other supplementary configuration. I mean simple standalone configuration. 
These instances may be attacched to another docker instance acting as database.
Obviously you have to bind docker instances on different ports on localhost as 
you did.
To have more info on how to run syncope in docker please refer to [1].
Syncope with docker is experimental and maybe it's not so easy to set-up, and 
maybe some docker (and docker-compose) notions are needed.
Cluster has not yet been attempted :) but I think it could be an option for you.
 
[1] http://blog.tirasa.net/apache-syncope-with-docker.html

Best regards,
Andrea

Il 06/gen/2016 01:58 PM Colm O hEigeartaigh  ha scritto:
>
> >
> > >
> > > Hi all,
> > >
> > > I want to set up a trivial Syncope cluster on my machine (to test a 
> > > CXF-based client using CXF's failover feature). I had thought of just 
> > > setting up two Tomcat instances on different ports using a shared H2 
> > > database file sitting on the hard drive. 
> > >
> > > Is it still necessary to set a value for "openjpa.RemoteCommitProvider" 
> > > as per:
> > >
> > > https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster
> > >
> > > ? If so how does it work when I have two instances on the same machine, 
> > > and presumably sharing the same port? Or is this whole approach invalid?
> > >
> > > Thanks,
> > >
> > > Colm.
> > >
> > > -- 
> > > Colm O hEigeartaigh
> > >
> > > Talend Community Coder
> > > http://coders.talend.com


Re: Syncope clustering on localhost

2016-01-06 Thread Colm O hEigeartaigh
Thanks Massi, I have it working now, although I ran into issues with the H2
approach, I'm using MySQL instead and it works perfectly.

Colm.

On Wed, Jan 6, 2016 at 3:05 PM, Massimiliano Perrone <
massimiliano.perr...@tirasa.net> wrote:

>
>
> Il 06/01/2016 15:58, Colm O hEigeartaigh ha scritto:
>
>
> I'm aware of that :-) Obviously the Tomcat instances are on different
> ports. I want to know if there is a way around the
> "openjpa.RemoteCommitProvider" configuration, as you can't specify a port
> per IP address here.
>
>
> Hi Colm,
> I found this [1], as you can read at paragraph 2.1.2 TCP you can configure
> the addresses and the port for the openjpa.RemoteCommitProvider property.
>
> Regards,
> Massi
>
> [1]
> http://openjpa.apache.org/builds/1.2.3/apache-openjpa/docs/ref_guide_event.html
>
>
> Colm.
>
> On Wed, Jan 6, 2016 at 1:04 PM, Leonardo K. Shikida < 
> shik...@gmail.com> wrote:
>
>> I think you cannot have 2 instances of anything in the same machine
>> sharing the same port
>>
>> []
>>
>> Leo
>>
>> On Wed, Jan 6, 2016 at 10:58 AM, Colm O hEigeartaigh <
>> cohei...@apache.org> wrote:
>>
>>> Hi all,
>>>
>>> I want to set up a trivial Syncope cluster on my machine (to test a
>>> CXF-based client using CXF's failover feature). I had thought of just
>>> setting up two Tomcat instances on different ports using a shared H2
>>> database file sitting on the hard drive.
>>>
>>> Is it still necessary to set a value for "openjpa.RemoteCommitProvider"
>>> as per:
>>>
>>>
>>> https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster
>>>
>>> ? If so how does it work when I have two instances on the same machine,
>>> and presumably sharing the same port? Or is this whole approach invalid?
>>>
>>> Thanks,
>>>
>>> Colm.
>>>
>>> --
>>> Colm O hEigeartaigh
>>>
>>> Talend Community Coder
>>> http://coders.talend.com
>>>
>>
>>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>
>
> --
> Massimiliano Perrone
> Tel +39 393 9121310
>
> Tirasa S.r.l.
> Viale D'Annunzio 267 - 65127 Pescara
> Tel +39 0859116307 / FAX +39 085973http://www.tirasa.net
>
> "L'apprendere molte cose non insegna l'intelligenza"
> (Eraclito)
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Syncope clustering on localhost

2016-01-06 Thread Massimiliano Perrone



Il 06/01/2016 15:58, Colm O hEigeartaigh ha scritto:


I'm aware of that :-) Obviously the Tomcat instances are on different 
ports. I want to know if there is a way around the 
"openjpa.RemoteCommitProvider" configuration, as you can't specify a 
port per IP address here.


Hi Colm,
I found this [1], as you can read at paragraph 2.1.2 TCP you can 
configure the addresses and the port for the 
openjpa.RemoteCommitProvider property.


Regards,
Massi

[1] 
http://openjpa.apache.org/builds/1.2.3/apache-openjpa/docs/ref_guide_event.html




Colm.

On Wed, Jan 6, 2016 at 1:04 PM, Leonardo K. Shikida > wrote:


I think you cannot have 2 instances of anything in the same
machine sharing the same port

[]

Leo

On Wed, Jan 6, 2016 at 10:58 AM, Colm O hEigeartaigh
mailto:cohei...@apache.org>> wrote:

Hi all,

I want to set up a trivial Syncope cluster on my machine (to
test a CXF-based client using CXF's failover feature). I had
thought of just setting up two Tomcat instances on different
ports using a shared H2 database file sitting on the hard drive.

Is it still necessary to set a value for
"openjpa.RemoteCommitProvider" as per:


https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster

? If so how does it work when I have two instances on the same
machine, and presumably sharing the same port? Or is this
whole approach invalid?

Thanks,

Colm.

-- 
Colm O hEigeartaigh


Talend Community Coder
http://coders.talend.com





--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


--
Massimiliano Perrone
Tel +39 393 9121310

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

"L'apprendere molte cose non insegna l'intelligenza"
(Eraclito)



Re: Syncope clustering on localhost

2016-01-06 Thread Colm O hEigeartaigh
I'm aware of that :-) Obviously the Tomcat instances are on different
ports. I want to know if there is a way around the
"openjpa.RemoteCommitProvider" configuration, as you can't specify a port
per IP address here.

Colm.

On Wed, Jan 6, 2016 at 1:04 PM, Leonardo K. Shikida 
wrote:

> I think you cannot have 2 instances of anything in the same machine
> sharing the same port
>
> []
>
> Leo
>
> On Wed, Jan 6, 2016 at 10:58 AM, Colm O hEigeartaigh 
> wrote:
>
>> Hi all,
>>
>> I want to set up a trivial Syncope cluster on my machine (to test a
>> CXF-based client using CXF's failover feature). I had thought of just
>> setting up two Tomcat instances on different ports using a shared H2
>> database file sitting on the hard drive.
>>
>> Is it still necessary to set a value for "openjpa.RemoteCommitProvider"
>> as per:
>>
>>
>> https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster
>>
>> ? If so how does it work when I have two instances on the same machine,
>> and presumably sharing the same port? Or is this whole approach invalid?
>>
>> Thanks,
>>
>> Colm.
>>
>> --
>> Colm O hEigeartaigh
>>
>> Talend Community Coder
>> http://coders.talend.com
>>
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Syncope clustering on localhost

2016-01-06 Thread Leonardo K. Shikida
I think you cannot have 2 instances of anything in the same machine sharing
the same port

[]

Leo

On Wed, Jan 6, 2016 at 10:58 AM, Colm O hEigeartaigh 
wrote:

> Hi all,
>
> I want to set up a trivial Syncope cluster on my machine (to test a
> CXF-based client using CXF's failover feature). I had thought of just
> setting up two Tomcat instances on different ports using a shared H2
> database file sitting on the hard drive.
>
> Is it still necessary to set a value for "openjpa.RemoteCommitProvider" as
> per:
>
> https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster
>
> ? If so how does it work when I have two instances on the same machine,
> and presumably sharing the same port? Or is this whole approach invalid?
>
> Thanks,
>
> Colm.
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>


Syncope clustering on localhost

2016-01-06 Thread Colm O hEigeartaigh
Hi all,

I want to set up a trivial Syncope cluster on my machine (to test a
CXF-based client using CXF's failover feature). I had thought of just
setting up two Tomcat instances on different ports using a shared H2
database file sitting on the hard drive.

Is it still necessary to set a value for "openjpa.RemoteCommitProvider" as
per:

https://cwiki.apache.org/confluence/display/SYNCOPE/Setup+a+Syncope+cluster

? If so how does it work when I have two instances on the same machine, and
presumably sharing the same port? Or is this whole approach invalid?

Thanks,

Colm.

-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com