-
1. Re: native-core-4.0.2.GA in jboss-as 7
nickarls Jan 28, 2013 2:30 AM (in response to rahul22)Sounds a bit like rocket science ;-)
Perhaps the question could be more easily approached by explaining what you are trying to achieve?
-
2. Re: native-core-4.0.2.GA in jboss-as 7
rahul22 Jan 28, 2013 2:39 AM (in response to nickarls)hi ,
Thanks for showing your interest.
how i can acieve the interceptor code with the new jbossws-native-core 4.0.2.GA library
where
commonConfig.getProperties() returns Map<String,String> not List<EndpointProperty> . (so iterator can't be used) .
EndpointProperty is also deprecated .
Iterator<EndpointProperty> iter = commonConfig.getProperties().iterator();
while (iter.hasNext()){
EndpointProperty p = iter.next();
if (p.name.equals(new URI(EndpointProperty.CHUNKED_ENCODING_SIZE))){
p.value = "0";
hacked = true;
log.info("Chunking set to 0 since service host does not support chunked requests");
}
}Thanks
-
3. Re: native-core-4.0.2.GA in jboss-as 7
nickarls Jan 28, 2013 2:52 AM (in response to rahul22)I assume you have seen https://community.jboss.org/wiki/JBossWS4MigrationGuide? There are some mention of api/spi changes.
-
4. Re: native-core-4.0.2.GA in jboss-as 7
nickarls Jan 28, 2013 2:57 AM (in response to nickarls)BTW, What prevents you from iterating over a Map (if the data is correct and real-time and does what it should if modified)?
-
5. Re: native-core-4.0.2.GA in jboss-as 7
rahul22 Jan 28, 2013 3:03 AM (in response to nickarls)hi,
i can't do like this
commonConfig.getProperties().iterator();
as iterator() is not there for MAP.
Thanks
-
6. Re: native-core-4.0.2.GA in jboss-as 7
nickarls Jan 28, 2013 3:13 AM (in response to rahul22)It can still be iterated: e.g.
http://docs.oracle.com/javase/6/docs/api/java/util/Map.html#entrySet()
for (Map.Entry<String, String> property : commonConfig.getProperties()) {
System.out.println(String.format("%s=%s", property.getKey(), property.getValue()));
}
-
7. Re: native-core-4.0.2.GA in jboss-as 7
jaikiran Jan 28, 2013 3:22 AM (in response to rahul22)Before getting into the implementation details, could you tell us why you want to add that interceptor in first place?
-
8. Re: native-core-4.0.2.GA in jboss-as 7
rahul22 Jan 28, 2013 3:23 AM (in response to nickarls)hi,
That way i have already done thorugh understanding but i was looking for some better options like something new if they have introduced in API .
something more similar to old code.
Thanks a lot
-
9. Re: native-core-4.0.2.GA in jboss-as 7
nickarls Jan 28, 2013 3:33 AM (in response to rahul22)If you are just looking to disable chunking, it can probably be configured in CXF, http://cxf.apache.org/docs/configuration.html?