This is not a tag line!
Posts tagged jboss
GateIn 3.0.0 Beta 2 released!
Oct 21st
As some of you may know, JBoss and eXo have decided to merge their portal efforts in an attempt to create the best open-source portal framework out there. This new, best-of-breed portal project is called GateIn.
Integrating both code bases has taken (and still does) a lot of effort from both teams. This has translated in some long hours and little sleep but we’ve just released a new beta version for you to try and enjoy! Apart from lots of improvements and fixes, the big news is, of course, that we now provide the complete source code! Read more about it on the official GateIn blog.
Of course, we’re not done yet so keep watching the blog. You can also follow GateIn on Twitter.
JBoss Portal 2.7.2 is released!
Mar 13th
It’s been a couple of really busy weeks at work as we have been ironing out the last couple of issues that we wanted to solve before unleashing JBoss Portal 2.7.2 unto the world! ![]()
It’s finally done and 2.6.8 should follow suite soon. I can now re-gather my thoughts and energy towards 2.8 and beyond!
Read more about the release from our fearless leader on the official JBoss Portal blog.
Accessing a JMX object programmatically from JBoss
Apr 15th
OK so here’s some geeky information… I’ve had several times the need to access a JMX service programmatically and each time, I had to hunt down the information so here it is so that I know where to find it next time.
It took me three years almost to the days to need that piece of code again and realize that it wouldn’t even compile… Should be fixed now!
import org.jboss.mx.util.MBeanProxy;
import org.jboss.mx.util.MBeanProxyCreationException;
import org.jboss.mx.util.MBeanServerLocator;
import javax.management.MBeanServer;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
ObjectName objectName;
String name;
try {
objectName = new ObjectName(name);
} catch (MalformedObjectNameException e) {
throw new IllegalArgumentException("'" + name + "' is not a valid ObjectName");
}
MBeanServer server = MBeanServerLocator.locateJBoss();
try {
return MBeanProxy.get(clazz, objectName, server);
} catch (MBeanProxyCreationException e) {
String message = "Couldn't retrieve '" + objectName.getCanonicalName() + "' MBean with class " + clazz.getName();
throw new RuntimeException(message, e);
}
