[EJB/JBoss] - Accessing data (variables) through XML descriptor?
by BogusException
I can't seem to get a concrete answer. I have all the EJB3 books out there, and even the JBoss/EJB3 book eludes to a way to pass data to an instance of a class via the XML descriptor for that class.
I want to avoid having to compile classes on the fly, thus requiring a JDK on the client, I really want to be able to pass data into a deployed class from the XML descriptor. Let me clarify: I want to pass data into the class at the point it is deployed, and not after. The idea is a pattern to support programmatic deployment of templates.
To be clear, I'm not talking about the standard EJB3 annotations in XML form, but arbitrary data for the intantiated class(es). Say, for a good example, that I wanted to pass integer or string data into a class. I want the class to be a "template" that used a different regex string, integers, etc. for each instance, but I won't know what that regex data actually is until runtime. In addition, I won't know how many of these classes will be used.
I'd like a way to tell the class all the information it will need in the XML descriptor, creating it on the fly at runtime programmatically, then deploying the class.
This is just an example of the desired deployment pattern, as it is a good example of how to template many simultaneous instances of a class that only differ from each other slightly.
TIA!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064363#4064363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064363
19Â years
[JBoss Seam] - Any plans for iText HTML 2 PDF?
by wesleyhales
I looked at the iText HtmlParser some this weekend and tried messing around with UIDocument in an effort to get the parsed *.seam html as a InputStream.
Just curious what Norman's thoughts were on this and if it has been attempted. It seems that in most of Bruno Lowagies comments he doesn't have much faith in the HtmlParser that is included with iText (which is understandable) - but there has to be a viable solution, starting with...
1. What is a good way to get the generated HTML after renderResponse (open a URL connection, get it from the ViewHandler somehow)?
2. Should commons Httpclient or something else be used for the parsing?
Bruno said in one of his posts that IceFaces is using iText for their (very expensive) html2pdf conversion... so I wonder what they are using to do the parsing.
I am willing to work on this... just need a little guidance.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064358#4064358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064358
19Â years