[JBoss Seam] - How to update the DataModel object?
by tangdazhu
I am using seam 1.2.0 and integrate it with Ajax4Jsf in the project.
My question is when i modified calculation from 1 to 2 in the page , i need to modify the paramters list (Annotated by DataModel) by ajax request.
my codes are as follows:
@DataModel
private List runParameters;
@Begin(join = true)
@Factory("runParameters")
public void findRunParameters() throws ClassNotFoundException {
....some codes to get the runParameters list through hibernate3
}
the action will be called by ajax is:
public void changeDropdownForCalculation(ActionEvent event) throws Exception {
......
findRunParameters();
}
now you can see that i am using findRunParameters() to modify the list directly , but but i got the exception as follows:
Caused by: org.hibernate.HibernateException: identifier of an instance of com.ogentech.cpi.dataobjects.calculation.Calculation was altered from 1 to 2
Can someone help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047811#4047811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047811
18 years, 11 months
[JCA/JBoss] - Connection Pooling Issue ?
by jsbhangra
Hi All ..
I am using Jboss Level connection pooling in my application ...
my oracle-ds.xml reads as :
<min-pool-size>10</min-pool-size>
| <max-pool-size>500</max-pool-size>
| <max-idle-timeout>0</max-idle-timeout>
| <blocking-timeout-millis>30000</blocking-timeout-millis>
| <idle-timeout-minutes>15</idle-timeout-minutes>
I am connecting with oracle 10g express database .
Now when i send 10 request @ 0.1 seconds i.e. 100 request per second .... to my exception
after some requests following exception occurs :
| [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@1e8bf76
| java.lang.Throwable: STACKTRACE
| at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:417)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
Help me out ..
how to handle this ..
do i need some other pooling mechanism ?
Regards ,
Jasdeep
???? ?? ???? ???? , ??? ???? ???? ??? ??? | ???? '??? ????? ?? ??? ???? ?? ?? ?? |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047804#4047804
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047804
18 years, 11 months