[Deployers on JBoss (Deployers/JBoss)] - JSR88 updated with a StreamingTarget implementation
by scott.stark@jboss.org
As part of the profile service crud support for deployments, I added a new StreamingTarget implementation that uses the remoting streaming capability to allow uploads via any protocol remoting supports.
The default target implemention is still the JMXTarget. To select the StreamingTarget, a targetType=remote query param would be added to the
| /**
| * Obtain a DeploymentManager using a deployURI of the form
| * http://org.jboss.deployment/jsr88?targetType=targetType
| * Valid targetType values are:
| * jmx - Use the JMXTarget RMIAdaptor based deployment target
| * remote - Use the StreamingTarget remoting based deployment target
| * @return JSR88 DeploymentManager
| * @throws Exception
| */
| protected DeploymentManager getDeploymentManager(String targetType)
| throws Exception
| {
| // Get the deployment manager and the distribution targets
| String mgrURI = DeploymentManagerImpl.DEPLOYER_URI+"?targetType="+targetType;
| DeploymentManager manager = factory.getDeploymentManager(mgrURI, null, null);
| return manager;
| }
|
See the org.jboss.test.deployment.{JMXDeploymentTestCase,StreamingDeploymentTestCase}s in the jbossas/testsuite module for examples.
Right now this is just uploading content to the DeploymentManagerService uploadDir (tmp/jsr88) and is not really integrated with the ProfileService. Adding a proper deployment repository notion to the ProfileService is next.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991784#3991784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991784
18 years, 1 month
[Design of JBoss Web Services] - Re: Proposed new package structure
by thomas.diesler@jboss.com
I don't care about where the code lives. If we have virtually identiacal code in trunk and branch(es) thats fine with me. This is the methodology that we use for the jaxrpc testsuite.
Consolidation is my concern. If we do not consolidate the tools,metadata, raxrpc codebase to a degree where I can more or less brainlessly merge stuff, I don't see a chance (for myself) to get future releases off the ground in a timely manner.
The UMDM might be in flux it is still part of the contract. The curernt issue is that we have multiple code bases that work off diffent UMDMs which is unneccessary and MUST be fixed.
Lets, take this discussion off-line - this will be more productive.
The aim is to decide upon a clear migration path towards a maintainable code base, which we currently do not have.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991760#3991760
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991760
18 years, 1 month
[Design the new POJO MicroContainer] - JoinpointTest is broken
by scott.stark@jboss.org
In checking the vfs changes by running the ContainerAllTestSuite, I see all of the org.jboss.test.joinpoint.test.JoinpointTest fail with this type of compile error:
| javassist.CannotCompileException: by java.lang.IllegalAccessError: tried to access class sun/reflect/MagicAccessorImpl from class org/jboss/reflect/plugins/javassist/JavassistMethod1
| at javassist.ClassPool.toClass(ClassPool.java:904)
| at javassist.ClassPool.toClass(ClassPool.java:847)
| at javassist.ClassPool.toClass(ClassPool.java:805)
| at javassist.CtClass.toClass(CtClass.java:1037)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:237)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:1)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createMethod(JavassistReflectionFactory.java:233)
| at org.jboss.reflect.plugins.javassist.JavassistMethodInfo.invoke(JavassistMethodInfo.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.test.joinpoint.test.JoinpointTest.testObjectMethodInvoke(JoinpointTest.java:113)
| 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)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| Caused by: java.lang.IllegalAccessError: tried to access class sun/reflect/MagicAccessorImpl from class org/jboss/reflect/plugins/javassist/JavassistMethod1
| at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
| at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BII)Ljava.lang.Class;(Unknown Source)
| 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 javassist.ClassPool.toClass2(ClassPool.java:916)
| at javassist.ClassPool.toClass(ClassPool.java:898)
| at javassist.ClassPool.toClass(ClassPool.java:847)
| at javassist.ClassPool.toClass(ClassPool.java:805)
| at javassist.CtClass.toClass(CtClass.java:1037)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:237)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:1)
| at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createMethod(JavassistReflectionFactory.java:233)
| at org.jboss.reflect.plugins.javassist.JavassistMethodInfo.invoke(JavassistMethodInfo.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.test.joinpoint.test.JoinpointTest.testObjectMethodInvoke(JoinpointTest.java:113)
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991725#3991725
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991725
18 years, 1 month