Community

nested Interceptor-calls

reply from Christian Tre in EJB 3.0 - View the full discussion

works fine now:

 

    @Resource
    private javax.ejb.SessionContext sessionContext;
 
    // here i can remove interceptor now :)
    public void create(String name, String value, Company company, boolean visible, boolean readonly) {
        Parameter p = new Parameter(name, value, company, visible, readonly);
        
        // call Proxy here to raise interception
        ParameterServiceLocal ps = this.sessionContext.getBusinessObject(ParameterServiceLocal.class);
        ps.create(p);
    }

 

thank you!

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community