Bug 642674 - RFE: support RHQ Remote Client API from JBoss AS container
RFE: support RHQ Remote Client API from JBoss AS container
Product: RHQ Project
Classification: Other
Component: CLI (Show other bugs)
All All
low Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2010-10-13 10:41 EDT by Marc Shirley
Modified: 2014-06-27 17:09 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-06-27 17:09:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marc Shirley 2010-10-13 10:41:09 EDT
Attempting to use the remote API from an MDB in a 4.3_CPO8 EAP instance resulted in below error:

Caused by: java.lang.IllegalArgumentException: interface org.rhq.enterprise.server.auth.SubjectManagerRemote is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at org.rhq.enterprise.client.RemoteClientProxy.getProcessor(RemoteClientProxy.java:69)

In EAP 5, a different set of issues occur due to differences in the remoting libraries.
Comment 1 Larry O'Leary 2010-10-13 12:25:39 EDT
The first obstacle to overcome was the fact that the Remote Client needed access to utility classes stored in rhq-enterprise-server.jar. By bundling this in an EAR or EJB, the AS instance would attempt to deploy the EJBs contained in the enterprise-server.jar in the AS container. 

We should probably separate the necessary utility classes into a separate JAR so that the Remote Client API does not have a dependency on the rhq-enterprise-server JAR.

The next obstacle would be possible class conflicts introduced when a Remote Client was being deployed into an AS instance with a different client API as that of the RHQ Server's AS instance.
Comment 2 Charles Crouch 2010-10-18 11:43:24 EDT
From Larry...

I was able to perform the connect, login, logout, and disconnect operations within a MDB deployed to an EAP 4.3 CP08 instance. To do so, I had to do the following:

In the MDB's EJB JAR I included a lib directory that contains the following JARs from the JON Remote Client/CLI installation:


I ended up putting the following JAR in the lib directory of my EAP server profile:


In my test case I used default so this ended up being ${JBOSS_HOME}/server/default/lib

As you can see, I used JON 2.4 for my testing.

But even this process is unstable. When I moved my test MDB and libs to EAP5 I ran into a new set of problems. Mostly this is because the JON Server itself is an instance of JBoss AS. Because the versions differ, remote client calls become an issue. This is due to the versions of the remote client libraries in EAP are newer then the versions in the JON Server.
Comment 3 Jay Shaughnessy 2014-06-27 17:09:09 EDT
closing due to inactivity, we'd need to re-test with newer versions.

Note You need to log in before you can comment on or make changes to this bug.