> currently I am using a static block in one of my beans to set the
> properties that one of the libraries I am using expects, but this
> seems a little bit hackish, I would prefer to set them in the
> application.xml, jboss-app.xml, ejb-jar.xml or jboss.xml files Ideally
> via an XDoclet tag.
>
> Is there any way to accomplish this?

One solution would be to add a .sar file into your .ear file.


In jboss.app.xml:

 <jboss-app>
   <module>
     <service>xyz.sar</service>
   </module>
 </jboss-app>


In xyz.sar/META-INF/jboss-service.xml:

  <mbean
    code="org.jboss.varia.property.SystemPropertiesService"
    name="my.org:type=Service,name=SystemProperties"
   >
     <attribute name="Properties">
       org.my.a=alpha
       org.my.b=beta
       ...
     </attribute>
  </mbean>


--
Eric Jain




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to