[
https://jira.jboss.org/jira/browse/JBAS-6242?page=com.atlassian.jira.plug...
]
Charles Crouch commented on JBAS-6242:
--------------------------------------
We need to know at compile time the full signature of the operation (return value and
arguments) so that we can render the UI correctly. The UI is rendered from the operation
definition not the runtime results.
At runtime when we invoke the operation we can try and be clever about converting the type
we actually get back to the type we expect. In fact this is what it looks like we are
doing anyway since the listFormattedSubPoolStatistics operation is correctly returning a
result which we display as a string in the console.
Given the operation appears to be working now, I think we can drop the priority on this
and revisit at a later date.
From todays discussion one solution to this general problem would be
to define managed operations in terms of specific arguments and results. So you would have
one managed operation that specified the String based statistics formatter and another
that passed in the JBossSubPoolStatistics, and each would have a different return type.
invoke() for "listFormattedSubPoolStatistics"
ManagedOperation on datasources and connection factory ManagedComponents returns a
MetaValue with the wrong MetaType
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBAS-6242
URL:
https://jira.jboss.org/jira/browse/JBAS-6242
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: ProfileService
Environment: JBAS5 Hudson build dated 200811210604
Reporter: Ian Springer
Assignee: Scott M Stark
This is another case of the data not matching the metadata.
operation.getReturnType() returns a MutableCompositeMetaType w/ typeName
java.lang.Object. However, invoke() is returning a SimpleMetaType.STRING (with value e.g.
"Sub Pool Statistics: \nSub Pool Count:
0\n------------------------------------------------------\n").
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira