Re: [VOTE][Rampart/C] Apache Rampart/C 1.3.0 Release
I tested the binary artifact on Windows. Here is my +1. Danushka -- Danushka Menikkumbura Technical Lead, WSO2 Inc. blog : http://danushka-menikkumbura.blogspot.com/ http://wso2.com/ - The Open Source SOA Company
Re: [VOTE][Rampart/C] Apache Rampart/C 1.3.0 Release
+1 Damitha Uthaiyashankar wrote: Hi, I have uploaded the Apache Rampart/C 1.3.0 release artifacts here: http://people.apache.org/~shankar/rampartc/1_3_0/take1/ The key is here: http://people.apache.org/~shankar/rampartc/1_3_0/take1/KEYS Please test, review and vote on the release artifacts for Apache Rampart/C 1.3.0 release. Please test it with Apache Axis2/C 1.6.0, which can be downloaded from here: http://ws.apache.org/axis2/c/download.cgi Here is my vote +1. Regards, Shankar -- __ Damitha Kumarage http://people.apache.org/ __
Axis C++ SSL Client: How the client take keystore ( client side certificate ) ?
Hi All, Now i am working in axis cpp SSL setup.In server.xml enable the clientauth as true.In client side i create the Stub code using wsdl location , trsuted store,key stroe files ( dynamically set the JVM property using like -Djavax.net.ssl.trustStore=file name ) and sucessfully compiled. Then i got the below error when i running the client. HTTPTransportException:Client failed to open No Errors I think, we need to give keystroe file location for client prg. But How? Is there anything we need to configure in axiscpp.config? What is the purpose for SecurityInfo filed in axiscpp.config ? Thanks Milton. -- View this message in context: http://www.nabble.com/Axis-C%2B%2B-SSL-Client%3A-How-the-client-take-keystore-%28-client-side-certificate-%29---tp23636325p23636325.html Sent from the Axis - C++ - Dev mailing list archive at Nabble.com.
Re: Axis C++ SSL Client: How the client take keystore ( client side certificate ) ?
I assume you are using AXIS C++? If so, you can so so programmatically via the setSecure method on stub. stub-SetSecure( path to KeyRing.kbd, password or stash, label, NONE, 05, NONE, false); Nadir Amra ANTONI MILTON antoni_in...@yahoo.com wrote on 05/20/2009 09:13:10 AM: [image removed] Axis C++ SSL Client: How the client take keystore ( client side certificate ) ? ANTONI MILTON to: axis-c-dev 05/20/2009 09:13 AM Please respond to Apache AXIS C Developers List Hi All, Now i am working in axis cpp SSL setup.In server.xml enable the clientauth as true.In client side i create the Stub code using wsdl location , trsuted store,key stroe files ( dynamically set the JVM property using like -Djavax.net.ssl.trustStore=file name ) and sucessfully compiled. Then i got the below error when i running the client. HTTPTransportException:Client failed to open No Errors I think, we need to give keystroe file location for client prg. But How? Is there anything we need to configure in axiscpp.config? What is the purpose for SecurityInfo filed in axiscpp.config ? Thanks Milton. -- View this message in context: http://www.nabble.com/Axis-C%2B%2B- SSL-Client%3A-How-the-client-take-keystore-%28-client-side- certificate-%29---tp23636325p23636325.html Sent from the Axis - C++ - Dev mailing list archive at Nabble.com.
Re: [VOTE][Rampart/C] Apache Rampart/C 1.3.0 Release
+1 ~sanjaya On Wed, May 20, 2009 at 3:09 PM, Damitha Kumarage dami...@wso2.com wrote: +1 Damitha Uthaiyashankar wrote: Hi, I have uploaded the Apache Rampart/C 1.3.0 release artifacts here: http://people.apache.org/~shankar/rampartc/1_3_0/take1/http://people.apache.org/%7Eshankar/rampartc/1_3_0/take1/ The key is here: http://people.apache.org/~shankar/rampartc/1_3_0/take1/KEYShttp://people.apache.org/%7Eshankar/rampartc/1_3_0/take1/KEYS Please test, review and vote on the release artifacts for Apache Rampart/C 1.3.0 release. Please test it with Apache Axis2/C 1.6.0, which can be downloaded from here: http://ws.apache.org/axis2/c/download.cgi Here is my vote +1. Regards, Shankar -- __ Damitha Kumarage http://people.apache.org/ __ -- Sanjaya Ratnaweera Senior Software Engineer; WSO2 Inc. http://www.wso2.com/ - The Open Source SOA Company
Re: [VOTE] Release Axis2 1.5
My +1, too. Thanks, Dobri On Sun, May 17, 2009 at 7:46 PM, Glen Daniels g...@thoughtcraft.com wrote: Hi Axis Developers: The 1.5 release candidate has been stable for a couple of weeks now, and thus I'd like to kick off a VOTE to officially release 1.5. The usual 72 hour window applies. You can find the distribution files in here: http://people.apache.org/~gdaniels/stagingRepo/org/apache/axis2/distribution/1.5/http://people.apache.org/%7Egdaniels/stagingRepo/org/apache/axis2/distribution/1.5/ And the M2 repository with everything is at: http://people.apache.org/~gdaniels/stagingRepohttp://people.apache.org/%7Egdaniels/stagingRepo The SVN tag is: https://svn.apache.org/repos/asf/webservices/axis2/tags/java/v1.5RC ...and I'll add a proper v1.5 tag as soon as this release goes final. Please offer your VOTE (and indicate binding/non-binding). Here's my +1 (binding). Many thanks, --Glen
Re: svn commit: r776555 - in /webservices/axis2/trunk/java/modules: jaxws/src/org/apache/axis2/jaxws/framework/ kernel/src/org/apache/axis2/ kernel/src/org/apache/axis2/deployment/ kernel/src/org/ap
Amila, Can you fix the typo in the value of the ENABLE_CHILD_FIRST_CLASS_LOADING constant? (there is an i missing) Andreas On Wed, May 20, 2009 at 07:12, ami...@apache.org wrote: Author: amilas Date: Wed May 20 05:12:58 2009 New Revision: 776555 URL: http://svn.apache.org/viewvc?rev=776555view=rev Log: applied the patch for AXIS2-4349 Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/Constants.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentEngine.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ModuleDeployer.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/ServiceDeployer.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/TransportDeployer.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/DeploymentFileData.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java?rev=776555r1=776554r2=776555view=diff == --- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java (original) +++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java Wed May 20 05:12:58 2009 @@ -102,7 +102,8 @@ axisConfig.getSystemClassLoader(), true, (File) axisConfig. - getParameterValue(Constants.Configuration.ARTIFACTS_TEMP_DIR)); + getParameterValue(Constants.Configuration.ARTIFACTS_TEMP_DIR), + axisConfig.isChildFirstClassLoading()); Thread.currentThread().setContextClassLoader(classLoader); deployClasses(JAXWS-Builtin, file.toURL(), Thread.currentThread().getContextClassLoader(), classList); } catch (Exception e) { @@ -151,7 +152,8 @@ axisConfig.getSystemClassLoader(), true, (File) axisConfig. - getParameterValue(Constants.Configuration.ARTIFACTS_TEMP_DIR)); + getParameterValue(Constants.Configuration.ARTIFACTS_TEMP_DIR), + axisConfig.isChildFirstClassLoading()); Thread.currentThread().setContextClassLoader(classLoader); ArrayList classList = getListOfClasses(deploymentFileData); Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/Constants.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/Constants.java?rev=776555r1=776554r2=776555view=diff == --- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/Constants.java (original) +++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/Constants.java Wed May 20 05:12:58 2009 @@ -438,6 +438,13 @@ public static final String REST_METHOD_PARAM=RESTMethod; public static final String REST_INPUTSERIALIZE_PARAM=RESTInputSerialization; public static final String REST_OUTPUTSERIALIZE_PARAM=RESTOutputSerialization; - + + /** + * this parameter enables child first class loading. + * so the modules and services first use the classes in their class loader first + */ + + public static final String ENABLE_CHILD_FIRST_CLASS_LOADING=EnableChldFirstClassLoading; + } } Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentClassLoader.java?rev=776555r1=776554r2=776555view=diff == ---
[Axis2] failed to invoke JMS application -- java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
Hi All, I am trying to create client to invoke JMS Web Service, I have created the client by adding the following code in my client class ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(C: \\axis2-1.4.1\\repository,C:\\axis2-1.4.1\\conf\\axis2-client.xml); String url = jms:/Version?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFac toryjava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitia lContextFactoryjava.naming.provider.url=tcp://localhost:61616; VersionStub stub = new VersionStub(cc,url); I got the following error when I run the client program [java] java.security.AccessControlException: access denied (java.lang.Runti mePermission modifyThread) [java] at java.security.AccessControlContext.checkPermission(AccessCont rolContext.java:264) [java] at java.security.AccessController.checkPermission(AccessControll er.java:427) [java] at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoo lExecutor.java:959) [java] at org.apache.activemq.thread.TaskRunnerFactory.shutdown(TaskRun nerFactory.java:71) [java] at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnecti on.java:636) [java] at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.jav a:258) [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou tInAxisOperation.java:401) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute Impl(OutInAxisOperation.java:228) [java] at org.apache.axis2.client.OperationClient.execute(OperationClie nt.java:163) [java] at sample.axisversion.VersionStub.getVersion(Unknown Source) [java] at client.JMSClient.main(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav a:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava .java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:288) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU tils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav a:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De faultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189 ) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 Please help me to resolve this error. Regards, Balaji
Re: [Axis2] failed to invoke JMS application -- java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
This is not an Axis2 problem, but related to how ant executes Java programs. Trying with fork=true may help here. Andreas On Wed, May 20, 2009 at 15:41, Sirasani, Balaji balaji.siras...@ca.com wrote: Hi All, I am trying to create client to invoke JMS Web Service, I have created the client by adding the following code in my client class ConfigurationContext cc = ConfigurationContextFactory.createConfigurationContextFromFileSystem(C:\\axis2-1.4.1\\repository,C:\\axis2-1.4.1\\conf\\axis2-client.xml); String url = jms:/Version?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryjava.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactoryjava.naming.provider.url=tcp://localhost:61616; VersionStub stub = new VersionStub(cc,url); I got the following error when I run the client program [java] java.security.AccessControlException: access denied (java.lang.Runti mePermission modifyThread) [java] at java.security.AccessControlContext.checkPermission(AccessCont rolContext.java:264) [java] at java.security.AccessController.checkPermission(AccessControll er.java:427) [java] at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoo lExecutor.java:959) [java] at org.apache.activemq.thread.TaskRunnerFactory.shutdown(TaskRun nerFactory.java:71) [java] at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnecti on.java:636) [java] at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.jav a:258) [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou tInAxisOperation.java:401) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute Impl(OutInAxisOperation.java:228) [java] at org.apache.axis2.client.OperationClient.execute(OperationClie nt.java:163) [java] at sample.axisversion.VersionStub.getVersion(Unknown Source) [java] at client.JMSClient.main(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav a:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava .java:152) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:288) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU tils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:357) [java] at org.apache.tools.ant.Target.performTasks(Target.java:385) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav a:1337) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De faultExecutor.java:41) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189 ) [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [java] Java Result: -1 Please help me to resolve this error. Regards, Balaji
[jira] Commented: (AXIS-2422) Problem using compression with Axis 1.3
[ https://issues.apache.org/jira/browse/AXIS-2422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12711207#action_12711207 ] Duncan Loveday commented on AXIS-2422: -- I should have added: The attachment fixes the problem beautifully and thanks for providing it. Problem using compression with Axis 1.3 --- Key: AXIS-2422 URL: https://issues.apache.org/jira/browse/AXIS-2422 Project: Axis Issue Type: Bug Environment: Windows XP, JDK 1.5.0_06 Reporter: Marius Danciu Attachments: CommonsHTTPSender.java Hello, I'm using Axis 1.3 release and it looks like there is a problem when using compression. First, let me describe the scenario that I'm using: 1. I'm using axis to interact with SalesForce (http://www.salesforce.com/developer/) 2. I'm using compression (by setting HTTPConstants.MC_GZIP_REQUEST and HTTPConstants.COMPRESSION_GZIP to true) 3. I'm sending Authentication request tu URL1 (compressed) and sforce is providing the response NON-compressed. After this, HTTP connection is returned correctlyy to connection pool. 4. SForce is providing a new URL (URL2) for the subsequent HTTP requests within the context of this session. 5. Now, I'm sending the nex t SOAP request (a query for example). After receiving the response (this time SForce sent it compressed) I noticed that the connection is NOT returned to connection pool. 6. I'm sending another SOAP request and response is received correctly, b ut the HTTP connection is NOT returned to the connection pool again (response was aagin compressed). 7. Attempting to send another request will block the client since there are no connections left in the connection pool and the client will wait until a connection will eventually be returned to the pool. (default number of connections per host is 2) After debugging a bit Commons Http Client code, it seems that GZIPInputStream doesn't really work very well with AutoCloseInputStream. What I mean is that AutoCloseInputStream monitors when end of stream is reached (read value == -1) and will automatically cause the connection to be returned to connection pool. When using GZIPInputStr eam this does not happen. AutoCloseInputStream is not notified (never reads -1) when GZIPInputStream reached the end of stream. Thank you, Marius -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (AXIS-2790) Not able to generate enumeration values in output WSDL file
Not able to generate enumeration values in output WSDL file --- Key: AXIS-2790 URL: https://issues.apache.org/jira/browse/AXIS-2790 Project: Axis Issue Type: Bug Components: WSDL processing Affects Versions: 1.4 Environment: Jdk v1.5, Weblogic v10 Reporter: Guthi Prasad Hi , Recently we have migrated to Axis v1.4 ( from Axis v1.1). The issues is with the enumeration object, the values are not showing up in output WSDL file. We are generating class from WSDL file it is able to generate all classes ( even for enumeration ) WSDL files looks like this : simpleType name=Version restriction base=xsd:string enumeration value=7.0/ /restriction /simpleType deploy .wsdd typeMapping xmlns:ns=urn:ews-structs qname=ns:Version type=java:com.hp.ews.bd.beans.Version serializer=org.apache.axis.encoding.ser.EnumSerializerFactory deserializer=org.apache.axis.encoding.ser.EnumDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; / When we do Java2WSDL, this Object Version with enumeration 70 is never shown. Any suggestions!! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (AXIS-2422) Problem using compression with Axis 1.3
[ https://issues.apache.org/jira/browse/AXIS-2422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12711204#action_12711204 ] Duncan Loveday commented on AXIS-2422: -- I'm hitting this with Axis 1.4 and commons http client 1.3 - so I guess no fix has been incorporated ? This seems like a pretty serious bug that ought to be addressed. Problem using compression with Axis 1.3 --- Key: AXIS-2422 URL: https://issues.apache.org/jira/browse/AXIS-2422 Project: Axis Issue Type: Bug Environment: Windows XP, JDK 1.5.0_06 Reporter: Marius Danciu Attachments: CommonsHTTPSender.java Hello, I'm using Axis 1.3 release and it looks like there is a problem when using compression. First, let me describe the scenario that I'm using: 1. I'm using axis to interact with SalesForce (http://www.salesforce.com/developer/) 2. I'm using compression (by setting HTTPConstants.MC_GZIP_REQUEST and HTTPConstants.COMPRESSION_GZIP to true) 3. I'm sending Authentication request tu URL1 (compressed) and sforce is providing the response NON-compressed. After this, HTTP connection is returned correctlyy to connection pool. 4. SForce is providing a new URL (URL2) for the subsequent HTTP requests within the context of this session. 5. Now, I'm sending the nex t SOAP request (a query for example). After receiving the response (this time SForce sent it compressed) I noticed that the connection is NOT returned to connection pool. 6. I'm sending another SOAP request and response is received correctly, b ut the HTTP connection is NOT returned to the connection pool again (response was aagin compressed). 7. Attempting to send another request will block the client since there are no connections left in the connection pool and the client will wait until a connection will eventually be returned to the pool. (default number of connections per host is 2) After debugging a bit Commons Http Client code, it seems that GZIPInputStream doesn't really work very well with AutoCloseInputStream. What I mean is that AutoCloseInputStream monitors when end of stream is reached (read value == -1) and will automatically cause the connection to be returned to connection pool. When using GZIPInputStr eam this does not happen. AutoCloseInputStream is not notified (never reads -1) when GZIPInputStream reached the end of stream. Thank you, Marius -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: [axis2] AxisConfiguration.getService() and inactive services
Hi Deepal: Deepal jayasinghe wrote: Yes, there is a difference. One method is for management other method is for dispatching. So at the runtime when a message receive we call getService, and if we want to activate, inactivate we call other method. Throwing an exception to do this is (IMHO) bad code. It's expensive, slower, non-intuitive (what would you expect getService() to do?) and just plain annoying for people calling this method. getService(name) should return the AxisService matching the name if there is one, period, end of story, just like all the other accessors like it do. If you don't want the dispatch code to call isActive() on the resulting service (which IMHO isn't that egregious), a getActiveService(name) utility method would be fine, which would simply return null if there was a service by the specified name that was inactive. No exceptions necessary. Thoughts? --Glen P.S. This is all not to mention that getServiceForActivation() is a terrible name for a method that simply returns you a service. Deepal Hi y'all: So I'm cleaning up a little code and javadoc, and happened to come across AxisConfiguration.getService()... which *throws an Exception* if you ask for an inactive service. ...which is why we have a second method called getServiceForActivation() that simply avoids the check and the exception. Does this make sense? Why? --Glen
Re: [axis2] AxisConfiguration.getService() and inactive services
Hi Glen, Throwing an exception to do this is (IMHO) bad code. It's expensive, slower, non-intuitive (what would you expect getService() to do?) and just plain annoying for people calling this method. Well inactive service treat as same as service is not there in the system. So I do not see a big problem of throwing the exception (other than it is costly). You will get the same exception if the service is not deployed in the system or service is inactive. IMO, throwing the exception is consistent, since we do the same thing for the operation, module etc.. getService(name) should return the AxisService matching the name if there is one, period, end of story, just like all the other accessors like it do. No there should be a difference between active and inactive service. So it should throw exception (or null) if the service is not there or inactive. If you don't want the dispatch code to call isActive() on the resulting service (which IMHO isn't that egregious), a getActiveService(name) utility method would be fine, which would simply return null if there was a service by the specified name that was inactive. No exceptions necessary. I like your idea, but my belief is we should not change those methods now, since it is everywhere, may be we can introduce new methods. Thoughts? --Glen P.S. This is all not to mention that getServiceForActivation() is a terrible name for a method that simply returns you a service. I know, I should have changed that to getInactiveService or something. Deepal