[Clustering/JBoss] - Behaviour of the cache in case of failure of a node
by lucdewav
Hi,
I have a newbie question. I'd like to know how the Pojo cache (1.4.1) behaves in case of failure of a node in a 2 nodes cluster.
Our Pojo cache is configured to perform synchronous replication and to be transactional (the JTA transaction manager of our application server is used).
When a node is down and we call transactional methods that update objects in the cache, everything works fine without any error.
So i guess there's a node state detection implemented as a multicast heartbeat or something equivalent. But:
- what would be the behavior if an update of a cached object is done on a node and at the same time the other node crashes or can not be accessed ? Reading the docs it says that an exception is thrown (of which type ?)
and the transaction is rolled back.
- How Jboss cache makes the difference between a shutdown node and node that can not be reached (synchronisation can not be performed) due to network failure or a Jvm freeze ?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005909#4005909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005909
19 years, 3 months
[JBoss Seam] - Error in SeamSecurityFilter
by vladimir.kovalyuk
I realized that when user is accessing a page when it is not logged in, the first thing that is happening is JSF lifecycle due to the error in SeamSecurityFilter:
| if (!checkSecurityConstraints(hRequest.getServletPath(), hRequest.getMethod(), ident))
| hResponse.sendRedirect(String.format("%s%s", hRequest.getContextPath(), config.getSecurityErrorPage()));
| chain.doFilter(request, response);
|
Actually 'else' is missed:
| if (!checkSecurityConstraints(hRequest.getServletPath(), hRequest.getMethod(), ident))
| hResponse.sendRedirect(String.format("%s%s", hRequest.getContextPath(), config.getSecurityErrorPage()));
| else
| chain.doFilter(request, response);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005907#4005907
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005907
19 years, 3 months
[JBoss Seam] - Re: iText (PDF) support in Seam
by spambob
"norman.richards(a)jboss.com" wrote : Just to make sure I am hearing you correctly - you want to take an existing PDF document and define precise rectangles over it in which seam should generate a page overlay, essentially "filling in" the document?
Exactly! This way I could create a PDF Template with Acrobat, Scribus or any other DTP Software and later fill in the content with PDFStamper at some - in the JSF file - defined positions.
My problem is that the simple iText way is nice to generate a "quick & dirty" PDF report but to get something "professional" looking I need more control - i.e. exact positioning of the address so it can be seen through the envelope.
It would save me a lot of time if i could simply say put that text there in that font and ... instead of working with PdfContentByte. And my Customers could get their bills online which would look exactly like the ones I send them per mail (cause I would use the same PDF ;)).
Regarding your problem with header, footer & page numbers you perhaps should have a look at http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/. The idea is to react upon page events and use templates for stuff like "Page 4 of x". When the end of the document is reached you just replace x with the page count and it will be set on every page. Similar way with headers & footers. Hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005899#4005899
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005899
19 years, 3 months