[jboss-dev-forums] [IronJacamar Development] - Re: IronJacamar RHQ plugin development

Jesper Pedersen do-not-reply at jboss.com
Sun Mar 6 16:14:53 EST 2011


Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: IronJacamar RHQ plugin development"

To view the discussion, visit: http://community.jboss.org/message/591498#591498

--------------------------------------------------------------
Gao, regarding JBJCA-507 - there are a couple of things with the JIRA we need to clear up.

First the WeakReference issue - those are WeakReferences because the management layer can't keep a deployment active. That is the job of the services around that area.

So my guess is that the resource adapter you are using is not fully implemented with the constructs you need for your test case. F.ex. make sure that the ManagedConnectionFactory is used ResourceAdaperAssociation, and the ManagedConnectionFactory is included as a variable in your ConnectionFactory's. The same goes for AdminObject's. If that doesn't help then we need to investigate further why those references are null. You can use the code generator or see the HelloWorld example in order to get started.

It is correct that in some cases the objects will only be used during startup, and hence not valid once management kicks in. In those scenarios we need to back the view (f.ex. ResourceAdapter) with a read-only model based on the metadata (ra.xml / ironjacamar.xml).

So in the end there will a valid view of the deployments without having to construct it - the management layer needs to look at the "live" objects in the container.

Hope this helps !
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/591498#591498]

Start a new discussion in IronJacamar Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110306/df3be7c1/attachment.html 


More information about the jboss-dev-forums mailing list