[JBoss Seam] - is it possible to access JSF UI components from seam testng
by _polly
hi,
I'm wondering if there is any way of getting a handle on the jsf component model from a seam testng test script - so I can see if components are there, if they are rendered etc.
i tried this in my Seam test class:
@Override
| protected void renderResponse() {
|
| log.info("examining view root for components");
|
| List<UIComponent> components = getFacesContext().getViewRoot().getChildren();
| for (UIComponent comp : components) {
| log.info("found component: "+comp.getId());
| }
| log.info("child count: "+getFacesContext().getViewRoot().getChildCount());
| }
but I just get this output:
11:25:50,122 INFO [TestClass] examining view root for components
| 11:25:50,122 INFO [TestClass] child count: 0
am wondering if this sort of thing is possible, or maybe I am getting a bit carried away and it is outside the scope of what integration tests were intended to be used for? :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084965#4084965
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084965
18 years, 10 months
[Performance Tuning] - No More Managed Connections Error
by ravimbhatt
Hi all,
I am using JBoss 4.0.3SP1 and mysql on linux box. I have getting "No More managed Connection" error if jboss is up for more than 3 days.
I have kept 200 max connections in mysql ds file and 200 max coonections in myql config file too. One of the batch jobs creats around 90 odd connections at night. In 3 days, at JMX console i see "Available coonection count" as 0 and "Connections in use" as 200.
When i look at mysql, it shows me that 200 coonections were in use at one time but now (at that time) only 2 or 3 coonections are in use.
I have set idle timeout to "1" in jboss. Still, either the coonections are not geting released or connects are sitting idle and not being used by jboss when new request comes.
Please guid me on this. I have checked my code for possible connection leaks and have put connection.close() at every possible location.
Any work arounds for this? Am i missing anything?
Thanks in advance,
Ravi.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084956#4084956
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084956
18 years, 10 months