[jboss-user] [Management, JMX/JBoss] - JBoss 4.0.x RMIAdaptor and jdk1.3 issue
do-not-reply at jboss.com
Sun Nov 26 17:48:28 EST 2006
I have one serious issue. I need to make a portlet application which will
connect to JBoss 4.0.x MBeans and perform/invoke some MBean's operations etc.
Problem is that the portlet application runs on IBM Websphere (with jdk1.3!) and MBeans runs on JBoss AS 4.0.x (with jdk1.5). I tried following code statement:
| Properties properties = new Properties();
| properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| properties.setProperty(Context.PROVIDER_URL, someIP:1099");
| properties.setProperty(Context.URL_PKG_PREFIXES, org.jboss.naming");
| Context context = new InitialContext(properties);
| MBeanServerConnection server = null;
| Object obj = context.lookup("jmx/invoker/RMIAdaptor");
| server = (MBeanServerConnection)obj;
| ObjectName on = new ObjectName("jboss.system:type=Server");
| Object ver = F_server.getAttribute(on, "Version");
This code statement runs well on jdk1.5 or 1.4. But NOT on jdk1.3. Because of jbossall-client.jar (which contains RMIAdaptor) for JBoss AS 4.0.x could be compiled only for jdk1.4/1.5. And when I try to use jbossall-clients.jar from older JBoss versions (e.g. 3.2.8) which is compiled for jdk1.3 I will get following exception:
| javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; Local class not compatible: stream classdesc serialVersionUID=3289509836244263718 local class serialVersionUID=6926421946503004889
It's because of RMIAdaptor was changed from JBoss 3.x to JBoss 4.x
Please help me, how could I solve this issue?
1) is it possible to compile jbossall-client.jar of JBoss 4.0.x for jdk1.3?
2) or is there other solution how to connect JBoss 4.0.x MBeans from client which runs on jdk1.3?
3) or is there some workaround which could I use?
Thanks for any suggestions!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988693#3988693
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988693
More information about the jboss-user