[jboss-dev-forums] [Design of POJO Server] - Re: ServiceMetaData has the most recent dependencies/attribu

scott.stark@jboss.org do-not-reply at jboss.com
Fri Feb 22 10:01:23 EST 2008


The problem is the use of metaData.getClass().getName() as this returns the implementation class. You need to use JBossAppMetaData.class.getName() since that is the signature. Its the metaData instance that has to be an implementation of this. The ctor parameters also look incorrect that it should be metaData rather than deployment:


  | ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData();
  |       serviceConstructor.setSignature(new String[] { String.class.getName(), 
  |             JBossAppMetaData.class.getName(),Boolean.class.getName()});
  |       serviceConstructor.setParameters(new Object[] {contextId, metaData, Boolean.TRUE});
  |       createJaccPolicyBean(serviceConstructor, unit);
  | 


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

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



More information about the jboss-dev-forums mailing list