This content has been marked as final.
Show 2 replies
-
1. Re: Automatically redploy SAR on deployment of EJB jar?
bloid Jun 9, 2003 10:19 AM (in response to bloid)Hehe...as a stop gap, I now do the following if I catch a ClassCastException when using narrow:
RMIAdaptor jboss = (RMIAdaptor)context.lookup( "jmx/rmi/RMIAdaptor" ) ;
ObjectName name = new ObjectName( "jboss.system:service=MainDeployer" ) ;
jboss.invoke( name, "redeploy", new Object[] { System.getProperty( "sar.descriptor" ) }, new String[] { "java.lang.String" } ) ;
Ahhh...the power of the hack...
Makes my Cast exception go away though... Although seeing if this is a bug in JBoss or Java*, and seeing it fixed would obviously be better ;-)
Cheers
Tim.
(* Hehehe....or more likely, my code...) -
2. Re: Automatically redploy SAR on deployment of EJB jar?
jonlee Jun 9, 2003 11:04 AM (in response to bloid)See this thread. The <depends ...> goes in the your jboss-service.xml of your xml.
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=