[JBoss Seam] - New Seam app in production - faulty behaviour
by JUnkie
I just went into production with a new Seam app and see a problem now:
After a few days of running perfectly only the first element of all Lists that I display with <ui:repeat> is shown. This behavior is seen application wide, for every List from every session bean, no matter if the List is outjected or accessed via getter, no matter if the sb is stateless or stateful or which scope the sb has. The List in the session bean still holds all the elements but only the first one is displayed in the <ui:repeat>.
Nothing in the server log file. Only an app restart helps.
I can reproduce this on my dev machine easily: I pick any page that makes use of any of the several session beans and press F5 for a minute to produce thousand calls or so.
I'm helpless and scared as I have no idea why that is and how to fix this. Using:
Seam 1.2
JBoss 4.2
Facelets
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126563#4126563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126563
18 years, 2 months
[JBossCache] - Is Fqn reuseable?
by adamw
Hello,
I'm using JBoss Cache 1.4.1 (the one bundled with Seam) and have the following method:
| public void testCache1() {
| pojoCache.remove("/a");
| pojoCache.put("/a/b", 1, 1);
| }
|
In my test (which runs inside a Seam app), I start a transaction, invoke testCache1() and commit the transaction, and then repeat it once again. And it works without problems.
Now, I have another version of this method (which I though would be more efficient :) ):
| private static Fqn fqn1 = new Fqn("a");
| private static Fqn fqn2 = new Fqn(fqn1, "b");
|
| public void testCache2() {
| pojoCache.remove(fqn1);
| pojoCache.put(fqn2, 1, 1);
| }
|
When I repeat the test with testCache2(), it hangs on the second invocation of the put(fqn2,...) method.
The only difference between the two is that once I use the private static fqn-s, and once not. So can I reuse Fqn's, and if not, why?
--
Regards,
Adam Warski
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126562#4126562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126562
18 years, 2 months