[Design of POJO Server] - Re: Moving forward with the profile service mgmt api
by scott.stark@jboss.org
"charles.crouch(a)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(a)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/t...
|
| 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/mana...
|
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
19 years, 3 months
[Design the new POJO MicroContainer] - Inconsistent handling of vfs* urls by VFS
by scott.stark@jboss.org
You cannot take a VirtualFile and use its URL to obtain a VirtualFile currently. See the
vfs project src/test/java/org/jboss/test/virtual/test/FileVFSUnitTestCase.testFindClassesInFilesOnlyWar test where such a usage fails with:
| java.io.IOException: No context factory for vfsfile:/home/svn/JBossMC/vfs/target/classes/vfs/test/filesonly.war/WEB-INF/classes
| at org.jboss.virtual.VFS.getVFS(VFS.java:129)
| at org.jboss.test.virtual.support.ClassPathIterator.<init>(ClassPathIterator.java:78)
| at org.jboss.test.virtual.test.FileVFSUnitTestCase.testFindClassesInFilesOnlyWar(FileVFSUnitTestCase.java:356)
| at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
| at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995104#3995104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995104
19 years, 3 months
[Design of EJB 3.0] - Security domain annotation override from jboss-app.xml
by anil.saldhana@jboss.com
There is a need for an security domain annotation override for jboss-app.xml
According to Bill
anonymous wrote : The EJB Container is based on AOP which allows annotation overrides.
| The DD parsing looks for security-domain with the jboss.xml file. If it exists, then it allocates a SecurityDomain annotation and adds it to the EJB Container's annotation override facility which in turn is picked up by AOP at interceptor bind time.
Now for the jboss-app.xml override,
anonymous wrote : What really needs to be done is a refactoring of the metadata parsing like it is in other deployers. That XML is parsed in a different, separate deployer. Then you can write an additional deployer that acquires metadata from the EAR level and augments the metamodel. That way the EJB deployment process is as isolated from EAR specific processing as possible.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995097#3995097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995097
19 years, 3 months