Hello,

I updated from JBoss 4.0.3SP1 to JBoss 4.0.4RC1 (installer, including EJB3)
Now when I call a stateful SessionBean from an other Stateful SessionBean 
(EJB2) the original principal is no longer propagated but anonymus.
I didn't change anything in the code or configuration.

Logging output JBoss 4.0.3SP1

  | 2006-02-28 14:12:12,129 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Created new session ID: ek88q6ox-2p
  | 2006-02-28 14:12:12,139 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Using create method for session: public void 
com.tenovis.oam.i33.as.sb.SubscriberSBBean.ejbCreate() throws 
java.rmi.RemoteException,javax.ejb.CreateException
  | 2006-02-28 14:12:12,139 INFO  [com.tenovis.oam.i33.as.sb.SubscriberSBBean] 
**** SubscriberSB created by AdminUser
  | 2006-02-28 14:12:12,149 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting 
invoker proxy binding for stateful session: stateful-rmi-invoker
  | 2006-02-28 14:12:14,622 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Created new session ID: ek88q8m6-2q
  | 2006-02-28 14:12:14,622 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Using create method for session: public void 
com.tenovis.oam.i33.as.versionsb.SubscriberSBBean.ejbCreate(java.lang.String) 
throws java.rmi.RemoteException,javax.ejb.CreateException
  | 2006-02-28 14:12:14,622 INFO  
[com.tenovis.oam.i55l030.as.sb.SubscriberSBBean] **** SubscriberSB created by 
AdminUser
  | 2006-02-28 14:12:14,622 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting 
invoker proxy binding for stateful session: stateful-rmi-invoker
  | 



Logging output JBoss 4.0.4RC1

  | 2006-02-28 14:38:47,942 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Created new session ID: ek89oe12-2i
  | 2006-02-28 14:38:47,942 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Using create method for session: public void 
com.tenovis.oam.i33.as.sb.SubscriberSBBean.ejbCreate() throws 
java.rmi.RemoteException,javax.ejb.CreateException
  | 2006-02-28 14:38:47,952 INFO  [com.tenovis.oam.i33.as.sb.SubscriberSBBean] 
**** SubscriberSB created by AdminUser
  | 2006-02-28 14:38:47,962 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting 
invoker proxy binding for stateful session: stateful-rmi-invoker
  | 2006-02-28 14:38:48,213 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Created new session ID: ek89oe8l-2j
  | 2006-02-28 14:38:48,213 DEBUG [org.jboss.ejb.StatefulSessionContainer] 
Using create method for session: public void 
com.tenovis.oam.i33.as.versionsb.SubscriberSBBean.ejbCreate(java.lang.String) 
throws java.rmi.RemoteException,javax.ejb.CreateException
  | 2006-02-28 14:38:48,213 INFO  
[com.tenovis.oam.i55l030.as.sb.SubscriberSBBean] **** SubscriberSB created by 
anonymous
  | 2006-02-28 14:38:48,293 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting 
invoker proxy binding for stateful session: stateful-rmi-invoker
  | 


The configuration of the ejb-jar.xml is

  | <session>
  |   <ejb-name>SubscriberSB</ejb-name>
  |   <home>com.tenovis.oam.i33.as.sb.SubscriberSBHome</home>
  |   <remote>com.tenovis.oam.i33.as.sb.SubscriberSB</remote>
  |   <ejb-class>com.tenovis.oam.i33.as.sb.SubscriberSBBean</ejb-class>
  |   <session-type>Stateful</session-type>
  |   <transaction-type>Container</transaction-type>
  |   <security-identity>
  |     <run-as>
  |       <role-name>Internal</role-name>
  |     </run-as>
  |   </security-identity>
  |   <security-role-ref>
  |      <role-name>Admin</role-name>
  |      <role-link>Admin</role-link>
  |   </security-role-ref>
  | </session>
  | 

The sucurity configuration allows all methods for Admin.

Is this a bug ?
Is there a workaround ?

Annegret


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926800#3926800

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926800


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to