[JBoss Seam] - Re: Feature request regarding nested conversations
by jacob.orshalick
Hi Matt,
Thanks for the response!
Actually I am doing a Person.setAddresses(listOfAddresses) when the Address details page is submitted. This sets the list of addresses for the Person in the nested conversation not affecting the parent conversation. The reason is that Seam has taken a snapshot of my Person entity in the outer conversation on nesting (which didn't have the new addresses). The original Person instance will be reverted back to should the user back up to the original edit Person screen and submit. Seam retrieves the outer conversation by id on submit and restores the state of my Person object at the time of the snapshot which doesn't include the new addresses.
I hope that clarifies the scenario a little bit...
You bring up an interesting point with respect to the EntityManager. I will have to test this point using the Seam managed persistence context. I do not know the effects of nesting on the Seam managed persistence context and whether it is included in the state snapshot. Currently my implementation does not require a Seam managed persistence context as we always perform a fetch join when dependent objects are needed and merge() on final submit.
Thus, I am keeping my entities within the scope of the conversation context. This ensures that nesting the conversation will maintain a state snapshot of my entity in the outer conversation context regardless of changes to the entity in the nested conversation.
Maybe an expert on the effects of nested conversations on a Seam managed persistence context could shed some light on this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085669#4085669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085669
18 years, 10 months
[JBossCache] - Re: How to configure the cache listener in the xml configura
by manik.surtani@jboss.com
"jorgemoralespou_2" wrote :
| Why this is not a feature? I think it is very desired for a lot of people.
|
Want to contribute it as a feature then? ;)
Otherwise, create a JIRA for this, as a feature request, and vote on it. I'll see when we can schedule it.
"jorgemoralespou_2" wrote :
| How should I register my listeners, and when. I'm using some treeCaches in a JBoss server Environment, and I want to act on some nodes being created. I store configuration in cache, and as these configuration changes, I want to fire some MBean notifications, for reconfiguring some parts of the app. Also, this has to be done in every node of my cluster.
|
Use the listener registration API. See the user guide for this. If this is in a webapp, a startup servlet may be a good place to do this. You will have to copy this code on to all servers in your cluster.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085661#4085661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085661
18 years, 10 months
[Clustering/JBoss] - multi-homed, multi-app jboss cluster only partially working
by awclemen
Hello Forum Folks,
I'm running Jboss 4.0.4GA.
I have two servers Server1 and Server2. Each server has two IPs on one NIC, IPServer1-1, IPServer1-2 for Server1 and IPServer2-1, IPServer2-2 for Server2. I have two apps running on the servers App1 and App2. App1 handles requests from first set of IPs (IPServer1-1 & IPServer2-1) and App2 handles requests from the second set of IPs (IPServer1-2 & IPServer2-2). The reason for this is I have seperate SSL certificates for each application. I have a Cisco box doing the load-balancing using sticky sessions and it does fail-over when a JBoss server is brought down.
Now, when I bring down one server, App1 correctly fails over (i.e. the session continues on the other server). However, App2 does not.
The first question I have is, Is possible to have this type of fail-over for both applications or do I need to create different JBoss instances for each application?
Secondly, if this is possible, What am I doing wrong? I suspect it has something to do with the binding of the IP with the clustering service.
Currently, I have not bound the clustering service to any IP address and the logs show that the clustering is working on the first set of IPs (where App1 is correctly working for fail-over). Can I bind the clustering service to mulitple IP addresses? If so, how?
Thanks in advance for your time and effort.
--Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085656#4085656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085656
18 years, 10 months