[JBoss Messaging] - Re: JBoss Messaging 1.2 deployment in cluster
by rcjboss
Sorry, here are more details:
There is no issue with the JMS ID implementation of JBoss Msg 1.2.
Only problem is it does not help us in our specific requirement, which goes like this:
1. We want to make sure that each msg getting into the queue has a Sequence Number.
2. We need to make sure that this sequence number is real sequence as who ever posted the message first should get a sequence number that is lower to the one who posts the msg next.
3. The JBossMsg1.2 implementation gives sequence numbers in blocks to each node (1to256 to node1, 257-xxx to node2).
4. In this case we could end-up on node 2 and would get a sequence number for a msg that came in earlier to be higher than the request that came to node1 at a later time.
Please confirm that my understanding is correct about the implementation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006947#4006947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006947
19 years, 2 months
[JBoss Seam] - pdf form 'filling and generic overlay proposition
by kukeltje
I've been looking a little into implementing generic text and image overlay for an existing PDF and output that as a new pdf.
Besides needing a PdfStamper instead of a PdfWriter, there are some design issues to be made afaics.
We could stil use the p:document as a base tag and add a overlay tag in that this overlay tag could take a file/url/... as an attribute and within that overlay tag we could allow a basic set of tags like page to select on which page to do overlay and within that tag we could allow text and image with postition, size, font etc to do basic things. An example for overlay would be:
| <p:document>
| <p:overlay src="/pdf/myExistingPdf.pdf">
| <p:page number="1">
| <p:text top="100" left="100" fontsize="10" fonttype="....">Hi, I'm overlayed text\n #{user.name} did this</p:text>
| </p:page>
| <p:page number="3">
| <p:image src="/jboss.jpg" top="225" left="150" />
| </p:page>
| </p:overlay>
| </p:document>
|
or for filling out forms:
<p:document>
| <p:form name="formId" flatten="true">
| <p:formElement name="name">#{formBean.name}</p:formElement>
| <p:formElement name="address" value="Address" />
| <p:formElement name="city" value="#{formBean.city}" />
| <p:formElement name="country">The Netherlands</p:formElement>
| </p:form>
| </p:document>
Although the name attribute on the form element seems not to be needed (no examples with more than one form in a pdf and no api call to retrieve a specific form so there probably never is one)
The 'flatten' attribute makes the document loose all it's input fields and just render as text (where should its' default be?)
Any other suggestions?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006943#4006943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006943
19 years, 2 months