[JBoss Seam] - Render PDF to binary
by ollix
hi there,
is there an easy way to user the/a renderer to produce a binary PDF rather than the implicit usage of the document store and the renderer returnin a redirect html page?
That would be using the "view pipeline" as a means to produce binary data and further process that programmatically (such as storing into a database or file).
btw. this question is partly based on the fact, that I still don't grab the runtime specifics of the whole pdf thing in seam. I configured everything ok, and sometimes I can retrieve a PDF, sometimes not. I still get those IllegalStateExceptions every now and than and I just don't understand why and based upon which exact runtime conditions.
I would be very much interested, if I am the only one with those PDF problems. Maybe I'm just too stupid. It drives me mad....
thanks a lot for you feedback
and happy eastern!
:ollix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035642#4035642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035642
19 years
[JBoss Seam] - Testsuites with SeamTest: Initializing the Microcontainer on
by mugwump
I have a lot of tests that all roughly follow the same pattern:
- SeamTest initializes the embedded container
- set up a faces-request
- get an instance of a properly prepared seam component
- run some tests&assertions
e.g:
| @Test
| public void testCombinedQuery() throws Exception{
| new FacesRequest() {
| QueryManager queryManager;
| @Override
| protected void updateModelValues()
| {
| queryManager = (QueryManager)getInstance("queryManager");
|
| }
|
| @Override
| protected void renderResponse()
| {
| Query query = new Query();
| query.setDays("'DAY1', 'DAY2'");
| query.setTopics("'1','3'");
| int resultSize = queryManager.getNrOfQuestionsInQuery(query);
| assertEquals("Combined-Query did not return the correct Number of Questions", resultSize, COMBINEDQUERY_QUESTIONS);
| }
| }.run();
| }
|
Now the next test runs through the whole cycle again, including initialization, which takes ages, as it also contains the hibernate-setup with a whole bunch of tables - is there a way to run tests inside a suite on the same container and somehow share the same instance between tests?!
I would really like to run a whole lot of tests also during development, but this startup-issue is really annoying...
cheers
stf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035641#4035641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035641
19 years
[Clustering/JBoss] - DB/Cluster Practice Question
by rjstanford
We're planning to use JBoss to do clustering for a HA webapp in the near future. The question that I'm toying with is one of tying the JBoss cluster to a database cluster. Our original plan was just to use Oracle RAC, but there's certainly an investment there and it goes up fast if you need more than four sockets. So...
I've been looking at MySQL Cluster (our active dataset is, for the most part, small, and we can use the disk tables for our historical data), and I can't help but wonder. Does this perform well if you have a decent, inexpensive redundant farm for data, and then put a SQL node on each JBoss node, having each JBoss node connect locally to the database? That way we don't need any kind of failover for the DB, per se, and we've reduced two network meshes into one. Admittedly the JBoss/SQL nodes will be busier than they would otherwise be, but that communication pathway is now far faster too.
Is this possible? Inadvisable? Creative? Stupid? I'm sure that I'm not the first one to think of this, but Google and the forum searches in both communities haven't given me a whole lot to go on.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035636#4035636
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035636
19 years