-
1. Re: Clustered example and a few other example things
timfox Apr 6, 2009 2:14 PM (in response to timfox)For a test that uses JNDI to get the connection factorys and queus then we'll need to create two initial contexts.
I don't know if the example framework currently supports that. -
2. Re: Clustered example and a few other example things
timfox Apr 6, 2009 3:12 PM (in response to timfox)I also added a clustered topic example.
Note that I didn't update the readme etc - that still needs to be done but it gives an idea of how to put these clustering examples together. -
3. Re: Clustered example and a few other example things
gaohoward Apr 6, 2009 10:03 PM (in response to timfox)Thanks Tim.
>>>For a test that uses JNDI to get the connection factorys and queus then we'll need to create two initial contexts.
I think we can configure JNDI on each means config file using different ports. But there is only one client-jndi.properties, so i think for clustered example, we have to hard-code the jndi ENV. -
4. Re: Clustered example and a few other example things
gaohoward Apr 6, 2009 11:26 PM (in response to timfox)Hi Tim,
I think using JNDI for connection factory and queue lookup in clustered examples is more consistent with other jms examples. We can show more of other ways to do this in the core examples. -
5. Re: Clustered example and a few other example things
ataylor Apr 7, 2009 5:44 AM (in response to timfox)One thing that I found confusing is the usage of two beans files - one for each server.
We need 2 beans configs as the naming server ports are configured in them. I could still create 2 configs dirs to make things simpler but each would have its own beans file and configuration. -
6. Re: Clustered example and a few other example things
ataylor Apr 7, 2009 6:10 AM (in response to timfox)This meant I had to change all the directories journal, bindings, large messages so each server was using a distinct set.
You will have to do this anyway since the they are created relatively from the example base dir not the config dir. -
7. Re: Clustered example and a few other example things
ataylor Apr 7, 2009 7:31 AM (in response to timfox)Ive made the examples a lot simpler to write.
each server now has its own config, this will be in server0, server1 etc.
there should also be a client-jndi.properties in each config. Then in the code you can call getContext(id) where id is the server you want to connect too.