[jboss-user] [Security & JAAS/JBoss] - Assigning Roles to Scheduler MBean

metatime do-not-reply at jboss.com
Tue Jul 3 17:25:35 EDT 2007


I've a scheduler MBean service that does a lookup for a session EJB. The create on the localhome fails with
        Insufficient method permissions, principal=null, ejbName=ReportingPeriodManager, method=create, interface=LOCALHOME, requiredRoles=[servlet, ejbsession], principalRoles=[]
  | 
Here is the descriptor for the MBean service:
  <mbean code="org.jboss.varia.scheduler.Scheduler"
  |     name="com.metatime.jboss.schedulable.ReportingPeriod:service=Scheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute name="SchedulableClass">com.metatime.jboss.schedule.ReportingPeriod</attribute>
  |     <attribute name="SchedulableArguments">ReportingPeriodSchedule,123456789</attribute>
  |     <attribute name="SchedulableArgumentTypes">java.lang.String,long</attribute>
  |     <attribute name="InitialStartDate">NOW</attribute>
  |     <attribute name="SchedulePeriod">60000</attribute>
  |     <attribute name="InitialRepetitions">-1</attribute>
  |     <depends>jboss.j2ee:service=EJB,jndiName=ReportingPeriodManager</depends>
  |   </mbean>
  | 
I haven't been able to figure out how to associate a Principal or Role to the MBean service. Is there something like a "run-as" on mbeans?

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

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



More information about the jboss-user mailing list