[jboss-dev-forums] [Design of POJO Server] - Re: Moving forward with the profile service mgmt api
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Dec 19 15:05:09 EST 2006
"charles.crouch at jboss.com" wrote :
| Questions about next steps:
|
| 1) Does the additional work on the repository outlined above prevent progress on writing tests for the use cases we're going to need wrt basic DataSource management? I presume that the work remaining would actually prevent the tests from passing, but thats the next step :-). I guess we could stub out aspects of the repository to get the test to pass, but at the moment I'm more interested in the tests being written than having them pass.
|
| 2) Should the org.jboss.deployers.spi.management.ManagementView be updated to use the new ManagedObject api?
|
It can be. The piece that is missing is how does the profile service take a ManagedObject populated with a set of changes, and then merge that into the base DeploymentContext metadata attachments to create the predetermined attachments that override the raw deployment values. The missing mapping is the attachment name, and the corresponding metdata object property(s). In general a ManagedObject properties are going to map to several different metadata objects/properties.
The ManagementView also needs to be updated to support applying a ManagedObject change. I don't see that the ManagedObject returned from the ManagementView is hooked up to the attachments it overrides, therefore, this needs to be a write step.
"charles.crouch at jboss.com" wrote :
| 3) The tests for the DataSource use cases should go in here?
| http://anonsvn.jboss.org/repos/jbossas/trunk/system/src/tests/org/jboss/test/profileservice/test/
|
| Presumably the idea is that we can create our own mock impls or use the one Adrian has provided:
| http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/managed/src/main/org/jboss/managed/mock/MockDataSourceManagedObject.java
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995110#3995110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995110
More information about the jboss-dev-forums
mailing list