This content has been marked as final.
Show 3 replies
-
1. Re: Can descriptor read system variable?
kalimero Aug 22, 2007 11:30 AM (in response to john_woo)You can do something like this:
in you service xml file use the variable "myvar"usage: ${VARNAME} eg: <mbean code=".." name="${myvar}"> .... </mbean>
start jvm:-Dmyvar=myvalue
hope this idea will help you. -
2. Re: Can descriptor read system variable?
john_woo Aug 22, 2007 2:45 PM (in response to john_woo)"Kalimero" wrote:
You can do something like this:
in you service xml file use the variable "myvar"usage: ${VARNAME} eg: <mbean code=".." name="${myvar}"> .... </mbean>
start jvm:-Dmyvar=myvalue
hope this idea will help you.
Thank you. that's it. the syntax in build.xml (windows os) is
BTW, can you tell the syntax in jboss-service.xml, like I want my service deployed depends on ejb.jar?
John -
3. Re: Can descriptor read system variable?
kalimero Aug 23, 2007 3:28 AM (in response to john_woo)Use dependencies on MBeans or EJBs, etc like this:
<mbean code="MyMBean" name="myMBean:service=MyMBean"> .. <depends>jboss.j2ee:service=EJB,jndiName=MyEJB</depends> .. <depends>myMBean:service=MyBean2</depends> </mbean>