If 5 users are simultaneously using the database connections then you need to create more connections.
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Lokanath <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 05/20/2004 10:11 AM
|
|
hi all
i have a doubt over connection pooling.When 5 users are using a project in
struts and if i have defined the maximumnumber of connection to 4 .Then how
many connection will be estblished.What i mean to say is how many visible
connection will be there in mysqlprocess
lokanath
-----Original Message-----
From: Struts Users Mailing List [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:19 AM
To: [EMAIL PROTECTED]
Subject: Multiple nested Hashmaps. Limit?
I am running into a problem with multiple Mapped nested properties
When I use the following lines to access the Value form my dynaValueObj
Object I get this error
<%
String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";
%>
<html:text name="DynaTableDataForm" property="<%=rowNmdd%>" size="20"/>
[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''
After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().
Is there a limitation on how many map-backed properties you can
reference?
Thanks
Randy Shelley
[EMAIL PROTECTED]
---------- Dyna Table Form Bean
public class DynaTableDataForm extends ActionForm {
private DynaTableObj dynaTableObj = null;
public DynaTableObj getDynaTableObj () {
if (this.dynaTableObj==null) {
this.dynaTableObj = new DynaTableObj();
}
return this.dynaTableObj;
}
public void setDynaTableObj (DynaTableObj dynaTableObj) {
this.dynaTableObj = dynaTableObj;
}
}
------------------------ Dyna Table Object
public class DynaTableObj {
private LinkedHashMap dynaColumnObjs = null;
public DynaTableObj() {}
public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {
this.dynaColumnObjs = dynaColumnObjs;
}
public LinkedHashMap getDynaColumnObjs() {
return this.dynaColumnObjs;
}
public Object getDynaColumnObjs(String dynaColumnId) {
if (dynaColumnObjs==null) {
this.dynaColumnObjs = new LinkedHashMap();
this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());
}
else if (this.dynaColumnObjs.get(dynaColumnId)==null) {
this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());
}
return this.dynaColumnObjs.get(dynaColumnId);
}
public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {
if (dynaColumnObjs==null) {
this.dynaColumnObjs = new LinkedHashMap();
}
this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);
}
}
---------------------- Dyna Row Object
public class DynaRowObj {
private LinkedHashMap dynaValueObjs = null;
public DynaRowObj() {}
public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {
this.dynaValueObjs = dynaValueObjs;
}
public LinkedHashMap getDynaValueObjs() {
return this.dynaValueObjs;
}
public Object getDynaValueObjs(String dynaColumnId) {
if (dynaValueObjs==null) {
this.dynaValueObjs = new LinkedHashMap();
this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());
}
else if (this.dynaValueObjs.get(dynaColumnId)==null) {
this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());
}
return this.dynaValueObjs.get(dynaColumnId);
}
public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{
if (dynaValueObjs==null) {
this.dynaValueObjs = new LinkedHashMap();
}
this.dynaValueObjs.put(dynaColumnId,dynaValueObj);
}
}
----------------------------- Dyna Value Object
package rshelley.timesheet.util;
public class DynaValueObj {
private String dynaColumnValue = null;
public DynaValueObj() {
}
public void setDynaColumnValue(String dynaColumnValue) {
this.dynaColumnValue = dynaColumnValue;
}
public String getDynaColumnValue() {
return this.dynaColumnValue;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NT00009596
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]