请问如何设置weblogic中的bean pool size,谢谢!! 两边都可以实现了,第二种方法是在weblogic-ejb-jar文件中写。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你用JBuilder开发的时候,就可以在属性里边直接设置,这是我在JB里边设置后的XML文件内容weblogic-ejb-jar.xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'><weblogic-ejb-jar> <weblogic-enterprise-bean> <ejb-name>VisitBuy</ejb-name> <stateless-session-descriptor> <pool> <max-beans-in-free-pool>1000</max-beans-in-free-pool> <initial-beans-in-free-pool>1000</initial-beans-in-free-pool> </pool> </stateless-session-descriptor> <reference-descriptor> <resource-description> <res-ref-name>jdbc/csmdb</res-ref-name> <jndi-name>csmdb</jndi-name> </resource-description> </reference-descriptor> <enable-call-by-reference>True</enable-call-by-reference> <jndi-name>VisitBuy</jndi-name> <local-jndi-name>VisitBuyLocal</local-jndi-name> </weblogic-enterprise-bean></weblogic-ejb-jar>Entity Bean就写成如下的样子: <entity-cache> <max-beans-in-cache>10000</max-beans-in-cache> <idle-timeout-seconds>1800</idle-timeout-seconds> </entity-cache> 最近有个想法。 多线程同时访问Queue<T>会发生互抢的情况么? Eclipse的debug怎么设置啊。 初学的疑问,关于ServletContext中的getAttribute和setAttribute 用Spring+Struts 写了个分页,想把具体类里的 一些代码封装到 父类,不知道父类 该怎么写,大家提供有什么思路吗? 怎样查看JSP引擎生成的Java代码? 菜鸟求助 部署webservice失败,在线等 求JDBC连接各种数据库的代码 hibernate查询如何把两两个字段相加作为一列 关于package 关于EJB维护ORACLE字段自动增量的效率问题-讨论
weblogic-ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>VisitBuy</ejb-name>
<stateless-session-descriptor>
<pool>
<max-beans-in-free-pool>1000</max-beans-in-free-pool>
<initial-beans-in-free-pool>1000</initial-beans-in-free-pool>
</pool>
</stateless-session-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/csmdb</res-ref-name>
<jndi-name>csmdb</jndi-name>
</resource-description>
</reference-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>VisitBuy</jndi-name>
<local-jndi-name>VisitBuyLocal</local-jndi-name>
</weblogic-enterprise-bean></weblogic-ejb-jar>
Entity Bean就写成如下的样子:
<entity-cache>
<max-beans-in-cache>10000</max-beans-in-cache>
<idle-timeout-seconds>1800</idle-timeout-seconds>
</entity-cache>