You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nencho Lupanov (JIRA)" <ji...@apache.org> on 2007/04/02 15:08:32 UTC
[jira] Created: (AXIS2-2451) WS Policy Attachments for services.xml
WS Policy Attachments for services.xml
--------------------------------------
Key: AXIS2-2451
URL: https://issues.apache.org/jira/browse/AXIS2-2451
Project: Axis 2.0 (Axis2)
Issue Type: New Feature
Reporter: Nencho Lupanov
Axis2 does not recognize policy references in services.xml.
Implementation should alow usage such:
<wsp:PolicyReference
URI="http://localhost:53307/policy.xml#UTOverTransport" />
</wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2451) WS Policy Attachments for services.xml
Posted by "Nencho Lupanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nencho Lupanov updated AXIS2-2451:
----------------------------------
Attachment: PolicyReaderThread.java
Thread for reading remote policy reference content.We need a thread in order to avoid blocking.
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Attachments: PolicyEngine.diff, PolicyReaderThread.java, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2451) WS Policy Attachments for
services.xml
Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505775 ]
Sanka Samaranayake commented on AXIS2-2451:
-------------------------------------------
However I agree with your suggestion that PolicyReference should try to read the Policy by means of a actual URL that it refers if the registry doesn't contain it. This should happen as the final attempt.
see: Committed revision 548318.
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Priority: Blocker
> Attachments: PolicyEngine.diff, PolicyReaderThread.java, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2451) WS Policy Attachments for
services.xml
Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanka Samaranayake resolved AXIS2-2451.
---------------------------------------
Resolution: Fixed
I am not convinced about the use of separate threads to resolve the policies that are refered by the <wsp:PolicyReference> elements because of the following reasons.
1) It is unnecessory to resolve any policy references that are in a policy object model unless we are performing any operations on it (e.g. normalize, merge).
2) There is a risk that the PolicyEngine will produce a policy model that contains references that would be resolved into actual policies in later point of time (via those resolving threads). It would complicate life if that happens where we've already started to process the policy model build partially.
H
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Priority: Blocker
> Attachments: PolicyEngine.diff, PolicyReaderThread.java, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2451) WS Policy Attachments for
services.xml
Posted by "Nencho Lupanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505777 ]
Nencho Lupanov commented on AXIS2-2451:
---------------------------------------
Sanka,
I put the thread for a single reason - the policy engine to able to read policy url references that are urls in the same tomcat container.
the problem is that on one hand you read the url but on the other hand tomcat is not yet started waiting for axis2 to deploy.
Anyway, I can easily remove the thread creation but we have to live with the restriction for url references not to be on the same tomcat container.
Regards.
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Priority: Blocker
> Attachments: PolicyEngine.diff, PolicyReaderThread.java, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2451) WS Policy Attachments for services.xml
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe updated AXIS2-2451:
-------------------------------------
Priority: Blocker (was: Major)
Hi Sanka ,
If we are going to do this , then do that for 1.3
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Priority: Blocker
> Attachments: PolicyEngine.diff, PolicyReaderThread.java, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Assigned: (AXIS2-2451) WS Policy Attachments for
services.xml
Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanka Samaranayake reassigned AXIS2-2451:
-----------------------------------------
Assignee: Sanka Samaranayake
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assigned To: Sanka Samaranayake
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2451) WS Policy Attachments for services.xml
Posted by "Nencho Lupanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nencho Lupanov updated AXIS2-2451:
----------------------------------
Attachment: PolicyReference.diff
Functionality added:
public OMElement getRefencedPolicyContent(String uri){
OMElement documentElement = null;
try{
//create java.net URL pointing to remote resource
URL url = new URL(uri);
URLConnection connection = url.openConnection();
connection.setDoInput(true);
//create stax parser with the url content
XMLStreamReader parser = XMLInputFactory.newInstance().
createXMLStreamReader(connection.getInputStream());
//get the root element (in this case the envelope)
StAXOMBuilder builder = new StAXOMBuilder(parser);
documentElement = builder.getDocumentElement();
}catch(XMLStreamException se){
throw new RuntimeException("Bad policy content: " + uri);
}catch(MalformedURLException mue){
throw new RuntimeException("Malformed uri: " + uri);
}catch(IOException ioe){
throw new RuntimeException("Cannot reach remote resource: " + uri);
}
return documentElement;
}
public Policy getRemoteReferencedPolicy(String uri) {
Policy policy = null;
//extract the remote resource contents
OMElement policyElement = getRefencedPolicyContent(uri);
//call the policy engine with already extracted content
policy = PolicyEngine.getPolicy(policyElement);
return policy;
}
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Attachments: PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2451) WS Policy Attachments for services.xml
Posted by "Nencho Lupanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nencho Lupanov updated AXIS2-2451:
----------------------------------
Attachment: PolicyEngine.diff
basic changes:
1) The policy content is extracted in a thread so no blocking occures:
//extract the policy reference object
PolicyReference pReference = getPolicyReference(childElement);
//pull the policy content in a thred so no blocking occurs
PolicyReaderThread thread = new PolicyReaderThread(pReference,operator);
thread.start();
2)privatestatic Policy getPolicyOperator(OMElement element) is changed to public in order to be used by the additional thread where the actual content is extracted
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assignee: Sanka Samaranayake
> Attachments: PolicyEngine.diff, PolicyReference.diff, PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2451) WS Policy Attachments for services.xml
Posted by "Nencho Lupanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nencho Lupanov updated AXIS2-2451:
----------------------------------
Attachment: PolicyReference.diff
This is a diff for the neethi snapsshot - with this implementation axis2 will extract the policy reference content from a uri and load it into the policy registry.
> WS Policy Attachments for services.xml
> --------------------------------------
>
> Key: AXIS2-2451
> URL: https://issues.apache.org/jira/browse/AXIS2-2451
> Project: Axis 2.0 (Axis2)
> Issue Type: New Feature
> Reporter: Nencho Lupanov
> Assigned To: Sanka Samaranayake
> Attachments: PolicyReference.diff
>
>
> Axis2 does not recognize policy references in services.xml.
> Implementation should alow usage such:
> <wsp:PolicyReference
> URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </wsp:PolicyAttachment>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org