Tuesday, June 22, 2010

making a jmx depend on an ear

this morning I discovered that my JBoss application server sometimes deploys my jmx beans before a depending ear. The fix is like always easy just define in your jboss-service.xml




<server>
<mbean
code="edu.ucdavis.genomics.metabolomics.binbase.bci.server.jmx.LifeTimeEvictionPolicyConfigJMX"
name="binbase.cache:service=LifeTimeEvictionPolicy">
<depends>jboss.j2ee:ear=clusterservice.ear</depends>

</mbean>


Thursday, June 17, 2010

Getting the hostname for the local machine

there are always the simple things which I'm getting stuck with, sometimes simple things like just getting the hostname for a local ip address in java.

solutions:



InetAddress addr = InetAddress.getLocalHost();
String hostName = addr.getCanonicalHostName();

Wednesday, June 16, 2010

sure shortly after the iPad with the unlimited dataplan got released, they change the plan to

2GB A month

what a joke...

Data per month Price per month
250MB/month $14.99
2GB/month $25.00

now I'm glad that I cancelled my pre order for one. What do 2GB give me these times? Nothing...