<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>com.ingit.ejb.user.UserHome</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
DEF CONNNECTION POOL:
weblogic.jdbc.connectionPool.ejbPool=\
url=jdbc:weblogic:mssqlserver4:127.0.0.1:8888,\
driver=weblogic.jdbc.mssqlserver4.Driver,\
loginDelaySecs=1,\
initialCapacity=4,\
maxCapacity=10,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshTestMinutes=10,\
testTable=seller,\
props=user=ingit;password=ingit;server=127.0.0.1;\
weblogic.allow.reserve.weblogic.jdbc.connectionPool.ejbPool=guest,GUEST
weblogic.allow.reset.weblogic.jdbc.connectionPool.ejbPool=\
guest
weblogic.allow.shrink.weblogic.jdbc.connectionPool.ejbPool=\
guest
>weblogic.allow.reserve.weblogic.jdbc.connectionPool.ejbPool=guest,GUEST
should become
weblogic.allow.reserve.ejbPool=guest,GUEST
when ejbPool is your pool name
Regards,
Simon
"nedi" <ne...@sohu.com> wrote:
>I def a ConnectionPool like follows:
>but My ejb (Container managed entity bean can't access it,error is:
>星期日 一月 07 15:41:03 CST 2001:<I> <Security> Access failed (Thread
>=
>Thread[E
>xecuteThread-14,5,Execute Thread Group])
>java.lang.SecurityException: User "guest" does not have Permission "reserve"
>bas
>ed on ACL "weblogic.jdbc.connectionPool.ejbPool".
> at weblogic.security.acl.Security.logAndThrow(Security.java:372)
> at weblogic.security.acl.Security.checkPermission(Security.java:304)
>....