Yes, we supply Criteria fetch for most everything now. But for
performance we don't fetch any data with 'lazy fetch' semantics, unless
specifically asked for with a fetchXXX(true). Note also that the
optionally fetched object (the XXX in this example) will not provide any
of its lazy fetched data. If you need that then you would need to make
another Criteria call to gather the data you need.
On 8/1/2011 8:59 PM, Ondřej Žižka wrote:
Got it - criteria.fetchAgent(true);
Ondřej Žižka píše v Út 02. 08. 2011 v 00:42 +0200:
> Hi,
>
> I wanted to filter discovered JBoss AS' by hostname.
> Using resource's name seems unreliable, so I wanted to use
> resource.agent.server
> But that's never filled:
>
> rhqadmin@stacks1.mw.lab.eng.bos.redhat.com:7080$ as.agent
> Agent:
> address:
> affinityGroup:
> agentToken:
> backFilled: false
> createdTime: 1312237924605
> id: 10111
> lastAvailabilityReport:
> modifiedTime: 1312237924605
> name:
> port: 0
> remoteEndpoint:
> server:
> status: 0
> statusMessages: []
>
> Is there some technical reason for that, or can it be fixed?
>
> Thanks,
> Ondra
> _______________________________________________
> rhq-devel mailing list
> rhq-devel(a)lists.fedorahosted.org <mailto:rhq-devel@lists.fedorahosted.org>
>
https://fedorahosted.org/mailman/listinfo/rhq-devel
_______________________________________________
rhq-devel mailing list
rhq-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-devel