[JCA Development] - moving validate capability to metadata
by Stefano Maestri
Stefano Maestri [http://community.jboss.org/people/maeste] created the discussion
"moving validate capability to metadata"
To view the discussion, visit: http://community.jboss.org/message/553037#553037
--------------------------------------------------------------
Hi guys,
during re-design of our metadata I've seen validate methods in current org.jboss.jca.common.metadata.Metadata. This class isn't at the moment a metadata itself, but it'd more or less a metadataFactory where this utility methods have been added.
I think we can move validate capability into metadatas itself, adding to our new JCAMetadata interface the method "public void validate() throws ValidateException".
Moreover we can change, during this refactoring, a bit the validation control flow, adding intead of the previous proposed above to JCAMetadata the method:
"public ValidationStatus validate();"
where ValidationStatus is a simple pojo with 2 member: boolean valid; List<String> validationErrors;
In practice I'm saying to move validation strategies as closer as possible to the object to validate and don't use exception to control the flow.
If you'll agree I'll open a Jira linked to JBJCA-385 and I'll take care of this one too.
bye
S.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/553037#553037]
Start a new discussion in JCA Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
URG: jboss JAXWS webservice
by Arvinder Kaur
Hello
I am using jboss JAXWS webservice.
When i call them from my application (a .war file) running on
JBOSS.4.2.3.GA. Web-service
call executes and returns result objects.
But When i use call web-service in my main() ( standalone class) with same (
.jars as used above in application), I get following errors.
Please help. Thanks to give some direction.
Getting these errors:
================
OperationMetaData:
qname={http://endpoint.ws.eventmgt.qs.st/}updateAction
javaName={http://endpoint.ws.eventmgt.qs.st/}updateAction
style=document/literal/WRAPPED
oneWay=false
soapAction=
DEBUG (JAXWSClientMetaDataBuilder.java:274) 16:28:23,090 - START:
rebuildMetaData
DEBUG (EndpointMetaData.java:310) 16:28:23,105 - setParameterStyle: null
DEBUG (EndpointMetaData.java:864) 16:28:23,106 - Create new config
[name=Standard Client,file=META-INF/standard-jaxws-client-config.xml]
DEBUG (JBossWSConfigFactory.java:140) 16:28:23,109 - getConfig:
[name=Standard Client,url=META-INF/standard-jaxws-client-config.xml]
DEBUG (JBossWSConfigFactory.java:70) 16:28:23,110 - parse:
jar:file:/home/arvinder/jbossws-client.jar!/META-INF/standard-jaxws-client-config.xml
Exception in thread "main" java.lang.NoSuchMethodError:
org.jboss.xb.binding.Unmarshaller.setSchemaValidation(Z)V
at
org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfigFactory.java:78)
at
org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:149)
at
org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfigMetaData(EndpointMetaData.java:872)
at
org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(EndpointMetaData.java:849)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:292)
at
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:269)
at
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:240)
at javax.xml.ws.Service.getPort(Service.java:169)
at
st.itacn.bs.fmeabatches.wsclient.ActionWSClient.getActionEndPoint(ActionWSClient.java:43)
at
st.itacn.bs.fmeabatches.datalayer.ActionDataLayer.createAction(ActionDataLayer.java:80)
at
st.itacn.bs.fmeabatches.batchRun.ActionCreation.main(ActionCreation.java:39)
14 years, 2 months