[Design of EJB 3.0] - Re: metadata
by scott.stark@jboss.org
"wolfc" wrote : The only reason is the profile service. It can't handle annotations, so it needs meta data.
|
This does not make sense. The profile service handles whatever a deployment can have as an attachment. @ReturnNonNull does not sound any different from @TransactionAttribute as a piece of method metadata. There is nothing that precludes a deployment metadata from using annotations if that is the proper metadata view.
The point of the metadata project is that one has to be able to define a metadata complete view such that a management tool can have a model to modify without having to write back to deployment descriptors. You'll have to explain why @ReturnNonNull cannot fit into a components metadata model of its methods.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113847#4113847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113847
18 years, 3 months
[Design of POJO Server] - Regression in testJmsDestinationComponents
by scott.stark@jboss.org
The ProfileServiceUnitTestCase.testJmsDestinationComponents is broken because there is a disconnect between the profile deployment names and MainDeployer.getManagedDeployment(String name). The messaging destinations are being seen as children of the deploy/messaging/ deployment, and this is not a managable deployment. Some deployment processing logic has changed since this test was last working.
if I move the messaging deployments to the deploy directory, the managed objects are created, but they are again referencing non-serializable values. This time its an AnnotationProxy that cannot be marshalled:
| java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
| java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.jboss.annotation.factory.AnnotationProxy
| at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:669)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at AOPProxy$1.getComponentsForType(AOPProxy$1.java)
| at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.testJmsDestinationComponents(ProfileServiceUnitTestCase.java:305)
|
This looks like it should in fact be Serializable as its just a generic annotation implementation. Not sure what is pulling in the AnnotationProxy at this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113844#4113844
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113844
18 years, 3 months
[Design of EJB 3.0] - Re: metadata
by bdecoste
I've started on replacing Ejb3AnnotationHandler and Ejb3DescriptorHandler with Ejb3MetadataHandler. If we stick with creating annotations from the new metadata, we can leave the container.resolveAnnotation() calls everywhere as they are.
I take it from the last comments that the new metadata lacks the ability to recognize and model unexpected annotations (e.g. @ReturnNonNull).
I am starting to wonder what the value of the metadata project is exactly if we go this route - if they are parsing all the annotations and xml, creating an object model, and we are taking that object model and turning it back into annotations, how is this better than what we have now? Sounds considerably slower in fact.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113826#4113826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113826
18 years, 3 months
[Design of JBoss Web Services] - Re: Contents of the SOAP request
by jpechane@redhat.com
Hi,
thanks for your answers. I have done fast and dirty solution
| // Generate the SOAP xml
| StringWriter messageString = new StringWriter();
| List<Handler> handlerChain = bindingProvider.getBinding().getHandlerChain();
| handlerChain.add(new org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient());
| handlerChain.add(new TestHandler(messageString));
| bindingProvider.getBinding().setHandlerChain(handlerChain);
| UserType userType = new UserType();
| userType.setMsg(TEST_MESSAGE);
| UserType retObj = hello.echoUserType(userType);
|
| // Actually call the WS
| bindingProvider.getBinding().setHandlerChain(new ArrayList<Handler>());
| ((StubExt) hello).setSecurityConfig("jboss-wsse-client.xml");
| ((StubExt) hello).setConfigName("Standard WSSecurity Client");
| retObj = hello.echoUserType(userType);
|
This approach worked albeit it is really crude
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113817#4113817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113817
18 years, 3 months