Re: svn commit: r768473 - in /synapse/trunk/java: modules/transports/pom.xml pom.xml

2009-04-26 Thread Ruwan Linton
Andreas, this should be fixed now... I ran the full build with tests and
seems to be OK.

Thanks,
Ruwan

On Sun, Apr 26, 2009 at 8:06 PM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Hi Andreas,

 When I try the mvn idea:idea command to generate the idea project, it gives
 me this error. I think there is something wrong with the idea plugin... I
 will have a look at this, for the moment we can revert this exclusion, or we
 could specifically exclude the jmxri.

 Thanks,
 Ruwan


 On Sun, Apr 26, 2009 at 4:27 AM, Andreas Veithen 
 andreas.veit...@gmail.com wrote:

 Ruwan,

 The exclusion rule on axis2-transport-testkit is incorrect:
 - It breaks the build (see Hudson).
 - axis2-transport-testkit _really_ depends on log4j (to produce more
 fine grained log files), so it would be conceptually wrong to exclude
 it.
 - In the parent POM, there is a dependencyManagement entry for log4j
 that excludes the dependency on jmxri = synapse-transports has no
 transitive dependency on jmxri.

 Andreas

 On Sat, Apr 25, 2009 at 07:55,  ru...@apache.org wrote:
  Author: ruwan
  Date: Sat Apr 25 05:55:20 2009
  New Revision: 768473
 
  URL: http://svn.apache.org/viewvc?rev=768473view=rev
  Log:
  log4j-1.2.15 looks for com.sun.jmx:jmxri:jar:1.2.1 which is not
 available, excluding log4j coming from transitive dependencies to workaround
 
  Modified:
 synapse/trunk/java/modules/transports/pom.xml
 synapse/trunk/java/pom.xml
 
  Modified: synapse/trunk/java/modules/transports/pom.xml
  URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/pom.xml?rev=768473r1=768472r2=768473view=diff
 
 ==
  --- synapse/trunk/java/modules/transports/pom.xml (original)
  +++ synapse/trunk/java/modules/transports/pom.xml Sat Apr 25 05:55:20
 2009
  @@ -185,6 +185,12 @@
  artifactIdaxis2-transport-testkit/artifactId
  version${axis2.transport.version}/version
  scopetest/scope
  +exclusions
  +exclusion
  +groupIdlog4j/groupId
  +artifactIdlog4j/artifactId
  +/exclusion
  +/exclusions
  /dependency
 
  !-- HTTP transport dependencies --
 
  Modified: synapse/trunk/java/pom.xml
  URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/pom.xml?rev=768473r1=768472r2=768473view=diff
 
 ==
  --- synapse/trunk/java/pom.xml (original)
  +++ synapse/trunk/java/pom.xml Sat Apr 25 05:55:20 2009
  @@ -698,6 +698,12 @@
  artifactIdwso2caching-core/artifactId
  version${wso2caching.version}/version
  typejar/type
  +exclusions
  +exclusion
  +groupIdlog4j/groupId
  +artifactIdlog4j/artifactId
  +/exclusion
  +/exclusions
  /dependency
 
  !-- Eventing dependencies--
 
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: [jira] Updated: (SYNAPSE-536) Error while stoping the Synapse server

2009-04-26 Thread Ruwan Linton
)
   at
  sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
   at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)
   at
 
 com.sun.jndi.rmi.registry.RegistryContext.unbind(RegistryContext.java:152)
   ... 9 more
   2009-04-25 09:49:40,772 [-] [Thread-9]  INFO SynapseServer Apache
  Synapse shutdown complete
   2009-04-25 09:49:40,773 [-] [Thread-9]  INFO SynapseServer Halting JVM
   Unfortunately I'm not able to reproduce this issue in my environment
  although from looking at the code the obvious reason seems to be the RMI
  registry is shutdown before the JmxAdapter is stopped.
   Attached you'll find a patch which moves the RMI registry stop to a
  later position after stopping the JmxAdapter. This should fix the issue.
 
  --
  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: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: [jira] Updated: (SYNAPSE-536) Error while stoping the Synapse server

2009-04-26 Thread Ruwan Linton
Well, it does execute the shutdown hook, but just that the INFO logs has not
been printed on the console It seems like something wron with the log4j
configuration or the log4j dependency... (wondering whether my exclusions
did this).

Going to commit the patch...

Thanks,
Ruwan

On Sun, Apr 26, 2009 at 10:57 PM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Eric,

 I applied the patch and tested... Even though this particular exception is
 not there, it doesn't seem to go on the clean shutdown path instead it just
 halts and seems to be the shutdown hook is not executing :-( Also this
 doesn't seem to be relevant to this fix, but there is something wrong on the
 trunk about the shutdown process.

 I will further look into this in the mean time if you happen to see the
 same issue on your environment please do let me know.

 Thanks,
 Ruwan


 On Sun, Apr 26, 2009 at 4:41 AM, Hubert, Eric 
 eric.hub...@foxmobile.comwrote:

 Hi Ruwan,

 I submitted a patch which should fix this issue you reported. Fortunately
 I was not able to reproduce it locally. Could you please first apply this
 patch locally and test if it fixes the issue for you!

 By the way, which log4j configuration are we using if running the server
 from synapse.sh? There is one directly in the lib directory which does not
 seem to be used and one in the synapse-core.jar and likely others...

 There are still a couple of other issues in the startup/shutdown logic you
 will notice once you call stop and start from ServerManager. I'm working on
 those issues as well.

 Thanks,
Eric


 
   [ https://issues.apache.org/jira/browse/SYNAPSE-
  536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
 
  Eric Hubert updated SYNAPSE-536:
  
 
  Attachment: Shutdown.patch
 
   Error while stoping the Synapse server
   --
  
   Key: SYNAPSE-536
   URL:
 https://issues.apache.org/jira/browse/SYNAPSE-536
   Project: Synapse
Issue Type: Bug
Components: Core
  Affects Versions: NIGHTLY
  Reporter: Eric Hubert
   Fix For: 1.3
  
   Attachments: Shutdown.patch
  
  
   Originally reported by Ruwan and confirmed by Hiranya:
   On the latest build I am seeing an error while trying to stop Synapse,
  by killing the process (CTRL+C) on Unix.
   Is this local to me? I do have some local changes but they have
 nothing
  to do with this I guess. :-(
   2009-04-25 09:49:40,580 [-] [Thread-9]  INFO SynapseServer Shutting
 down
  Apache Synapse...
   2009-04-25 09:49:40,582 [-] [HttpCoreNIOListener]  INFO
  HttpCoreNIOListener HTTPS Listener Shutdown
   2009-04-25 09:49:40,583 [-] [Thread-9]  INFO VFSTransportListener VFS
  Listener Shutdown
   2009-04-25 09:49:40,583 [-] [HttpCoreNIOListener]  INFO
  HttpCoreNIOListener HTTP Listener Shutdown
   2009-04-25 09:49:40,584 [-] [Thread-9]  INFO MailTransportListener
  MAILTO Listener Shutdown
   2009-04-25 09:49:40,585 [-] [HttpCoreNIOSender]  INFO
 HttpCoreNIOSender
  HTTPS Sender Shutdown
   2009-04-25 09:49:40,586 [-] [HttpCoreNIOSender]  INFO
 HttpCoreNIOSender
  HTTP Sender Shutdown
   2009-04-25 09:49:40,586 [-] [Thread-9]  INFO VFSTransportSender VFS
  Sender Shutdown
   2009-04-25 09:49:40,587 [-] [Thread-9]  INFO JMSSender JMS Sender
  Shutdown
   2009-04-25 09:49:40,588 [-] [Thread-9]  INFO RMIRegistryController
  Removing the RMI registry bound to port : 1099
   2009-04-25 09:49:40,604 [-] [Thread-9]  INFO JmxAdapter
  JMXConnectorServer stopping on
  service:jmx:rmi:///jndi/rmi://ruwan:1099/synapse
   2009-04-25 09:49:40,761 [-] [Thread-9] ERROR JmxAdapter Error while
  stopping remote JMX connector
   java.io.IOException: Cannot bind to URL:
   javax.naming.CommunicationException [Root exception is
   java.rmi.NoSuchObjectException: no such object in table]
   at
 
 javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnector
  Server.java:814)
   at
 
 javax.management.remote.rmi.RMIConnectorServer.stop(RMIConnectorServer.jav
  a:572)
   at org.apache.synapse.JmxAdapter.stop(JmxAdapter.java:140)
   at
 
 org.apache.synapse.Axis2SynapseController.stopJmxAdapter(Axis2SynapseContr
  oller.java:583)
   at
 
 org.apache.synapse.Axis2SynapseController.destroy(Axis2SynapseController.j
  ava:143)
   at
  org.apache.synapse.ServerManager.doDestroy(ServerManager.java:252)
   at
  org.apache.synapse.ServerManager.destroy(ServerManager.java:117)
   at
 org.apache.synapse.SynapseServer$1.run(SynapseServer.java:88)
   Caused by: javax.naming.CommunicationException [Root exception is
   java.rmi.NoSuchObjectException: no such object in table]
   at
 
 com.sun.jndi.rmi.registry.RegistryContext.unbind(RegistryContext.java:156)
   at
 
 com.sun.jndi.toolkit.url.GenericURLContext.unbind(GenericURLContext.java:2
  54

Re: [jira] Updated: (SYNAPSE-536) Error while stoping the Synapse server

2009-04-26 Thread Ruwan Linton
+1, waiting for your patch... :-)

Thanks,
Ruwan

On Sun, Apr 26, 2009 at 11:34 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Hi Ruwan,



 There are a few issues with the shutdown-handling left, especially in error
 situations. Runtime-Exceptions are passing through the layers and are not
 always appropriately handled. Each time I’m encountering an issue, I’ll put
 it on a list. Sometimes I would like to fix those issues immediately, but as
 I’m currently working on a change which is also large enough without all
 those corrections on the way, I try to keep those issues for later to ease
 the review work.



 I also started to move some classes from org.apache.synape to a subpackage
 org.apache.synapse.server, but then decided to go back as this makes it
 harder to follow up parallel changes to the same classes and also makes
 reviewing harder then it has to be. So I stepped back. Anyway I think moving
 some classes from the toplevel package to a server package would make sense
 as a next step.



 I’ll post the patch today, as all my tests seem to be successful. I will
 now spend some hours on documenting and then look for the open issue in JIRA
 and attach the patch. So if you could wait with some further changes to
 ServerManager, Axis2SynapseController and those central classes this would
 help me.



 Thanks,

Eric


   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Sunday, April 26, 2009 7:28 PM
 *To:* dev@synapse.apache.org
 *Subject:* Re: [jira] Updated: (SYNAPSE-536) Error while stoping the
 Synapse server



 Eric,

 I applied the patch and tested... Even though this particular exception is
 not there, it doesn't seem to go on the clean shutdown path instead it just
 halts and seems to be the shutdown hook is not executing :-( Also this
 doesn't seem to be relevant to this fix, but there is something wrong on the
 trunk about the shutdown process.

 I will further look into this in the mean time if you happen to see the
 same issue on your environment please do let me know.

 Thanks,
 Ruwan

 On Sun, Apr 26, 2009 at 4:41 AM, Hubert, Eric eric.hub...@foxmobile.com
 wrote:

 Hi Ruwan,

 I submitted a patch which should fix this issue you reported. Fortunately I
 was not able to reproduce it locally. Could you please first apply this
 patch locally and test if it fixes the issue for you!

 By the way, which log4j configuration are we using if running the server
 from synapse.sh? There is one directly in the lib directory which does not
 seem to be used and one in the synapse-core.jar and likely others...

 There are still a couple of other issues in the startup/shutdown logic you
 will notice once you call stop and start from ServerManager. I'm working on
 those issues as well.

 Thanks,
   Eric



 
   [ https://issues.apache.org/jira/browse/SYNAPSE-
  536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
 
  Eric Hubert updated SYNAPSE-536:
  
 
  Attachment: Shutdown.patch
 
   Error while stoping the Synapse server
   --
  
   Key: SYNAPSE-536
   URL: https://issues.apache.org/jira/browse/SYNAPSE-536
   Project: Synapse
Issue Type: Bug
Components: Core
  Affects Versions: NIGHTLY
  Reporter: Eric Hubert
   Fix For: 1.3
  
   Attachments: Shutdown.patch
  
  
   Originally reported by Ruwan and confirmed by Hiranya:
   On the latest build I am seeing an error while trying to stop Synapse,
  by killing the process (CTRL+C) on Unix.
   Is this local to me? I do have some local changes but they have nothing
  to do with this I guess. :-(
   2009-04-25 09:49:40,580 [-] [Thread-9]  INFO SynapseServer Shutting
 down
  Apache Synapse...
   2009-04-25 09:49:40,582 [-] [HttpCoreNIOListener]  INFO
  HttpCoreNIOListener HTTPS Listener Shutdown
   2009-04-25 09:49:40,583 [-] [Thread-9]  INFO VFSTransportListener VFS
  Listener Shutdown
   2009-04-25 09:49:40,583 [-] [HttpCoreNIOListener]  INFO
  HttpCoreNIOListener HTTP Listener Shutdown
   2009-04-25 09:49:40,584 [-] [Thread-9]  INFO MailTransportListener
  MAILTO Listener Shutdown
   2009-04-25 09:49:40,585 [-] [HttpCoreNIOSender]  INFO HttpCoreNIOSender
  HTTPS Sender Shutdown
   2009-04-25 09:49:40,586 [-] [HttpCoreNIOSender]  INFO HttpCoreNIOSender
  HTTP Sender Shutdown
   2009-04-25 09:49:40,586 [-] [Thread-9]  INFO VFSTransportSender VFS
  Sender Shutdown
   2009-04-25 09:49:40,587 [-] [Thread-9]  INFO JMSSender JMS Sender
  Shutdown
   2009-04-25 09:49:40,588 [-] [Thread-9]  INFO RMIRegistryController
  Removing the RMI registry bound to port : 1099
   2009-04-25 09:49:40,604 [-] [Thread-9]  INFO JmxAdapter
  JMXConnectorServer stopping on
  service:jmx:rmi:///jndi/rmi://ruwan:1099/synapse
   2009-04-25 09:49:40,761 [-] [Thread-9] ERROR JmxAdapter Error while
  stopping remote JMX connector

Re: Result: [VOTE] Eric Hubert as a committer

2009-04-24 Thread Ruwan Linton
Congratulations Eric.. hope to see your much valuable contributions soon.

Thanks,
Ruwan

On Fri, Apr 24, 2009 at 12:53 PM, Asankha C. Perera asan...@apache.orgwrote:

 +1s from Ruwan, Saminda, Hiranya, Andreas, Upul and Asankha

 I call the vote closed!

 Congratulations and welcome Eric!
 Please fill out and fax the ICLA found at
 http://www.apache.org/licenses/icla.pdf, and let me know your preferred ID
 for the Apache account.

 thanks
 asankha
 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org

 http://esbmagic.blogspot.com





 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Error while stoping the Synapse server

2009-04-24 Thread Ruwan Linton
Devs,

On the latest build I am seeing an error while trying to stop Synapse,
by killing the process (CTRL+C) on Unix.

Is this local to me? I do have some local changes but they have
nothing to do with this I guess. :-(

2009-04-25 09:49:40,580 [-] [Thread-9]  INFO SynapseServer Shutting
down Apache Synapse...
2009-04-25 09:49:40,582 [-] [HttpCoreNIOListener]  INFO
HttpCoreNIOListener HTTPS Listener Shutdown
2009-04-25 09:49:40,583 [-] [Thread-9]  INFO VFSTransportListener VFS
Listener Shutdown
2009-04-25 09:49:40,583 [-] [HttpCoreNIOListener]  INFO
HttpCoreNIOListener HTTP Listener Shutdown
2009-04-25 09:49:40,584 [-] [Thread-9]  INFO MailTransportListener
MAILTO Listener Shutdown
2009-04-25 09:49:40,585 [-] [HttpCoreNIOSender]  INFO
HttpCoreNIOSender HTTPS Sender Shutdown
2009-04-25 09:49:40,586 [-] [HttpCoreNIOSender]  INFO
HttpCoreNIOSender HTTP Sender Shutdown
2009-04-25 09:49:40,586 [-] [Thread-9]  INFO VFSTransportSender VFS
Sender Shutdown
2009-04-25 09:49:40,587 [-] [Thread-9]  INFO JMSSender JMS Sender Shutdown
2009-04-25 09:49:40,588 [-] [Thread-9]  INFO RMIRegistryController
Removing the RMI registry bound to port : 1099
2009-04-25 09:49:40,604 [-] [Thread-9]  INFO JmxAdapter
JMXConnectorServer stopping on
service:jmx:rmi:///jndi/rmi://ruwan:1099/synapse
2009-04-25 09:49:40,761 [-] [Thread-9] ERROR JmxAdapter Error while
stopping remote JMX connector
java.io.IOException: Cannot bind to URL:
javax.naming.CommunicationException [Root exception is
java.rmi.NoSuchObjectException: no such object in table]
at 
javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
at 
javax.management.remote.rmi.RMIConnectorServer.stop(RMIConnectorServer.java:572)
at org.apache.synapse.JmxAdapter.stop(JmxAdapter.java:140)
at 
org.apache.synapse.Axis2SynapseController.stopJmxAdapter(Axis2SynapseController.java:583)
at 
org.apache.synapse.Axis2SynapseController.destroy(Axis2SynapseController.java:143)
at org.apache.synapse.ServerManager.doDestroy(ServerManager.java:252)
at org.apache.synapse.ServerManager.destroy(ServerManager.java:117)
at org.apache.synapse.SynapseServer$1.run(SynapseServer.java:88)
Caused by: javax.naming.CommunicationException [Root exception is
java.rmi.NoSuchObjectException: no such object in table]
at 
com.sun.jndi.rmi.registry.RegistryContext.unbind(RegistryContext.java:156)
at 
com.sun.jndi.toolkit.url.GenericURLContext.unbind(GenericURLContext.java:254)
at javax.naming.InitialContext.unbind(InitialContext.java:375)
at 
javax.management.remote.rmi.RMIConnectorServer.stop(RMIConnectorServer.java:565)
... 6 more
Caused by: java.rmi.NoSuchObjectException: no such object in table
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)
at 
com.sun.jndi.rmi.registry.RegistryContext.unbind(RegistryContext.java:152)
... 9 more
2009-04-25 09:49:40,772 [-] [Thread-9]  INFO SynapseServer Apache
Synapse shutdown complete
2009-04-25 09:49:40,773 [-] [Thread-9]  INFO SynapseServer Halting JVM

Thanks,
Ruwan

-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

-
To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: Endless recursion in FaultHandler.handleFault()

2009-04-20 Thread Ruwan Linton
I am just going through some samples again, it is just the setTo which
causes this issue, indeed options like FaultTo and other addressing stuff
has to be copied, but not sure.

Thanks,
Ruwan

On Mon, Apr 20, 2009 at 12:12 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Hi Ruwan,



 no problem. I can confirm your fix is solving the issue I had. Looking at
 your change one may consider renaming the cloneOptions() in the
 MessageHelper(), or? Now it is neither a deep copy nor a complete flat copy,
 or? You simply skip cloning all the addressing options. I think this should
 be at least reflected in the JavaDoc, although it might be better to change
 the method name as well.



 Regards,

Eric
   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Monday, April 20, 2009 7:25 AM
 *To:* dev@synapse.apache.org
 *Subject:* Re: Endless recursion in FaultHandler.handleFault()



 Eric I properly fixed this you may verify this, sorry for the trouble.

 Thanks,
 Ruwan

 On Sat, Apr 18, 2009 at 10:35 PM, Hubert, Eric eric.hub...@foxmobile.com
 wrote:

 Hi Andreas,

 thanks for quickly fixing this! I was working on a couple of small
 improvements and was very confused as this suddenly happened. I was not sure
 whether it was related to my changes or the svn up. ;-)

 Regards,
   Eric

  See SYNAPSE-525.
 
  Andreas




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Registering the handlers programatically

2009-04-20 Thread Ruwan Linton
I committed this change, was unable to test the WAR distribution. Even
though it has to work if some one can test this and let me know if there is
any issue, that would be very helpful.

Apart form that, since this is a fundamental change please let me know if
there is any issue... I ran most of the samples (but not all) including
security once which triggers the SynapseMustUnderstandHandler and so on, all
of which seems to be working fine.

Unregistering part of these handlers is also added to the appropriate
stopping flow...

So, Synapse is no more a module of axis2.

Thanks,
Ruwan

On Fri, Apr 10, 2009 at 6:47 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

   If you look at the way synapse operates, even though it seems like a
 module of axis2 it is really not, it just uses the axis2 handler
 architecture to leverage the other axis2 features while getting the message
 dispatched into synapse. So I propose to drop the module and
 programaticaly register theses handler after properly initializing the
 Synapse environment.

 WDYT?
 +1 – I think your explanation gets to the heart of it.




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: [VOTE] Eric Hubert as a committer

2009-04-20 Thread Ruwan Linton
+1

Thanks,
Ruwan

On Mon, Apr 20, 2009 at 3:24 PM, Asankha C. Perera asan...@apache.orgwrote:

 Hi All

 Eric has been supporting Synapse for a very long time now, and has been
 contributing by testing, documentation and most recently bug fixes and
 enhancements / new feature implementations as well. I can confidently say
 that the Synapse NIO transport is at a current stable state today because of
 many efforts by Eric in notifying them, and following them to completion
 sometimes publicly and sometimes off the lists.

 I think its a great time to invite him to be a committer of Apache Synapse
 in-time for the 1.3 release.

 Here is my +1 to make him  a committer

 cheers
 asankha


 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310201reporterSelect=specificuserreporter=ehubertsorter/field=issuekeysorter/order=DESC
 http://markmail.org/search/eric+hubert+synapse+from:%22Hubert%2C+Eric%22
 http://apache-synapse.blogspot.com/2008/11/synapseesb-clustering-guide.html

 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org

 http://esbmagic.blogspot.com




 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


[jira] Resolved: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-04-19 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-525.
--

Resolution: Fixed

Fixed on the trunk

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: Endless recursion in FaultHandler.handleFault()

2009-04-19 Thread Ruwan Linton
Eric I properly fixed this you may verify this, sorry for the trouble.

Thanks,
Ruwan

On Sat, Apr 18, 2009 at 10:35 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

 Hi Andreas,

 thanks for quickly fixing this! I was working on a couple of small
 improvements and was very confused as this suddenly happened. I was not sure
 whether it was related to my changes or the svn up. ;-)

 Regards,
   Eric

  See SYNAPSE-525.
 
  Andreas




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Endless recursion in FaultHandler.handleFault()

2009-04-19 Thread Ruwan Linton
 - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase soapmonitorPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase
 soapmonitorPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase soapmonitorPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase OperationOutPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase
 OperationOutPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase OperationOutPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase RMPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase RMPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase RMPhase

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase PolicyDetermination

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase
 PolicyDetermination

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase PolicyDetermination

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase MessageOut

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase MessageOut

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking Handler
 'AddressingOutHandler' in Phase 'MessageOut'

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase MessageOut

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking pre-condition for
 Phase Security

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Invoking phase Security

 [HttpClientWorker-7] DEBUG Phase - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] Checking post-conditions for
 phase Security

 [HttpClientWorker-7] DEBUG AddressingHelper - [MessageContext:
 logID=urn:uuid:EEC7CAA6BBD62D98F91240074679600] isReplyRedirected: ReplyTo
 is null. Returning false

 [HttpClientWorker-10] DEBUG SandeshaModule$1 - Unsetting
 USE_ASYNC_OPERATIONS and DISABLE_RESPONSE_ACK for unreliable message

 [HttpClientWorker-10] DEBUG SandeshaModule$1 - Entry:
 SandeshaModule::resolveTarget

 [HttpClientWorker-10] DEBUG SandeshaUtil - Entry:
 SandeshaUtil::isMessageUnreliable

 [HttpClientWorker-10] DEBUG SandeshaUtil - Exit:
 SandeshaUtil::isMessageUnreliable, false

 [HttpClientWorker-10] DEBUG SandeshaModule$1 - Exit:
 SandeshaModule::resolveTarget

 [HttpClientWorker-10] DEBUG OMNodeImpl - Builder is already complete.

 [HttpClientWorker-10] WARN  FaultHandler - ERROR_CODE : 101503
 ERROR_MESSAGE : Connection refused or failed for :
 pls-svc-2.uat.jamba.net:6003

 [HttpClientWorker-10] DEBUG AxisService - Get operation for anonOutInOp

 [...]



 Any ideas? Otherwise I will try to dig into this if I find the time.



 Regards,

Eric




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


[jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-04-18 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12700499#action_12700499
 ] 

Ruwan Linton commented on SYNAPSE-525:
--

Sorry, for not testing all the scenarios with this change I will fix this 
ASAP.

Thanks,
Ruwan

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Registering the handlers programatically

2009-04-08 Thread Ruwan Linton
Folks,

I just realized that because of the change in the Synapse startup, now we
are having an issue with the Synapse handlers being registered via the axis2
module. Here is the issue;

We now initializes Synapse and starts it through a different call than the
Module#init() method, which seems to be correct because for synapse to start
we need a properly initialized axis2 environment. Even though this is now
fixed, this actually doesn't fix the proper start order of the Synapse,
because now the handlers to intercept the messages and bring them into the
Synapse Environment is still registered in the axis2 handler chain before
the Synapse environment gets initialized. Even though this doesn't causes an
issue for the default setup (listeners will not be open till Synapse starts
properly) we are going to have issues when you try to start Synapse on an
already initialized axis2 environment.

If you look at the way synapse operates, even though it seems like a module
of axis2 it is really not, it just uses the axis2 handler architecture to
leverage the other axis2 features while getting the message dispatched into
synapse. So I propose to drop the module and programaticaly register theses
handler after properly initializing the Synapse environment.

WDYT?

Thanks,
Ruwan

-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-07 Thread Ruwan Linton
I've completed most of the implementation of the first cut... and waiting on
this fix [1] in axis2 to make it 100% accurate. :-)

Thanks,
Ruwan

[1] - https://issues.apache.org/jira/browse/AXIS2-4304

On Mon, Apr 6, 2009 at 10:18 PM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 I am in the process of implementing this

 I found a few issues and had to take a few decisions.

 Issues :- The existing approach doesn't prevent messages to be flowing into
 synapse before deploying proxies and so on, because the message interception
 handlers are attached through the module while the synapse initialization is
 handled out of the module initialization.

 I found it impossible to implement the listener manager initialization and
 startup to be different, even though I was planing to do so.

 Decisions :- Add the start and stop methods to the ManagedLifecycle
 No need of an post start method to the controller, but inside the
 controller.start, call the ManagedLifecycle.start()

 Will be able to commit the first cut soon.

 Thanks,
 Ruwan


 On Mon, Apr 6, 2009 at 9:39 AM, indika kumara indika.k...@gmail.comwrote:

 Ruwan

 I never said that suggested approach is bad. if you have confidence
 that approach will work , then it is good . Generally , a problem have
 many solutions. I just say what I like.
 You will go on your way. If it can achieve what we need , then it is a
 good solution.

 Thanks
 Indika

 On Sun, Apr 5, 2009 at 3:07 PM, Ruwan Linton ruwan.lin...@gmail.com
 wrote:
  Indika,
 
  If we are going for such a change it has to go into axis2 and I think it
 is
  late to get this to axis2 1.5, and I think this is much cleaner can
 you
  point any issue with this approach? Any reasoning to not to add a start
  method
 
  Thanks,
  Ruwan
 
  On Sun, Apr 5, 2009 at 12:24 PM, indika kumara indika.k...@gmail.com
  wrote:
 
  Runwan
 
  I personally like, if there are some fixes need to be done on
  transport layer, if it could be done.
 
  BTW, it is good if we can cope (by the implementation we are going to
  do) transparently with current and future behaviors of transports as
  synapse always operate top on that.
 
  Thanks
  Indika
 
  On Sun, Apr 5, 2009 at 11:33 AM, Ruwan Linton ruwan.lin...@gmail.com
  wrote:
   Indika,
  
   I think having a start method is much cleaner than this, because
  
   listener manager doesn't support adding the transport in the
 maintenance
   mode...
   if we try to start and then put the transport into the maintenance
 mode
   even
   then there is a time where the transports are exposed to the external
   users
   before synapse initialization
   Not all the transports support maintenance mode
  
   So I would go with the above proposed approach, which is much
 cleaner.
  
   Thanks,
   Ruwan
  
   On Sun, Apr 5, 2009 at 10:57 AM, indika kumara 
 indika.k...@gmail.com
   wrote:
  
   Hi All
  
   I am not sure but could we achieve following event sequence?
  
   Initializing….
  
   Initialized and start transport on graceful mode
   Create synapse configuration
   Create synapse environment
   Initialized synapse configuration
   Change the mode of listeners to fully active
  
   Shouting down …….
  
   Signal to change the mode of transport into graceful
   destroy synapse configuration and synapse environment
   Signal to completely destroy transport
  
   Could we achieve what we need with above order sequence of events?
 If
   it can, I feel we never want to change any API.
  
   Thanks
   Indika
  
  
 -
   To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
   For additional commands, e-mail: dev-h...@synapse.apache.org
  
  
  
  
   --
   Ruwan Linton
   Senior Software Engineer  Product Manager; WSO2 ESB;
   http://wso2.org/esb
   WSO2 Inc.; http://wso2.org
   email: ru...@wso2.com; cell: +94 77 341 3097
   blog: http://ruwansblog.blogspot.com
  
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  Senior Software Engineer  Product Manager; WSO2 ESB;
 http://wso2.org/esb
  WSO2 Inc.; http://wso2.org
  email: ru...@wso2.com; cell: +94 77 341 3097
  blog: http://ruwansblog.blogspot.com
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-07 Thread Ruwan Linton
committed the first cut and open for review :-)

Thanks,
Ruwan

On Tue, Apr 7, 2009 at 7:05 PM, Ruwan Linton ruwan.lin...@gmail.com wrote:

 I've completed most of the implementation of the first cut... and waiting
 on this fix [1] in axis2 to make it 100% accurate. :-)

 Thanks,
 Ruwan

 [1] - https://issues.apache.org/jira/browse/AXIS2-4304


 On Mon, Apr 6, 2009 at 10:18 PM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 I am in the process of implementing this

 I found a few issues and had to take a few decisions.

 Issues :- The existing approach doesn't prevent messages to be flowing
 into synapse before deploying proxies and so on, because the message
 interception handlers are attached through the module while the synapse
 initialization is handled out of the module initialization.

 I found it impossible to implement the listener manager initialization and
 startup to be different, even though I was planing to do so.

 Decisions :- Add the start and stop methods to the ManagedLifecycle
 No need of an post start method to the controller, but inside the
 controller.start, call the ManagedLifecycle.start()

 Will be able to commit the first cut soon.

 Thanks,
 Ruwan


 On Mon, Apr 6, 2009 at 9:39 AM, indika kumara indika.k...@gmail.comwrote:

 Ruwan

 I never said that suggested approach is bad. if you have confidence
 that approach will work , then it is good . Generally , a problem have
 many solutions. I just say what I like.
 You will go on your way. If it can achieve what we need , then it is a
 good solution.

 Thanks
 Indika

 On Sun, Apr 5, 2009 at 3:07 PM, Ruwan Linton ruwan.lin...@gmail.com
 wrote:
  Indika,
 
  If we are going for such a change it has to go into axis2 and I think
 it is
  late to get this to axis2 1.5, and I think this is much cleaner can
 you
  point any issue with this approach? Any reasoning to not to add a start
  method
 
  Thanks,
  Ruwan
 
  On Sun, Apr 5, 2009 at 12:24 PM, indika kumara indika.k...@gmail.com
  wrote:
 
  Runwan
 
  I personally like, if there are some fixes need to be done on
  transport layer, if it could be done.
 
  BTW, it is good if we can cope (by the implementation we are going to
  do) transparently with current and future behaviors of transports as
  synapse always operate top on that.
 
  Thanks
  Indika
 
  On Sun, Apr 5, 2009 at 11:33 AM, Ruwan Linton ruwan.lin...@gmail.com
 
  wrote:
   Indika,
  
   I think having a start method is much cleaner than this, because
  
   listener manager doesn't support adding the transport in the
 maintenance
   mode...
   if we try to start and then put the transport into the maintenance
 mode
   even
   then there is a time where the transports are exposed to the
 external
   users
   before synapse initialization
   Not all the transports support maintenance mode
  
   So I would go with the above proposed approach, which is much
 cleaner.
  
   Thanks,
   Ruwan
  
   On Sun, Apr 5, 2009 at 10:57 AM, indika kumara 
 indika.k...@gmail.com
   wrote:
  
   Hi All
  
   I am not sure but could we achieve following event sequence?
  
   Initializing….
  
   Initialized and start transport on graceful mode
   Create synapse configuration
   Create synapse environment
   Initialized synapse configuration
   Change the mode of listeners to fully active
  
   Shouting down …….
  
   Signal to change the mode of transport into graceful
   destroy synapse configuration and synapse environment
   Signal to completely destroy transport
  
   Could we achieve what we need with above order sequence of events?
 If
   it can, I feel we never want to change any API.
  
   Thanks
   Indika
  
  
 -
   To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
   For additional commands, e-mail: dev-h...@synapse.apache.org
  
  
  
  
   --
   Ruwan Linton
   Senior Software Engineer  Product Manager; WSO2 ESB;
   http://wso2.org/esb
   WSO2 Inc.; http://wso2.org
   email: ru...@wso2.com; cell: +94 77 341 3097
   blog: http://ruwansblog.blogspot.com
  
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  Senior Software Engineer  Product Manager; WSO2 ESB;
 http://wso2.org/esb
  WSO2 Inc.; http://wso2.org
  email: ru...@wso2.com; cell: +94 77 341 3097
  blog: http://ruwansblog.blogspot.com
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB

[jira] Resolved: (SYNAPSE-531) Clone the complete options object when coning the mesasge but not just the option properties

2009-04-06 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-531.
--

Resolution: Fixed

Fixed on the synapse trunk... now we copy the whole options object but not just 
the properties

 Clone the complete options object when coning the mesasge but not just the 
 option properties
 

 Key: SYNAPSE-531
 URL: https://issues.apache.org/jira/browse/SYNAPSE-531
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all envs
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment when we clone the message we just copy the properties map of 
 the client options, but the client options has various other parameters in 
 it, for example like the username and password to be used by the UT security 
 scenario
 Therefore these useful values will be lost on the synapse sending process and 
 UT like security scenarios will be failed, because we clone the message 
 before sending it out.
 The solution is to copy the full options object but not just the properties 
 of the options object.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: svn commit: r762222 - in /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse: core/axis2/Axis2FlexibleMEPClient.java util/MessageHelper.java

2009-04-06 Thread Ruwan Linton
 +clonedOptions.setListener(options.getListener());
 +clonedOptions.setTransportIn(options.getTransportIn());
 +
  clonedOptions.setTransportInProtocol(options.getTransportInProtocol());
 +clonedOptions.setTransportOut(clonedOptions.getTransportOut());
 +
 +// copy username and password options
 +clonedOptions.setUserName(options.getUserName());
 +clonedOptions.setPassword(options.getPassword());
 +
 +// cloen the property set of the current options object
 +for (Object o : options.getProperties().keySet()) {
 +String key = (String) o;
 +clonedOptions.setProperty(key, options.getProperty(key));
 +}
 +
 +return clonedOptions;
 +}
 +
 +/**
  * Removes Submission and Final WS-Addressing headers and return the
 SOAPEnvelope from the given
  * message context
  *





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-06 Thread Ruwan Linton
I am in the process of implementing this

I found a few issues and had to take a few decisions.

Issues :- The existing approach doesn't prevent messages to be flowing into
synapse before deploying proxies and so on, because the message interception
handlers are attached through the module while the synapse initialization is
handled out of the module initialization.

I found it impossible to implement the listener manager initialization and
startup to be different, even though I was planing to do so.

Decisions :- Add the start and stop methods to the ManagedLifecycle
No need of an post start method to the controller, but inside the
controller.start, call the ManagedLifecycle.start()

Will be able to commit the first cut soon.

Thanks,
Ruwan

On Mon, Apr 6, 2009 at 9:39 AM, indika kumara indika.k...@gmail.com wrote:

 Ruwan

 I never said that suggested approach is bad. if you have confidence
 that approach will work , then it is good . Generally , a problem have
 many solutions. I just say what I like.
 You will go on your way. If it can achieve what we need , then it is a
 good solution.

 Thanks
 Indika

 On Sun, Apr 5, 2009 at 3:07 PM, Ruwan Linton ruwan.lin...@gmail.com
 wrote:
  Indika,
 
  If we are going for such a change it has to go into axis2 and I think it
 is
  late to get this to axis2 1.5, and I think this is much cleaner can
 you
  point any issue with this approach? Any reasoning to not to add a start
  method
 
  Thanks,
  Ruwan
 
  On Sun, Apr 5, 2009 at 12:24 PM, indika kumara indika.k...@gmail.com
  wrote:
 
  Runwan
 
  I personally like, if there are some fixes need to be done on
  transport layer, if it could be done.
 
  BTW, it is good if we can cope (by the implementation we are going to
  do) transparently with current and future behaviors of transports as
  synapse always operate top on that.
 
  Thanks
  Indika
 
  On Sun, Apr 5, 2009 at 11:33 AM, Ruwan Linton ruwan.lin...@gmail.com
  wrote:
   Indika,
  
   I think having a start method is much cleaner than this, because
  
   listener manager doesn't support adding the transport in the
 maintenance
   mode...
   if we try to start and then put the transport into the maintenance
 mode
   even
   then there is a time where the transports are exposed to the external
   users
   before synapse initialization
   Not all the transports support maintenance mode
  
   So I would go with the above proposed approach, which is much cleaner.
  
   Thanks,
   Ruwan
  
   On Sun, Apr 5, 2009 at 10:57 AM, indika kumara indika.k...@gmail.com
 
   wrote:
  
   Hi All
  
   I am not sure but could we achieve following event sequence?
  
   Initializing….
  
   Initialized and start transport on graceful mode
   Create synapse configuration
   Create synapse environment
   Initialized synapse configuration
   Change the mode of listeners to fully active
  
   Shouting down …….
  
   Signal to change the mode of transport into graceful
   destroy synapse configuration and synapse environment
   Signal to completely destroy transport
  
   Could we achieve what we need with above order sequence of events? If
   it can, I feel we never want to change any API.
  
   Thanks
   Indika
  
   -
   To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
   For additional commands, e-mail: dev-h...@synapse.apache.org
  
  
  
  
   --
   Ruwan Linton
   Senior Software Engineer  Product Manager; WSO2 ESB;
   http://wso2.org/esb
   WSO2 Inc.; http://wso2.org
   email: ru...@wso2.com; cell: +94 77 341 3097
   blog: http://ruwansblog.blogspot.com
  
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  Senior Software Engineer  Product Manager; WSO2 ESB;
 http://wso2.org/esb
  WSO2 Inc.; http://wso2.org
  email: ru...@wso2.com; cell: +94 77 341 3097
  blog: http://ruwansblog.blogspot.com
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-05 Thread Ruwan Linton
Indika,

I think having a start method is much cleaner than this, because

   - listener manager doesn't support adding the transport in the
   maintenance mode...
   - if we try to start and then put the transport into the maintenance mode
   even then there is a time where the transports are exposed to the external
   users before synapse initialization
   - Not all the transports support maintenance mode

So I would go with the above proposed approach, which is much cleaner.

Thanks,
Ruwan

On Sun, Apr 5, 2009 at 10:57 AM, indika kumara indika.k...@gmail.comwrote:

 Hi All

 I am not sure but could we achieve following event sequence?

 Initializing….

 Initialized and start transport on graceful mode
 Create synapse configuration
 Create synapse environment
 Initialized synapse configuration
 Change the mode of listeners to fully active

 Shouting down …….

 Signal to change the mode of transport into graceful
 destroy synapse configuration and synapse environment
 Signal to completely destroy transport

 Could we achieve what we need with above order sequence of events? If
 it can, I feel we never want to change any API.

 Thanks
 Indika

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-04 Thread Ruwan Linton
 the ManagedLifecycle interface itself, but OK with going for a new
interface as well.



 What are other’s opinions? How shall we go on? Ruwan, would you do those
 changes on your own.

I would like to do this on my own, after gathering the feedback and I think
even now we are clear about certain things... so I will get started.

 If you would need some support, I could do this today. Today I have some
 hours I could spend. Tomorrow and next week doesn’t look too good on my
 side.

Eric, I think it is better to do this by one person, after the
implementation is completed I will let you all know for a review and for any
changes/improvements. I think that is the practical model for this sort of a
change. :-)

 Otherwise I will proceed with my work on the JMX stuff to remove some open
 issues as of the comments in the JIRA (the integration shouldn’t be done
 before the startup/shutdown has been changed though, I will then sync and
 update my patch accordingly) and a small patch regarding log output in the
 http transports. Looks like either way I will find enough useful stuff to
 help with today.

+1

Thanks,
Ruwan



 Regards,

Eric




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Synapse dependencies for 1.3

2009-04-04 Thread Ruwan Linton
On Sat, Apr 4, 2009 at 4:28 PM, Hiranya Jayathilaka hiranya...@gmail.comwrote:

 I believe slf4j is required only for the FIX transport. It is a MINA
 dependency which is used by Quickfix/J. If it is not used by anything else
 we should remove this.


Good point, Asankha, are we going to ship the QFJ jar files, I think we have
decided to remove these and document this under the fix transport
configuration for the user to put in these dependencies upon configuring it,
right??

Thanks,
Ruwan




 Thanks,
 Hiranya


 On Sat, Apr 4, 2009 at 1:17 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

   ./slf4j-log4j12-1.5.6.jar
 
  There is at least one dependency (I don't remember which one) that
  uses SLF4J as abstract logging framework. Since we use log4j as
  concrete implementation, we need the SLF4J-log4j bridge.
 It looks like there are more than one dependency, but the one Andreas is
 referring to could be qpid, but also mina seems too use sl4j as logging
 abstraction.
 Although I'm not sure we need to declare them directly in the transports
 as I don't think synapse will have direct code usage of neither API nor
 IMPL.

 Regards,
Eric





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Synapse dependencies for 1.3

2009-04-04 Thread Ruwan Linton
On Sat, Apr 4, 2009 at 5:44 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 On Sat, Apr 4, 2009 at 13:50, Ruwan Linton ruwan.lin...@gmail.com wrote:
 
 
  On Sat, Apr 4, 2009 at 4:28 PM, Hiranya Jayathilaka 
 hiranya...@gmail.com
  wrote:
 
  I believe slf4j is required only for the FIX transport. It is a MINA
  dependency which is used by Quickfix/J. If it is not used by anything
 else
  we should remove this.
 
  Good point, Asankha, are we going to ship the QFJ jar files, I think we
 have
  decided to remove these and document this under the fix transport
  configuration for the user to put in these dependencies upon configuring
 it,
  right??

 This JAR only takes 9 KB. I would just leave it in the distribution.
 The advantage is that whenever a user adds a library that uses the
 SLF4J framework, logging will correctly work out of the box without
 the need for the user to understand the relationship between log4j,
 SLF4J and commons-logging.


I am completely OK with keeping this, but not QuickFixJ and other related
dependencies, because FIX is a domain specific transport which wont be
required for many users.

Ruwan




 
  Thanks,
  Ruwan
 
 
  Thanks,
  Hiranya
 
  On Sat, Apr 4, 2009 at 1:17 PM, Hubert, Eric eric.hub...@foxmobile.com
 
  wrote:
 
./slf4j-log4j12-1.5.6.jar
  
   There is at least one dependency (I don't remember which one) that
   uses SLF4J as abstract logging framework. Since we use log4j as
   concrete implementation, we need the SLF4J-log4j bridge.
  It looks like there are more than one dependency, but the one Andreas
 is
  referring to could be qpid, but also mina seems too use sl4j as logging
  abstraction.
  Although I'm not sure we need to declare them directly in the
 transports
  as I don't think synapse will have direct code usage of neither API nor
  IMPL.
 
  Regards,
Eric
 
 
 
 
  --
  Ruwan Linton
  Senior Software Engineer  Product Manager; WSO2 ESB;
 http://wso2.org/esb
  WSO2 Inc.; http://wso2.org
  email: ru...@wso2.com; cell: +94 77 341 3097
  blog: http://ruwansblog.blogspot.com
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Synapse dependencies for 1.3

2009-04-04 Thread Ruwan Linton
  [1]
 
 http://people.apache.org/~veithen/synapse/deployment.html#Using_Maven_tohttp://people.apache.org/%7Eveithen/synapse/deployment.html#Using_Maven_to
 _b
  uild_a_custom_distribution
 Very good and valuable work Andreas. I had also a short glance on your
 transport's section. Thanks for taking the time! I'm sure a lot of users
 will be quite happy to see this.


++1, very nice work. Thanks Andreas for taking time on documenting these.

Ruwan




 Regards,
Eric


 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


[jira] Assigned: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-04-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-525:


Assignee: Ruwan Linton  (was: Asankha C. Perera)

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-04-04 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12695760#action_12695760
 ] 

Ruwan Linton commented on SYNAPSE-525:
--

Let me have a look at the sample 400, it shouldn't be affected because in 
splitting we assign them a new messageId anyway.

But I agree with the argument on messageId, but at the same time the proxy 
shouldn't change the addressing details by default, because lets say you want 
to bypass Synapse on the response, what you do is you send a message to synapse 
specifying the Reply-To as the client itself, in which case message id also has 
to be preserved for the correlation to work properly.

Anyway I will have a more deep look into this.

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: Custom mediator with the snapshot build

2009-04-04 Thread Ruwan Linton
On Sat, Apr 4, 2009 at 9:00 PM, Asankha C. Perera asan...@apache.orgwrote:

  Ruwan / Eric

 AFAIK, axis2 doesn't support this sort of a aliasing.

 That may be true with Axis2, but since the NIO transport is still under our
 control, we should be able to switch this internally special casing this..
 If someone raises a JIRA and no developers have objections, I think this
 would be something good to do


Asankha,

I am not sure I am in favor of this change it is going to be sort of a
hard coded redirection, which cannot be eliminated if we do at the transport
layer.  Well, if you implement this in a way that it can be configured via a
parameter in the transport configuration I don't have any objection so that
we can get rid of this redirection by commenting out that parameter, and we
can map this to any other value if required as well.

Thanks,
Ruwan




 cheers
 asankha

 On Sat, Apr 4, 2009 at 1:04 AM, Hubert, Eric eric.hub...@foxmobile.comwrote:


 Hi,

 although it is a quite trivial change from context name /soap to /services
 we have seen a couple of problems/irritated users, so I asked myself whether
 it wouldn't be easily possible to configure something in axis2.xml to use
 /soap as an alias for /services.
 This way we could document the change for 1.3 and declare /soap as
 deprecated and remove it with the next major release.



 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org
 http://esbmagic.blogspot.com





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Custom mediator with the snapshot build

2009-04-04 Thread Ruwan Linton
On Sat, Apr 4, 2009 at 10:58 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

The second option is to log a message by default if its sent to
 /soap/xxx on the console.. so that the user knows what went wrong..


 Of course +1 for this.

 I agree.. lets just do this now...

 This sounds to be the best option. What is send back to the client in case
 the context does not match? I’d assume currently nothing?


It gets dispatched for the message mediation basically goes to the main
sequence, a proper configuration should take care of sending faults inside
the main sequence within a filter.

May be we can improve the default main sequence to send a fault back to the
client if the request is not matching the current filter?

Thanks,
Ruwan

-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: svn commit: r682108 - /synapse/trunk/java/pom.xml

2009-04-04 Thread Ruwan Linton
I think it is better to ship the commons-cli by default and support the
production mode with command line arguments by default without needing to
add any jar files...

Is this achievable?

Thanks,
Ruwan

On Sun, Apr 5, 2009 at 11:02 AM, indika kumara indika.k...@gmail.comwrote:

 Hi Asankha

 Thanks for remembering . I had forgot this.

 Cipher tool need common-cli. I will add scripts and documents. If we
 don’t ship common cli, I will update document including downloading
 and using common cli.

 Thanks
 Indika

 On Fri, Apr 3, 2009 at 9:33 PM, Asankha C. Perera asan...@apache.org
 wrote:
  Indika
 
  Author: indika
  Date: Sat Aug  2 23:44:35 2008
  New Revision: 682108
 
  URL: http://svn.apache.org/viewvc?rev=682108view=rev
  Log:
  add commons-cli , this is needed for cipertool and this jar will not be
  included in the binary distribution
 
  Can you document the use of the ciphertool and its use? Also, commons-cli
 is
  now being included into the binary distribution. Does the above comment
 mean
  that we can exclude it? If so how does one run the cipher tool? I do not
 see
  new scripts etc either.. can you enlighten us?
 
  thanks
  asankha
 
  Modified:
 synapse/trunk/java/pom.xml
 
  Modified: synapse/trunk/java/pom.xml
  URL:
 
 http://svn.apache.org/viewvc/synapse/trunk/java/pom.xml?rev=682108r1=682107r2=682108view=diff
 
 
 ==
  --- synapse/trunk/java/pom.xml (original)
  +++ synapse/trunk/java/pom.xml Sat Aug  2 23:44:35 2008
  @@ -1030,6 +1030,13 @@
  version${saxon.version}/version
  /dependency
   +!--commons-cli --
  +dependency
  +groupIdcommons-cli/groupId
  +artifactIdcommons-cli/artifactId
  +version${commons-cli.version}/version
  +/dependency
  +
  /dependencies
   +commons-cli.version1.0/commons-cli.version
 
 
  --
  Asankha C. Perera
  AdroitLogic, http://adroitlogic.org
 
  http://esbmagic.blogspot.com
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Dependency Management with Synapse

2009-04-03 Thread Ruwan Linton
I think this is really important, even though I am not sure about how we are
going to do the dependency resolution at the startup.

One other scenario is that the resource deletion. For the moment, you can
delete any of the resource from the SynapseConfiguration through the synapse
API. Upon deleting these resource (for example sequences or endpoints) we do
not check whether there is a live reference to that particular resource or
not. In WSO2 ESB we allow the users to manage the configuration at runtime
and this is an important requirement for us to handle on the synapse layer.

I propose that we improve the delete methods of the Synapse Configuration in
a way that we can pass a boolean value to the delete method which specifies
whether you want to cascade delete the entries if there are live references
to this entry or to not to delete if there are references.

Further, we should be able to see the references for a particular resource
in the synapse configuration.

Saliya, please create a JIRA issue for this if there are no issues already
there in the JIRA for this.

Thanks,
Ruwan

On Fri, Apr 3, 2009 at 6:32 PM, Saliya Ekanayake sal...@wso2.com wrote:

 Hi,

 At present Synapse may fail due to dangling references. As an example
 consider a proxy service which refers to a sequence. If the sequence
 definition is not there it will be a dangling reference and Synapse will
 fail to mediate properly.

 The following items are the possible items on which others may depend.
 1. sequences
 2. endpoints
 3. local entries
 4. resources in the registry (remote)

 A way to overcome the issue is to resolve dependencies at startup. This,
 however, has an issue since we cannot distinguish between references for
 local entries and for registry. If we force the user to have all the
 referring items either in local entries or in registry prior to start
 Synapse, then we can clearly identify missing resources. Anyway if the user
 removes a used resource from registry then again Synapse will not be able to
 handle it. Therefore, IMHO it will be good to omit the dependency management
 on registry resources.

 Resolving the remaining dependencies can be achieved by having a list of
 dependents in each of the 1 - 3 elements. This list can be populated at
 start time, of course an additional step is necessary to do this.

 So I would like to know what you folks think about this approach.

 Thanks,
 Saliya



 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Dependency Management with Synapse

2009-04-03 Thread Ruwan Linton
Also the delete method should return a boolean specifying whether the
deletion is successful or not because with this approach there is an
instance where the resource is not going to be deleted even though we call
delete.

Thanks,
Ruwan

On Fri, Apr 3, 2009 at 9:34 PM, Ruwan Linton ruwan.lin...@gmail.com wrote:

 I think this is really important, even though I am not sure about how we
 are going to do the dependency resolution at the startup.

 One other scenario is that the resource deletion. For the moment, you can
 delete any of the resource from the SynapseConfiguration through the synapse
 API. Upon deleting these resource (for example sequences or endpoints) we do
 not check whether there is a live reference to that particular resource or
 not. In WSO2 ESB we allow the users to manage the configuration at runtime
 and this is an important requirement for us to handle on the synapse layer.

 I propose that we improve the delete methods of the Synapse Configuration
 in a way that we can pass a boolean value to the delete method which
 specifies whether you want to cascade delete the entries if there are live
 references to this entry or to not to delete if there are references.

 Further, we should be able to see the references for a particular resource
 in the synapse configuration.

 Saliya, please create a JIRA issue for this if there are no issues already
 there in the JIRA for this.

 Thanks,
 Ruwan


 On Fri, Apr 3, 2009 at 6:32 PM, Saliya Ekanayake sal...@wso2.com wrote:

 Hi,

 At present Synapse may fail due to dangling references. As an example
 consider a proxy service which refers to a sequence. If the sequence
 definition is not there it will be a dangling reference and Synapse will
 fail to mediate properly.

 The following items are the possible items on which others may depend.
 1. sequences
 2. endpoints
 3. local entries
 4. resources in the registry (remote)

 A way to overcome the issue is to resolve dependencies at startup. This,
 however, has an issue since we cannot distinguish between references for
 local entries and for registry. If we force the user to have all the
 referring items either in local entries or in registry prior to start
 Synapse, then we can clearly identify missing resources. Anyway if the user
 removes a used resource from registry then again Synapse will not be able to
 handle it. Therefore, IMHO it will be good to omit the dependency management
 on registry resources.

 Resolving the remaining dependencies can be achieved by having a list of
 dependents in each of the 1 - 3 elements. This list can be populated at
 start time, of course an additional step is necessary to do this.

 So I would like to know what you folks think about this approach.

 Thanks,
 Saliya



 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-02 Thread Ruwan Linton
Yes, I fixed the handler module but what I am referring is the normal
synapse behavior, not the handler module.

For the message mediation case I think we shouldn't restrict the transports.

Thanks,
Ruwan

On Thu, Apr 2, 2009 at 8:58 AM, indika kumara indika.k...@gmail.com wrote:

 Hi Runwan

 HTTP and HTTPS for synapse  message mediation (_SynapseService)
 setting was there in the previous code (Proxy service only had the per
 service transports ) . I actually only did refractor - cut and paste
 and change only organization.   Synapse as Handler module can be
 deployed without much effort... may three , four line 

 Thanks
 Indika

 On Thu, Apr 2, 2009 at 7:29 AM, Ruwan Linton ruwan.lin...@gmail.com
 wrote:
  I went through the new synapse startup logic and it seems OK but this
 makes
  the following concrete changes to the synapse architecture
 
  Synapse can no longer be deployed just as a pure module in axis2, it
  requires much more work.
  The message mediation is restricted to HTTP and HTTPS, which I am not
 sure
  whether we want to keep it as it is.
 
  But still this new logic even doesn't address the original problem in the
  discussion. In the new logic transport listeners starts even before the
  mediators getting loaded into synapse.
 
  I think we need to improve this, and to me Eric's point is completely a
  valid point. I will further look into resolving this and will keep the
 list
  posted.
 
  Thanks,
  Ruwan
 
  On Tue, Mar 31, 2009 at 3:53 PM, Supun Kamburugamuva supu...@gmail.com
  wrote:
 
  Hi Indika,
 
  On Tue, Mar 31, 2009 at 10:02 AM, indika kumara indika.k...@gmail.com
  wrote:
 
  If the synapse is run top on axis2 or any other, it should be properly
  initialized and started before initialize synapse.
 
 
  We are talking about two things here. Initialization and startup. I
 agree
  synapse should inilialize after axis2. Also Synapse should start after
  Axis2. But at the moment it seems that Synapse is starting even before
 it
  initializes. The way Synapse is written it is perfectly normal to assume
  that it is started when Axis2 is started. But if we do it in the current
  way, this assumption is broken and can lead to failures as Eric said. If
  Axis2 is initialize properly we can initialize Synapse. As Eric said if
 both
  are successfully initialized we can start Axis2 transports, which
  automatically starts Synapse.
 
  Thanks,
  Supun.
 
 
 
  It is a well known
  semantic that system should be in consistent state before use it. You
  can refer [1] and it says why I did.
 
 
 
 
 
  The way message get in to synapse and mediation engine (main behavior)
  are two different aspects and definitely should have two different
  decision designs as it is wrong if main behavior depend on other
  behavior.  The starting, shutdown --- simply state (consistent)
  management of mediation should not depend any thing.   Axis2 Hander is
  make way to get message into in to synapse and for good design,
  mediation engine should separate from this design decision. Managing
  mediation engine should be independent from axis2 or any other.
 
  If it is needed to avoid effect of started listeners if the synapse
  mediation engine started up is failed, then only applicable
  transaction semantic is compensation transaction. In order to enforce
  that, it is needed to properly shutdown listeners, etc --- some how
  need to move into a consistent state before system startup.
 
  [1] http://www.mail-archive.com/dev@synapse.apache.org/msg02688.html
 
  Thanks
  Indika
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Software Engineer, WSO2 Inc
  http://wso2.org
  supunk.blogspot.com
 
 
 
 
 
  --
  Ruwan Linton
  Senior Software Engineer  Product Manager; WSO2 ESB;
 http://wso2.org/esb
  WSO2 Inc.; http://wso2.org
  email: ru...@wso2.com; cell: +94 77 341 3097
  blog: http://ruwansblog.blogspot.com
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: startup order - correct place to start transport listeners

2009-04-02 Thread Ruwan Linton
Well, we had two operation models called proxy service mediation and message
mediation. In the earlier case message is going to be dispatched to the
respective proxy service where as in the later case message will be directed
to the main sequence. Now the message mediation operational model is only
available for the HTTP/S

From my POV this is conceptually wrong with the initial design of synapse.
Do we want to drop in the message mediation.

Thanks,
Ruwan

On Thu, Apr 2, 2009 at 1:35 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 I guess the HTTP(S) restriction is there for the case where Synapse is
 used as an HTTP proxy. I don't see how we would get a similar behavior
 with any other transport, so this actually looks right (but should be
 better documented in the code).

 Andreas

 On Thu, Apr 2, 2009 at 07:59, Ruwan Linton ruwan.lin...@gmail.com wrote:
  Yes, I fixed the handler module but what I am referring is the normal
  synapse behavior, not the handler module.
 
  For the message mediation case I think we shouldn't restrict the
 transports.
 
  Thanks,
  Ruwan
 
  On Thu, Apr 2, 2009 at 8:58 AM, indika kumara indika.k...@gmail.com
 wrote:
 
  Hi Runwan
 
  HTTP and HTTPS for synapse  message mediation (_SynapseService)
  setting was there in the previous code (Proxy service only had the per
  service transports ) . I actually only did refractor - cut and paste
  and change only organization.   Synapse as Handler module can be
  deployed without much effort... may three , four line 
 
  Thanks
  Indika
 
  On Thu, Apr 2, 2009 at 7:29 AM, Ruwan Linton ruwan.lin...@gmail.com
  wrote:
   I went through the new synapse startup logic and it seems OK but this
   makes
   the following concrete changes to the synapse architecture
  
   Synapse can no longer be deployed just as a pure module in axis2, it
   requires much more work.
   The message mediation is restricted to HTTP and HTTPS, which I am not
   sure
   whether we want to keep it as it is.
  
   But still this new logic even doesn't address the original problem in
   the
   discussion. In the new logic transport listeners starts even before
 the
   mediators getting loaded into synapse.
  
   I think we need to improve this, and to me Eric's point is completely
 a
   valid point. I will further look into resolving this and will keep the
   list
   posted.
  
   Thanks,
   Ruwan
  
   On Tue, Mar 31, 2009 at 3:53 PM, Supun Kamburugamuva 
 supu...@gmail.com
   wrote:
  
   Hi Indika,
  
   On Tue, Mar 31, 2009 at 10:02 AM, indika kumara 
 indika.k...@gmail.com
   wrote:
  
   If the synapse is run top on axis2 or any other, it should be
 properly
   initialized and started before initialize synapse.
  
  
   We are talking about two things here. Initialization and startup. I
   agree
   synapse should inilialize after axis2. Also Synapse should start
 after
   Axis2. But at the moment it seems that Synapse is starting even
 before
   it
   initializes. The way Synapse is written it is perfectly normal to
   assume
   that it is started when Axis2 is started. But if we do it in the
   current
   way, this assumption is broken and can lead to failures as Eric said.
   If
   Axis2 is initialize properly we can initialize Synapse. As Eric said
 if
   both
   are successfully initialized we can start Axis2 transports, which
   automatically starts Synapse.
  
   Thanks,
   Supun.
  
  
  
   It is a well known
   semantic that system should be in consistent state before use it.
 You
   can refer [1] and it says why I did.
  
  
  
  
  
   The way message get in to synapse and mediation engine (main
 behavior)
   are two different aspects and definitely should have two different
   decision designs as it is wrong if main behavior depend on other
   behavior.  The starting, shutdown --- simply state (consistent)
   management of mediation should not depend any thing.   Axis2 Hander
 is
   make way to get message into in to synapse and for good design,
   mediation engine should separate from this design decision. Managing
   mediation engine should be independent from axis2 or any other.
  
   If it is needed to avoid effect of started listeners if the synapse
   mediation engine started up is failed, then only applicable
   transaction semantic is compensation transaction. In order to
 enforce
   that, it is needed to properly shutdown listeners, etc --- some how
   need to move into a consistent state before system startup.
  
   [1]
 http://www.mail-archive.com/dev@synapse.apache.org/msg02688.html
  
   Thanks
   Indika
  
  
 -
   To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
   For additional commands, e-mail: dev-h...@synapse.apache.org
  
  
  
  
   --
   Software Engineer, WSO2 Inc
   http://wso2.org
   supunk.blogspot.com
  
  
  
  
  
   --
   Ruwan Linton
   Senior Software Engineer  Product Manager; WSO2 ESB;
   http://wso2.org/esb
   WSO2

Re: startup order - correct place to start transport listeners

2009-04-02 Thread Ruwan Linton
On Thu, Apr 2, 2009 at 7:07 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Makes perfectly sense Ruwan, and I did think about it as a seconds step
 as well! Just wanted to mention it, as from a user’s perspective the same
 problems which may arise at startup can also arise at shutdown. And once
 something is fresh in memory, those changes are easier to perform. Thanks
 for taking the time for improving this.

 Once you are done, I’m of course willing to do a review.

+1

Ruwan



 Thanks,

Eric




   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Thursday, April 02, 2009 2:51 PM

 *To:* dev@synapse.apache.org
 *Subject:* Re: startup order - correct place to start transport listeners



 Eric,

 I agree with the comments and I will be looking into the start order first
 to address your issue, and then I will change the stop process in a way that
 it does exactly the opposite. If we change it now and had to change it after
 fixing the start order that is going to be a double work for the stop
 process.

 Thanks,
 Ruwan

 On Thu, Apr 2, 2009 at 2:17 PM, Hubert, Eric eric.hub...@foxmobile.com
 wrote:

 Hi Ruwan,



 thanks for taking the time to review the startup/shutdown logic
 implemented. In terms of structure and readability I also widely liked the
 changes. I have only those real world usage’s concerns. So if you are
 already at it could you please also look at the shutdown process!

 In most situations the correct shutdown order is exactly the opposite of
 the startup order. And honestly, this is what I also would expect here.



 Specifically please have a look at ServerManager.doStart() versus
 ServerManager.doStop()!



 Start:

 Create Synapse Configuration

 Create Synapse Environment



 Stop:

 Destroy Synapse Configuration

 Destroy Synapse Environment

 Destroy ß  only here listeners will be stopped (in the mean time the
 instance keeps accepting requests which can’t be processed as everything
 else has already been stopped/deactivated)



 To me this looks wrong.



 Regards,

Eric


   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Thursday, April 02, 2009 3:59 AM


 *To:* dev@synapse.apache.org
 *Subject:* Re: startup order - correct place to start transport listeners



 I went through the new synapse startup logic and it seems OK but this makes
 the following concrete changes to the synapse architecture

- Synapse can no longer be deployed just as a pure module in axis2, it
requires much more work.
- The message mediation is restricted to HTTP and HTTPS, which I am not
sure whether we want to keep it as it is.

 But still this new logic even doesn't address the original problem in the
 discussion. In the new logic transport listeners starts even before the
 mediators getting loaded into synapse.

 I think we need to improve this, and to me Eric's point is completely a
 valid point. I will further look into resolving this and will keep the list
 posted.




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


[jira] Created: (SYNAPSE-529) Improve the error messages in the ClientHandler

2009-03-30 Thread Ruwan Linton (JIRA)
Improve the error messages in the ClientHandler
---

 Key: SYNAPSE-529
 URL: https://issues.apache.org/jira/browse/SYNAPSE-529
 Project: Synapse
  Issue Type: Improvement
  Components: Transports
Affects Versions: 1.2
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


Improve the error messages in the ClientHandler in away that the log message is 
descriptive enough to find the information about the failing service or host.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: startup order - correct place to start transport listeners

2009-03-30 Thread Ruwan Linton
Eric,

On Sun, Mar 29, 2009 at 3:05 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

 Hi all,

 hmm, I quickly tried to change the order and it seems to work without
 problems.

  This is a side effect of the historical and now burned-in dependency on
  Axis2.. In Synapse, the startup script actually starts Axis2, and then
  again gets triggered on the startup of Axis2, for the actual Synapse
  initialization

 Are you sure this is still the case? I noticed Axis2 is calling init() of
 class SynapseInitializationModule.
 But recently the implementation of this method has been completely removed
 (change by Indika on 02.03.2009). Now Synapse seems to initialize more
 independently of Axis2. I could be wrong, as I still don't know the code
 very well.


I just had a look at the changes and realized that this change completely
turned the synapse startup and the architecture upside down. Indika, this
will break the Synapse handler module as well. In other words now synapse is
not initializing as a module of axis2 which I think is wrong and might cause
issues. What was the requirement for this sort of a change?

Ruwan.




  I do not think this would be possible.. but please feel free to explore
  any possibilities
 I just tried it out and it looks like working. I would post a patch for
 review, but unfortunately my working file of Axis2SynapseController.java
 also contains my changes for
 https://issues.apache.org/jira/browse/SYNAPSE-526

 So I would first need to get a clean copy from the repo and merge only
 those changes to provide a useful diff to illustrate the changes.

 Regards,
Eric




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Message responses not working on the trunk

2009-03-27 Thread Ruwan Linton
Working on it

Thanks,
Ruwan

On Fri, Mar 27, 2009 at 11:21 AM, Charith Wickramarachchi 
charith.dhanus...@gmail.com wrote:

 I m getting the Same error here.



 On Fri, Mar 27, 2009 at 11:16 AM, Asanka Abeysinghe asan...@wso2.comwrote:

 Hi,
 I can see few problems in the trunk while testing the eventing changes
 that I'm working on. To verify it as a common problem I ran the sample 150
 and got the same issue. It seems the response messages are not working.

 Behavior is request sends to the target endpoint successfully but the
 client time outs.

 Synapse Console dose not show any exceptions other than the following
 warnings.
 Thx
 - Asanka


 2009-03-27 11:14:14,475 [-] [http-Sender I/O dispatcher-1] DEBUG
 ClientHandler HTTP connection [localhost/127.0.0.1:9000]: Input ready
 [Request Message ID :
 urn:uuid:510F7A9D738F4B943C1238132654425735001-5080259]
 2009-03-27 11:14:14,477 [-] [http-Sender I/O dispatcher-1] DEBUG
 ConnectionPool Released a connection to host: localhost on port : 9000 to
 the connection pool of current size : 1
 2009-03-27 11:14:14,478 [-] [http-Sender I/O dispatcher-1] DEBUG
 ClientHandler HTTP connection [localhost/127.0.0.1:9000]: Content decoder
 [chunk-coded; completed: true]
 2009-03-27 11:14:14,478 [-] [HttpClientWorker-1] DEBUG
 SynapseCallbackReceiver Callback removed for request message id :
 urn:uuid:FA45486E9EF364E2CA1238132653989. Pending callbacks count : 1
 2009-03-27 11:14:14,478 [-] [HttpClientWorker-1]  WARN
 SynapseCallbackReceiver Synapse received a response for the request with
 message Id : urn:uuid:FA45486E9EF364E2CA1238132653989 But a callback is not
 registered (anymore) to process this response
 2009-03-27 11:14:44,336 [-] [http-Listener I/O dispatcher-1] DEBUG
 ServerHandler HTTP connection [closed]: Closed



 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Charith Dhanushka Wickramarachchi
 http://charithwiki.blogspot.com/




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


[jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-03-27 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12690142#action_12690142
 ] 

Ruwan Linton commented on SYNAPSE-525:
--

Asankha, this fixes only one path and at the same time it uses the 
PRESERVE_ADDRESSING property can't we fix this in the way that you fixed it 
earlier.

Thanks,
Ruwan

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Asankha C. Perera
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-03-26 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12689524#action_12689524
 ] 

Ruwan Linton commented on SYNAPSE-525:
--

Well, I think this is exactly what I wanted to fix :-) I will test my 
scenario and let you know.

Thanks,
Ruwan

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-525) Option to preserve addressing headers should be available

2009-03-26 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12689529#action_12689529
 ] 

Ruwan Linton commented on SYNAPSE-525:
--

This is what I wanted and actually I was about to propose to handle the 
addressing case in the same way as the security case, so this fixes the issue 
on the out going message but the response will also have to be fixed I will 
look into that.

Thanks,
Ruwan

 Option to preserve addressing headers should be available
 -

 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 For the moment Synapse replaces all the addressing headers when sending the 
 message out to the routed service, but there can be case where the mediation 
 configuration should preserve the addressing headers. For example like 
 wsa:Reply-To
 So this requires a switch to configure the send mediator to not to alter 
 addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Created: (SYNAPSE-525) Option to reserve addressing headers should be available

2009-03-24 Thread Ruwan Linton (JIRA)
Option to reserve addressing headers should be available


 Key: SYNAPSE-525
 URL: https://issues.apache.org/jira/browse/SYNAPSE-525
 Project: Synapse
  Issue Type: Bug
  Components: Core
Affects Versions: 1.2
 Environment: all env
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


For the moment Synapse replaces all the addressing headers when sending the 
message out to the routed service, but there can be case where the mediation 
configuration should preserve the addressing headers. For example like 
wsa:Reply-To

So this requires a switch to configure the send mediator to not to alter 
addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: [jira] Resolved: (SYNAPSE-521) Send Synapse generated Hessian faults with HTTP status 200

2009-03-22 Thread Ruwan Linton
Well, even earlier we should have removed it, with th introduction of the
HTTP_SC property to the message. but we kept that for the backward
compatibility...

Don't we need to keep this as deprecated for this release?

Thanks,
Ruwan

On Sat, Mar 21, 2009 at 1:30 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

 Hi,

 It seems like we have a Jira downtime so I answer directly on the list.

  Asankha C. Perera resolved SYNAPSE-521.
  ---
 
  Resolution: Fixed
Assignee: Asankha C. Perera
 
  Thanks Eric for the fix. I just removed an unused constant HTTP_SC_OK
  from the NhttpConstants

 Asankha, thanks for reviewing and committing and sorry about forgetting to
 remove the now unused constant. This has been a remaining of the alternative
 solution using the FaultMediator to set the HTTP 200 status code.
 With the latest approach it was possible to use the int constants of
 HttpStatus directly.

 Regards,
Eric




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: [jira] Resolved: (SYNAPSE-521) Send Synapse generated Hessian faults with HTTP status 200

2009-03-22 Thread Ruwan Linton
Well, what I meant is the complete functionality. i.e. if HTTP_SC_OK is
set tot true write the 200 OK as the status code. People might be using this
in their configurations.

I am OK with just removing it though... :-)

Thanks,
Ruwan

On Sun, Mar 22, 2009 at 9:01 PM, Asankha C. Perera asan...@apache.orgwrote:

 Hi Ruwan

 Well, even earlier we should have removed it, with th introduction of the
 HTTP_SC property to the message. but we kept that for the backward
 compatibility...

 Don't we need to keep this as deprecated for this release?

 This is just the constant declaration in the file that was removed..
 Personally I do not think this is serious enough to keep for backward
 compatibility in this case.

 cheers
 asankha

 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org

 http://esbmagic.blogspot.com






 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: SMS transport for axis2

2009-03-18 Thread Ruwan Linton
This will be important to synapse as well. For example in the case of
alerting and notifications it will be very important to have a SMS
transport.

+1

Thanks,
Ruwan

On Wed, Mar 18, 2009 at 1:59 PM, Charith Wickramarachchi 
charith.dhanus...@gmail.com wrote:

 Hi,

 I m planing to write a SMS transport for axis2 as My GSoC project.From that
 users will be able to invoke web services using a SMSs and also axis2 will
 be able to send SMS massages to the clients.

 As a first phase i m thinking of giving support to Simple sms's to invoke
 services (Eg: by providing service name and paramters (like in Rest))
 And also in the Sender side making it enable to Send simple text responces

 And as a Sesond phase i will try to handle binery attatchments and SOAP
 content comming with a SMS.(Since now there may insidences that javaME
 mobile clients may able to send recieve SOAP and binery attachments using
 SMSs).

 I'm thinking of get the support of SMSLib http://smslib.org/ or 
 jsmpphttp://code.google.com/p/jsmpp/libries to implement this feature(Both 
 projects have Apache License)
 If you think this is a good project idea.I would like to submit a project
 proposal.and implement this feature.

 your ideas and comments are welcome.

 thank you,
 --
 Charith Dhanushka Wickramarachchi
 http://charithwiki.blogspot.com/




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Creating HessianFaults using FaultMediator/HessianMessageFormatter

2009-03-16 Thread Ruwan Linton
+1

Thanks,
Rwuan

On Mon, Mar 16, 2009 at 12:22 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Yes, this has been exactly the direction I was looking for. I guess
 Asankha made just a typo in the name of the suggested property and wanted to
 use FAULTS_AS_HTTP200 as 500 would be the current default. Then the rest of
 the sentence setting it to true in the HessianMessageBuilder would still
 apply. ;-)



 If nobody objects or has better ideas, I’ll go ahead and propose a patch
 following Asankha’s suggestion.



 Regards,

   Eric




   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Monday, March 16, 2009 4:27 AM
 *To:* dev@synapse.apache.org
 *Subject:* Re: Creating HessianFaults using
 FaultMediator/HessianMessageFormatter



 I think all last three suggestions will work nicely to solve this issue,
 but I think asankha's solution seems quite handy in this case as well as in
 most of the other POX cases (it is a generic solution).


 I think HessianBuilder should set the value to false in the asankha's
 suggestion, because hessian messages want them to be to 200 rather than 500.
 :-)

 Thanks,
 Ruwan

 On Mon, Mar 16, 2009 at 6:59 AM, Asankha C. Perera asan...@apache.org
 wrote:

 Hi all

  Yes, I think the overhead in the FaultMediator is rather low. It already
 handles a lot of other application protocol specific stuff. The only thing
 which is not nice is that the way to detect the Hessian message is making
 assumptions on the transport used (content-type of http transport header as
 a decision criteria). But there are obviously other alternatives to
 implement the isHessianMessage() method (e.g. letting the builder write an
 info about the application protocol used in a defined place within the
 message context or even something smarter?).

 Yes, there are limitations regarding message transformations changing the
 application protocol, this is true. On the other side this would be a
 relatively hard job. Either reimplementing the whole protocol or integrating
 a Hessian library (many library versions are incompatible amongst each
 other). Once we really do this, the effort to change a few lines in the
 FaultMediator can be neglected.

  Considering all that has been brought up in this thread and the above in
 particular, what if we define a new Synapse property say 'FAULTS_AS_HTTP500'
 - and the Hessian builders would set this property to True. This way the
 fault mediator is not Hessian specific.

 When the fault mediator is invoked later, it would check this property and
 perform the logic given in Eric's patch. I believe many POX messages would
 also benefit from this - where many fault messages would actually go on the
 wire as HTTP 200's..

 cheers
 asankha

  --

 Asankha C. Perera

 AdroitLogic, http://adroitlogic.org



 http://esbmagic.blogspot.com










 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Creating HessianFaults using FaultMediator/HessianMessageFormatter

2009-03-15 Thread Ruwan Linton
Hi all,

Using the formatter to do this is impossible because at the time formatter
is getting called the HTTP status code has already been written to the
transport.

I don't think we need an axis2 module to do this, it is just setting a
property on the axis2 message context and we should not be adding another
handler into the axis2 handler chain to do this. I would improve the Fault
mediator to be aware about hessian than going for a new module, but there
might be a few cases, which will fail by doing that for example if you want
to do a protocol transformation from hessian any other. (though this is not
possible for the moment because the hessian message builder keeps the binary
message as it is and is not going to build the message).

Thanks,
Ruwan

On Mon, Mar 16, 2009 at 1:31 AM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 On Sun, Mar 15, 2009 at 20:36, Hubert, Eric eric.hub...@foxmobile.com
 wrote:
  For two reasons:
 
  1. Message formatters should be protocol independent (even if they
  have access to the full MessageContext).
 
  This is currently not the case. Whereas the rest of Synapse is totally
  unaware of any Hessian specifics, the Hessian Builder/Formatter pair is
  actually the protocol dependent implementation. It is only used for
  Hessian Messages and has to be configured (activated) in axis2.xml for
  the specific content type.

 My statement was not precise enough. What I wanted to say is that
 message formatters should be _transport_ protocol independent. On the
 other hand, as you point out, they implement a specific _application_
 protocol. BTW, is Hessian used on other transport protocols, such as
 JMS?

  2. Probably when the message formatter is invoked, it is already too
  late to set the HTTP status code.
  Excactly! Thats the definite reason. The whole http headers are already
  written when it comes to the formatter.
 
  See HttpCoreNIOSender.sendAsyncResponse():
 
  worker.getServiceHandler().commitResponse(worker.getConn(), response);
  // ...
  OutputStream out = worker.getOutputStream();
  //..
  messageFormatter.writeTo(msgContext, format, out, false);
 
  Regards,
   Eric
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Creating HessianFaults using FaultMediator/HessianMessageFormatter

2009-03-15 Thread Ruwan Linton
Hi Eric,

Find my comments inline;

On Mon, Mar 16, 2009 at 3:00 AM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Yes, I think the overhead in the FaultMediator is rather low. It already
 handles a lot of other application protocol specific stuff. The only thing
 which is not nice is that the way to detect the Hessian message is making
 assumptions on the transport used (content-type of http transport header as
 a decision criteria). But there are obviously other alternatives to
 implement the isHessianMessage() method (e.g. letting the builder write an
 info about the application protocol used in a defined place within the
 message context or even something smarter?).

Yes, we can set a property in to the axis2 message context at the builder
and implement a helper method to check whether the current message is a
hessian message, by checking that particular property set by the builder. So
we can let this helper reside on the extensions utils method so that the
logic is decoupled to some extent.

 Yes, there are limitations regarding message transformations changing the
 application protocol, this is true. On the other side this would be a
 relatively hard job. Either reimplementing the whole protocol or integrating
 a Hessian library (many library versions are incompatible amongst each
 other). Once we really do this, the effort to change a few lines in the
 FaultMediator can be neglected.

With the above change, I think I am +1 for letting the FaultMediator handle
this scenario. :-)

Thanks,
Ruwan



 Regards,

   Eric
   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Sunday, March 15, 2009 9:43 PM
 *To:* dev@synapse.apache.org
 *Subject:* Re: Creating HessianFaults using
 FaultMediator/HessianMessageFormatter



 Hi all,


 Using the formatter to do this is impossible because at the time formatter
 is getting called the HTTP status code has already been written to the
 transport.

 I don't think we need an axis2 module to do this, it is just setting a
 property on the axis2 message context and we should not be adding another
 handler into the axis2 handler chain to do this. I would improve the Fault
 mediator to be aware about hessian than going for a new module, but there
 might be a few cases, which will fail by doing that for example if you want
 to do a protocol transformation from hessian any other. (though this is not
 possible for the moment because the hessian message builder keeps the binary
 message as it is and is not going to build the message).

 Thanks,
 Ruwan

 On Mon, Mar 16, 2009 at 1:31 AM, Andreas Veithen 
 andreas.veit...@gmail.com wrote:

 On Sun, Mar 15, 2009 at 20:36, Hubert, Eric eric.hub...@foxmobile.com
 wrote:
  For two reasons:
 
  1. Message formatters should be protocol independent (even if they
  have access to the full MessageContext).
 
  This is currently not the case. Whereas the rest of Synapse is totally
  unaware of any Hessian specifics, the Hessian Builder/Formatter pair is
  actually the protocol dependent implementation. It is only used for
  Hessian Messages and has to be configured (activated) in axis2.xml for
  the specific content type.

 My statement was not precise enough. What I wanted to say is that
 message formatters should be _transport_ protocol independent. On the
 other hand, as you point out, they implement a specific _application_
 protocol. BTW, is Hessian used on other transport protocols, such as
 JMS?


  2. Probably when the message formatter is invoked, it is already too
  late to set the HTTP status code.
  Excactly! Thats the definite reason. The whole http headers are already
  written when it comes to the formatter.
 
  See HttpCoreNIOSender.sendAsyncResponse():
 
  worker.getServiceHandler().commitResponse(worker.getConn(), response);
  // ...
  OutputStream out = worker.getOutputStream();
  //..
  messageFormatter.writeTo(msgContext, format, out, false);
 
  Regards,
   Eric
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




 --
 Ruwan Linton
 Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
 WSO2 Inc.; http://wso2.org
 email: ru...@wso2.com; cell: +94 77 341 3097
 blog: http://ruwansblog.blogspot.com




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Creating HessianFaults using FaultMediator/HessianMessageFormatter

2009-03-15 Thread Ruwan Linton
I think all last three suggestions will work nicely to solve this issue, but
I think asankha's solution seems quite handy in this case as well as in most
of the other POX cases (it is a generic solution).

I think HessianBuilder should set the value to false in the asankha's
suggestion, because hessian messages want them to be to 200 rather than 500.
:-)

Thanks,
Ruwan

On Mon, Mar 16, 2009 at 6:59 AM, Asankha C. Perera asan...@apache.orgwrote:

  Hi all

  Yes, I think the overhead in the FaultMediator is rather low. It already
 handles a lot of other application protocol specific stuff. The only thing
 which is not nice is that the way to detect the Hessian message is making
 assumptions on the transport used (content-type of http transport header as
 a decision criteria). But there are obviously other alternatives to
 implement the isHessianMessage() method (e.g. letting the builder write an
 info about the application protocol used in a defined place within the
 message context or even something smarter?).

 Yes, there are limitations regarding message transformations changing the
 application protocol, this is true. On the other side this would be a
 relatively hard job. Either reimplementing the whole protocol or integrating
 a Hessian library (many library versions are incompatible amongst each
 other). Once we really do this, the effort to change a few lines in the
 FaultMediator can be neglected.

 Considering all that has been brought up in this thread and the above in
 particular, what if we define a new Synapse property say 'FAULTS_AS_HTTP500'
 - and the Hessian builders would set this property to True. This way the
 fault mediator is not Hessian specific.

 When the fault mediator is invoked later, it would check this property and
 perform the logic given in Eric's patch. I believe many POX messages would
 also benefit from this - where many fault messages would actually go on the
 wire as HTTP 200's..

 cheers
 asankha

 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org
 http://esbmagic.blogspot.com





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Usage of @deprecated

2009-03-14 Thread Ruwan Linton
+1

Ruwan

On Sat, Mar 14, 2009 at 6:05 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 Good point. I've modified the Javadoc to include the relevant @deprecated
 tags.

 Andreas

 On Sat, Mar 14, 2009 at 12:47, Hubert, Eric eric.hub...@foxmobile.com
 wrote:
  Hi Synapse-Devs,
 
  While having a look at the AbstractMediator class I noticed all the
 deprecated methods. From my perspective deprecating methods to keep backward
 compatibility is generally a good thing. Unfortunately you didn't use the
 @deprecated JavaDoc-Tag to provide information about the reason and/or what
 to use instead.
  If someone is aware of the details it would be helpful to add this
 information there and always include it in the future while deprecating
 methods.
 
  Thanks,
Eric
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: svn commit: r753659 - in /synapse/trunk/java: modules/distribution/pom.xml pom.xml

2009-03-14 Thread Ruwan Linton
Thanks adreas...

Ruwan

2009/3/14 veit...@apache.org

 Author: veithen
 Date: Sat Mar 14 13:56:58 2009
 New Revision: 753659

 URL: http://svn.apache.org/viewvc?rev=753659view=rev
 Log:
 Rampart really requires mex. Removed the exclusion rules so that it is
 included as transitive dependency. Only kept the dependencyManagement entry
 to choose the right version.

 Modified:
synapse/trunk/java/modules/distribution/pom.xml
synapse/trunk/java/pom.xml

 Modified: synapse/trunk/java/modules/distribution/pom.xml
 URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/modules/distribution/pom.xml?rev=753659r1=753658r2=753659view=diff

 ==
 --- synapse/trunk/java/modules/distribution/pom.xml (original)
 +++ synapse/trunk/java/modules/distribution/pom.xml Sat Mar 14 13:56:58
 2009
 @@ -59,10 +59,6 @@
 version${rampart.version}/version
 exclusions
 exclusion
 -groupIdorg.apache.axis2/groupId
 -artifactIdmex/artifactId
 -/exclusion
 -exclusion
 groupIdorg.apache.woden/groupId
 artifactIdwoden-api/artifactId
 /exclusion

 Modified: synapse/trunk/java/pom.xml
 URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/pom.xml?rev=753659r1=753658r2=753659view=diff

 ==
 --- synapse/trunk/java/pom.xml (original)
 +++ synapse/trunk/java/pom.xml Sat Mar 14 13:56:58 2009
 @@ -338,6 +338,7 @@
 groupIdorg.apache.axis2/groupId
 artifactIdmex/artifactId
 version${axis2.version}/version
 +classifierimpl/classifier
 /dependency

 !-- Rampart --
 @@ -355,10 +356,6 @@
 artifactIdlog4j-over-slf4j/artifactId
 /exclusion
 exclusion
 -groupIdorg.apache.axis2/groupId
 -artifactIdmex/artifactId
 -/exclusion
 -exclusion
 groupIdorg.apache.woden/groupId
 artifactIdwoden-api/artifactId
 /exclusion
 @@ -374,10 +371,6 @@
 version${rampart.version}/version
 exclusions
 exclusion
 -groupIdorg.apache.axis2/groupId
 -artifactIdmex/artifactId
 -/exclusion
 -exclusion
 groupIdorg.apache.woden/groupId
 artifactIdwoden-api/artifactId
 /exclusion
 @@ -389,10 +382,6 @@
 version${rampart.version}/version
 exclusions
 exclusion
 -groupIdorg.apache.axis2/groupId
 -artifactIdmex/artifactId
 -/exclusion
 -exclusion
 groupIdorg.apache.woden/groupId
 artifactIdwoden-api/artifactId
 /exclusion
 @@ -685,11 +674,6 @@
 artifactIdbcprov-jdk15/artifactId
 version${bcprov.jdk15.version}/version
 /dependency
 -dependency
 -groupIdorg.apache.axis2/groupId
 -artifactIdmex/artifactId
 -version${axis2.version}/version
 -/dependency

 !-- dependencies for xsltc in xalan --
 dependency





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: jline

2009-03-14 Thread Ruwan Linton
Eric,

Synapse trunk is working fine for me and it took the jline dependency which
has been copied to the lib folder as well. So I don't see any error in the
dependency management :-( may be your pom file is in conflict or you might
be having a locally modified pom.

Thanks,
Ruwan

On Sat, Mar 14, 2009 at 8:56 PM, indika kumara indika.k...@gmail.comwrote:

  Eric

  I didn't build synapse today. I will check and if there is a break
 ... I will correct.
  But it was worked when I did the change.

 Thanks
 Indika

 On Sat, Mar 14, 2009 at 7:53 PM, Hubert, Eric eric.hub...@foxmobile.com
 wrote:
  Indika,
 
  Are we currently missing a core dependency for jline?
 
  Something like:
 
 dependency
 groupIdjline/groupId
 artifactIdjline/artifactId
 version0.9.94/version
 /dependency
 
  Or did I make a mistake in updating some pom?
 
  Regards,
Eric
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: Creating HessianFaults using FaultMediator/HessianMessageFormatter

2009-03-14 Thread Ruwan Linton
Hi Eric,

While fixing the HTTP status code issue which we found earlier, I have
thought of many ways of fixing this, but all of that ended up with making
the synapse core aware of hessian behaviors which is sort of not good.

There fore I only see the option (a) as the possible approach that we can
take, may be we could add this bit of logic to the Fault mediator because
that is a mediator but not the core of synapse, so the fault mediator is
aware of the hessian protocol.

Thanks,
Ruwan

On Sat, Mar 14, 2009 at 11:43 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

 Hi all,

 if someone wants to use the FaultMediator in conjunction with Hessian
 messages he has to know that he to set the HTTP status code to 200, after
 using the FaultMediator and before using the SendMediator.

 Normally (for SOAP messages) the HTTP status code is 500, but Ruwan once
 created a possibility to override this value using a property of scope
 Axis2.

 So declaratively this is possible in synapse.xml via adding the following
 configuration block:

 syn:switch source=get-property('transport', 'Content-Type')
  syn:case regex=x-application/hessian
 syn:property name=HTTP_SC value=200 scope=axis2/
  /syn:case
 /syn:switch

 The HessianFormatter transforms the SOAPFault to a Hessian fault and writes
 a valid Hessian fault message to the client, which deserializes the fault
 message to a HessianServiceException with the proper message.
 This only works if the HTTP status code is 200. Any other messages will not
 be deserialized by the Hessian Client libraries.

 I guess most people trying out the Hessian support would stumple over this
 issue. I see two possibilities and would like to here your opinion.

 a) Document this behaviour and the needed configuration online.
 b) Extend the FaultMediator to set this property programmatically depending
 on the content-type header.

 I see advantages and disadvantages with both approaches. Currently the
 FaultMediator is already handling the differences between SOAP 1.1, SOAP 1.2
 and POX. This would need three of four more lines as well as the duplication
 or a move of a content-type constant for x-application/hessian as for sure
 a dependency from the core to the extensions module must not exist.

 Anyone having a clever option c in mind? Comments are welcome!

 Regards,
   Eric




-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: svn commit: r753144 - in /synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/mediators/builtin/ core/src/main/java/org/apache/synapse/mediators/db/ core/src/main/java/org/apache/s

2009-03-13 Thread Ruwan Linton
/mediators/throttle/ThrottleMediator.java
 Fri Mar 13 07:16:16 2009
 @@ -19,20 +19,20 @@
  package org.apache.synapse.mediators.throttle;

  import org.apache.axiom.om.OMElement;
 +import org.apache.axis2.clustering.ClusterManager;
 +import org.apache.axis2.clustering.ClusteringFault;
 +import org.apache.axis2.clustering.context.Replicator;
 +import org.apache.axis2.context.ConfigurationContext;
  import org.apache.neethi.PolicyEngine;
  import org.apache.synapse.ManagedLifecycle;
  import org.apache.synapse.Mediator;
  import org.apache.synapse.MessageContext;
  import org.apache.synapse.SynapseLog;
 -import org.apache.synapse.transport.nhttp.NhttpConstants;
  import org.apache.synapse.config.Entry;
  import org.apache.synapse.core.SynapseEnvironment;
  import org.apache.synapse.core.axis2.Axis2MessageContext;
  import org.apache.synapse.mediators.AbstractMediator;
 -import org.apache.axis2.context.ConfigurationContext;
 -import org.apache.axis2.clustering.context.Replicator;
 -import org.apache.axis2.clustering.ClusteringFault;
 -import org.apache.axis2.clustering.ClusterManager;
 +import org.apache.synapse.transport.nhttp.NhttpConstants;
  import org.wso2.throttle.*;


 @@ -42,7 +42,7 @@
  * Only support IP based throttling- Throotling can manage per IP using the
 throttle policy
  */

 -public class ThrottleMediator extends AbstractMediator implements
 ManagedLifecycle {
 +public class ThrottleMediator extends AbstractMediator {

 /* The key for getting the throttling policy - key refers to a/an
 [registry] entry*/
 private String policyKey = null;





-- 
Ruwan Linton
Senior Software Engineer  Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ru...@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com


Re: [jira] Commented: (SYNAPSE-514) Enhance HessianMessageBuilder with fault detection

2009-03-09 Thread Ruwan Linton
Yeah I got that, and thanks.

Ruwan

On Mon, Mar 9, 2009 at 1:59 PM, Eric Hubert (JIRA) j...@apache.org wrote:


[
 https://issues.apache.org/jira/browse/SYNAPSE-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12680085#action_12680085]

 Eric Hubert commented on SYNAPSE-514:
 -

 Hi Ruwan,

 the HessianMessageFormatter is not affected from that change as there is
 not differentiation between normal hessian responses and fault hessian
 responses, which is perfectly fine. The only differentation made is for the
 case that a SOAP fault (most likely created by the FaultMediator) shall be
 formatted as a hessian fault. For this case the HessianMessageFormatter
 currently constructs a Hessian fault message.

 Anyway the HessianMessageFormatter could also get some minor code cleanups
 and a unit test. I will do so and submit another patch soon.

  Enhance HessianMessageBuilder with fault detection
  --
 
  Key: SYNAPSE-514
  URL: https://issues.apache.org/jira/browse/SYNAPSE-514
  Project: Synapse
   Issue Type: Improvement
   Components: Extension Mediators
 Affects Versions: 1.2
 Reporter: Eric Hubert
 Assignee: Ruwan Linton
 Priority: Minor
  Fix For: 1.3
 
  Attachments: HessianMessageBuilder.patch, restresources.zip
 
 
  Currently there is no way to detect Hessian faults in the mediation. For
 most other message formats this has already been implemented. Once a fault
 is detected a property indicating the fault is stored inside the Axis
 message context.
  The attached patch add the same behavior for binary Hessian messages. It
 extends the existing HessianMessageBuilder. Additionally the patch includes
 unit tests to test the added functionality as well as the existing one. So
 far there were no unit tests.
  The unit test need some binary hessian messages as test resources. I
 included them in the patch to ease the review but do think it might make
 more sense to put them in the svn repo individually. So I'll attach those
 files separately as well.

 --
 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: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Offer to support Synapse development

2009-03-09 Thread Ruwan Linton
On Mon, Mar 9, 2009 at 2:40 PM, Hubert, Eric eric.hub...@foxmobile.comwrote:

  Hi Ruwan,



 yes you are able to modify the rule sets. Starting with default rulesets on
 grown code is always problematic as you might get swamped with violations of
 different priorities. Even though you can filter by priorities it maybe to
 much what you get. Besides this Findbugs and PMD may detect false positives
 under some situations. Nevertheless the output is very valuable. You just
 should not concentrate to much on absolute values. PMD and Findbugs does not
 need much configuration. Checkstyle should get a custom ruleset according to
 the projects needs. Otherwise it may really produce a lot of useless output.



 Of course I would be willing to help you to get the configuration right.
 I’m sure it will further improve the code quality in the long run. To get
 something started we would not need to setup a doc job for the whole
 project. I think we could also start with a small Maven module like
 experimental or handler before jumping on the big ones like transport or
 core. What do you think?

Hi Eric,

+1 and I think we could easily get started with synapse-utils module...

Thanks,
Ruwan




 Yes I’m aware of the ASF model of becoming a committer. This is a very
 solid and useful model. To be honest, sometimes I whish someone would
 establish the same system in the business world. ;-)

 I will continue to focus on small individual patches.



 Thanks,

Eric


   --

 *From:* Ruwan Linton [mailto:ruwan.lin...@gmail.com]
 *Sent:* Monday, March 09, 2009 12:05 AM
 *To:* dev@synapse.apache.org
 *Subject:* Re: Offer to support Synapse development



 Hi Eric,

 It is really nice to see you getting on to the code...

 We have integrated the FindBugs, Checkstyle and PMD through the respective
 maven plugins and found that they were by default giving a set of issues but
 after a going through those I have realized most of them are not really
 issues, but of couse we have found a set of good issues that we had as well.
 I am sure that we can configure the level of error checking but I didn't
 tried to go along that path (well, I would say the time factor stopped me in
 going that line). Even though we tried this we never get this committed into
 the svn and got it to run continuously.

 I think we better integrate these with correct configurations to get best
 results and if you could help us getting there that would be of utmost help.

 I think you will have to go through the JIRA and patches model for the
 contributions for the moment until you become a committer, well that is how
 generally apache operates (you may already know this), and I would prefer to
 have small patches on one concern than a patch touching most of the files.

 Thanks for the contribution, and it is very valuable for the evolution of
 this project into a success product.

 Thanks,
 Ruwan

 On Mon, Mar 9, 2009 at 3:55 AM, Hubert, Eric eric.hub...@foxmobile.com
 wrote:

 Hi Synapse-Devs,

 Since more than a year I've been actively following the Synapse users and
 dev mailings lists. Some of you may have also noticed my efforts to improve
 Synapse from a user's perspective by reporting bugs and submitting feature
 requests including implementation ideas and minor code contributions.
 I would like to extend this support in the direction of active code
 development.
 As a starting point I checked out Synapse trunk, imported the projects into
 Eclipse and activated my normal development toolset (Findbugs, PMD,
 Checkstyle, EclEmma). Well by having a look at the number of potential code
 problems I think there is some room for improvements (as always). ;-)

 I have seen you guys are using the great Hudson project as your CI
 environment:
 http://hudson.zones.apache.org/hudson/job/Synapse%20-%20Trunk/modules
 Have you ever considered setting up a doc job for Synapse using the
 following plugins:
 http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/PMD+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/Checkstyle+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/Cobertura+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/DRY+Plugin

 From my personal experiences I can say it's really worth to use it,
 especially to always have the trends of those metrics available. You will
 find some examples on the pages presented above.

 My personal interests regarding Synapse concentrate on the http transports,
 Hessian application protocol usage, server management, monitoring, the
 improvement of error logs for faster problem recognition, full JDK 6
 compatibility, and the separation of implementation and API supporting
 custom development of mediators.
 Besides this I'm willing to contribute also in other areas, but those are
 the ones my focus is on.

 The only question is where to start? I don't think it makes much sense to
 provide dozens of small code fixes in a great number of patches

Re: VFS - Synapse Memory Leak

2009-03-09 Thread Ruwan Linton
Andreas,

On Mon, Mar 9, 2009 at 5:24 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 The changes I did in the VFS transport and the message builders for
 text/plain and application/octet-stream certainly don't provide an
 out-of-the-box solution for your use case, but they are the
 prerequisite.

 Concerning your first proposed solution (let the VFS write the content
 to a temporary file), I don't like this because it would create a
 tight coupling between the VFS transport and the mediator. A design
 goal should be that the solution will still work if the file comes
 from another source, e.g. an attachment in an MTOM or SwA message.

 I thing that an all-Synapse solution (2 or 3) should be possible, but
 this will require development of a custom mediator. This mediator
 would read the content, split it up (and store the chunks in memory or
 an disk) and executes a sub-sequence for each chunk. The execution of
 the sub-sequence would happen synchronously to limit the memory/disk
 space consumption (to the maximum chunk size) and to avoid flooding
 the destination service.

 Note that it is probably not possible to implemented the mediator
 using a script because of the problematic String handling. Also,
 Spring, POJO and class mediators don't support sub-sequences (I
 think). Therefore it should be implemented as a full-featured Java
 mediator, probably taking the existing iterate mediator as a template.
 I can contribute the required code to get the text content in the form
 of a java.io.Reader.


Could you please explain this is bit? do you mean to implement the transport
to give out text content as a java.io.Reader? If so what is the general
usage of this except for this particular scenario?

Thanks,
Ruwan




 Regards,

 Andreas

 On Mon, Mar 9, 2009 at 03:05, kimhorn kim.h...@icsglobal.net wrote:
 
  Although this is a good feature it may not solve the actual problem ?
  The main first issue on my list was the memory leak.
  However, the real problem is once I get this massive files I  have to
 send
  it to a web Service that can only take it in small chunks (about 14MB) .
  Streaming it straight out would just kill the destination Web service. It
  would get the memory error. The text document can be split apart easily,
 as
  it has independant records on each line seperated by CR LF.
 
  In an earlier post; that was not responded too, I mentioned:
 
  Otherwise; for large EDI files a VFS iterator Mediator that streams
 through
  input file and outputs smaller
  chunks for processing, in Synapse, may be a solution ? 
 
  So I had mentioned a few solutions, in prior posts, solution now are:
 
  1) VFS writes straight to temporary file, then a Java mediator can
 process
  the file by splitting it into many smaller files. These files then
 trigger
  another VFS proxy that submits these to the final web Service.
  The problem is is that is uses the file system (not so bad).
  2) A Java Mediator takes the text package and splits it up by wrapping
  into many XML data elements that can then be acted on by a Synapse
  Iterator. So replace the text message with many smaller XML elements.
  Problem is that this loads whole message into memory.
  3) Create another Iterator in Synapse that works on Regular expression
 (to
  split the text data) or actually uses a for loop approach to chop the
 file
  into chunks based on the loop index value. E.g. Index = 23 means a 14K
 chunk
  23 chunks into the data.
  4) Using the approach proposed now - just submit the file straight
 (stream
  it) to another web service that chops it up. It may return an XML
 document
  with many sub elelements that allows the standard Iterator to work.
 Similar
  to (2) but using another service rather than Java to split document.
  5) Using the approach proposed now - just submit the file straight
 (stream
  it) to another web service that chops it up but calls a Synapse proxy
 with
  each small packet of data that then forwards it to the final WEb Service.
 So
  the Web Service iterates across the data; and not Synapse.
 
  Then other solutions replace Synapse with a stand alone Java program at
 the
  front end.
 
  Another issue here is throttling: Splitting the file is one issues but
  submitting 100's of calls in parralel to the destination service would
  result in time outs... So need to work in throttling.
 
 
 
 
 
 
 
 
  Ruwan Linton wrote:
 
  I agree and can understand the time factor and also +1 for reusing stuff
  than trying to invent the wheel again :-)
 
  Thanks,
  Ruwan
 
  On Sun, Mar 8, 2009 at 4:08 PM, Andreas Veithen
  andreas.veit...@gmail.comwrote:
 
  Ruwan,
 
  It's not a question of possibility, it is a question of available time
  :-)
 
  Also note that some of the features that we might want to implement
  have some similarities with what is done for attachments in Axiom
  (except that an attachment is only available once, while a file over
  VFS can be read several times). I think there is also some

Re: svn commit: r751624 - /synapse/trunk/java/pom.xml

2009-03-09 Thread Ruwan Linton
hhhmmm, it was not a must at run time, but from the latest rampart SNAPSHOT
it seems to throw some MexExceptions so it is now required at runtime. I
will remove that exclude so that this dependency will also be not required
(will be handled transitively by maven)

Thanks,
Ruwan

On Tue, Mar 10, 2009 at 1:46 AM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 Mmh, if it is required, why do we then exclude it in the first place
 (see the rampart dependency declarations in the dependencyManagement
 section)?

 Andreas

 On Mon, Mar 9, 2009 at 09:45,  ru...@apache.org wrote:
  Author: ruwan
  Date: Mon Mar  9 08:45:30 2009
  New Revision: 751624
 
  URL: http://svn.apache.org/viewvc?rev=751624view=rev
  Log:
  MEX is required by the rampart and adding that dependency
 
  Modified:
 synapse/trunk/java/pom.xml
 
  Modified: synapse/trunk/java/pom.xml
  URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/pom.xml?rev=751624r1=751623r2=751624view=diff
 
 ==
  --- synapse/trunk/java/pom.xml (original)
  +++ synapse/trunk/java/pom.xml Mon Mar  9 08:45:30 2009
  @@ -334,6 +334,11 @@
  artifactIdaxis2-mtompolicy/artifactId
  version${axis2.version}/version
  /dependency
  +dependency
  +groupIdorg.apache.axis2/groupId
  +artifactIdmex/artifactId
  +version${axis2.version}/version
  +/dependency
 
  !-- Rampart --
  dependency
  @@ -680,6 +685,11 @@
  artifactIdbcprov-jdk15/artifactId
  version${bcprov.jdk15.version}/version
  /dependency
  +dependency
  +groupIdorg.apache.axis2/groupId
  +artifactIdmex/artifactId
  +version${axis2.version}/version
  +/dependency
 
  !-- dependencies for xsltc in xalan --
  dependency
 
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Offer to support Synapse development

2009-03-08 Thread Ruwan Linton
Hi Eric,

It is really nice to see you getting on to the code...

We have integrated the FindBugs, Checkstyle and PMD through the respective
maven plugins and found that they were by default giving a set of issues but
after a going through those I have realized most of them are not really
issues, but of couse we have found a set of good issues that we had as well.
I am sure that we can configure the level of error checking but I didn't
tried to go along that path (well, I would say the time factor stopped me in
going that line). Even though we tried this we never get this committed into
the svn and got it to run continuously.

I think we better integrate these with correct configurations to get best
results and if you could help us getting there that would be of utmost help.

I think you will have to go through the JIRA and patches model for the
contributions for the moment until you become a committer, well that is how
generally apache operates (you may already know this), and I would prefer to
have small patches on one concern than a patch touching most of the files.

Thanks for the contribution, and it is very valuable for the evolution of
this project into a success product.

Thanks,
Ruwan

On Mon, Mar 9, 2009 at 3:55 AM, Hubert, Eric eric.hub...@foxmobile.comwrote:

 Hi Synapse-Devs,

 Since more than a year I've been actively following the Synapse users and
 dev mailings lists. Some of you may have also noticed my efforts to improve
 Synapse from a user's perspective by reporting bugs and submitting feature
 requests including implementation ideas and minor code contributions.
 I would like to extend this support in the direction of active code
 development.
 As a starting point I checked out Synapse trunk, imported the projects into
 Eclipse and activated my normal development toolset (Findbugs, PMD,
 Checkstyle, EclEmma). Well by having a look at the number of potential code
 problems I think there is some room for improvements (as always). ;-)

 I have seen you guys are using the great Hudson project as your CI
 environment:
 http://hudson.zones.apache.org/hudson/job/Synapse%20-%20Trunk/modules
 Have you ever considered setting up a doc job for Synapse using the
 following plugins:
 http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/PMD+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/Checkstyle+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/Cobertura+Plugin
 http://wiki.hudson-ci.org/display/HUDSON/DRY+Plugin

 From my personal experiences I can say it's really worth to use it,
 especially to always have the trends of those metrics available. You will
 find some examples on the pages presented above.

 My personal interests regarding Synapse concentrate on the http transports,
 Hessian application protocol usage, server management, monitoring, the
 improvement of error logs for faster problem recognition, full JDK 6
 compatibility, and the separation of implementation and API supporting
 custom development of mediators.
 Besides this I'm willing to contribute also in other areas, but those are
 the ones my focus is on.

 The only question is where to start? I don't think it makes much sense to
 provide dozens of small code fixes in a great number of patches (per class
 or package). Too much work during review. A big patch touching too much
 files is even worse. Small and independent changes are important for a
 suitable review process.

 Thus I think it is best to start with small, independent features provided
 as a patch. As the very first start I would like to contribute a small
 enhancement to the Hessian message builder to detect fault messages.

 So I created a new JIRA for it:
 https://issues.apache.org/jira/browse/SYNAPSE-514

 I tried to follow the conventions I have found. It would be nice if someone
 could review the patch and provide feedback. If you find any problems, I'll
 correct them.

 Regards,
Eric




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Updated: (SYNAPSE-514) Enhance HessianMessageBuilder with fault detection

2009-03-08 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton updated SYNAPSE-514:
-

Affects Version/s: (was: 1.3)
   1.2

The affected version has to be 1.2 because this is going to be fixed in the 1.3 
once we commit in this patch

 Enhance HessianMessageBuilder with fault detection
 --

 Key: SYNAPSE-514
 URL: https://issues.apache.org/jira/browse/SYNAPSE-514
 Project: Synapse
  Issue Type: Improvement
  Components: Extension Mediators
Affects Versions: 1.2
Reporter: Eric Hubert
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: HessianMessageBuilder.patch, restresources.zip


 Currently there is no way to detect Hessian faults in the mediation. For most 
 other message formats this has already been implemented. Once a fault is 
 detected a property indicating the fault is stored inside the Axis message 
 context.
 The attached patch add the same behavior for binary Hessian messages. It 
 extends the existing HessianMessageBuilder. Additionally the patch includes 
 unit tests to test the added functionality as well as the existing one. So 
 far there were no unit tests.
 The unit test need some binary hessian messages as test resources. I included 
 them in the patch to ease the review but do think it might make more sense to 
 put them in the svn repo individually. So I'll attach those files separately 
 as well.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-514) Enhance HessianMessageBuilder with fault detection

2009-03-08 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12680024#action_12680024
 ] 

Ruwan Linton commented on SYNAPSE-514:
--

Eric, I think we need to improve the HessianMessageFormatter to serialize these 
hessian faults into the wire, isn't it?

Thanks,
Ruwan

 Enhance HessianMessageBuilder with fault detection
 --

 Key: SYNAPSE-514
 URL: https://issues.apache.org/jira/browse/SYNAPSE-514
 Project: Synapse
  Issue Type: Improvement
  Components: Extension Mediators
Affects Versions: 1.2
Reporter: Eric Hubert
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: HessianMessageBuilder.patch, restresources.zip


 Currently there is no way to detect Hessian faults in the mediation. For most 
 other message formats this has already been implemented. Once a fault is 
 detected a property indicating the fault is stored inside the Axis message 
 context.
 The attached patch add the same behavior for binary Hessian messages. It 
 extends the existing HessianMessageBuilder. Additionally the patch includes 
 unit tests to test the added functionality as well as the existing one. So 
 far there were no unit tests.
 The unit test need some binary hessian messages as test resources. I included 
 them in the patch to ease the review but do think it might make more sense to 
 put them in the svn repo individually. So I'll attach those files separately 
 as well.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-514) Enhance HessianMessageBuilder with fault detection

2009-03-08 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12680040#action_12680040
 ] 

Ruwan Linton commented on SYNAPSE-514:
--

well, I think that is already handled because it is a hessian message itself 
isn't it?

 Enhance HessianMessageBuilder with fault detection
 --

 Key: SYNAPSE-514
 URL: https://issues.apache.org/jira/browse/SYNAPSE-514
 Project: Synapse
  Issue Type: Improvement
  Components: Extension Mediators
Affects Versions: 1.2
Reporter: Eric Hubert
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: HessianMessageBuilder.patch, restresources.zip


 Currently there is no way to detect Hessian faults in the mediation. For most 
 other message formats this has already been implemented. Once a fault is 
 detected a property indicating the fault is stored inside the Axis message 
 context.
 The attached patch add the same behavior for binary Hessian messages. It 
 extends the existing HessianMessageBuilder. Additionally the patch includes 
 unit tests to test the added functionality as well as the existing one. So 
 far there were no unit tests.
 The unit test need some binary hessian messages as test resources. I included 
 them in the patch to ease the review but do think it might make more sense to 
 put them in the svn repo individually. So I'll attach those files separately 
 as well.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-514) Enhance HessianMessageBuilder with fault detection

2009-03-08 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-514.
--

Resolution: Fixed

Committed the patch and fixed on the trunk. Thanks Eric for the contribution

 Enhance HessianMessageBuilder with fault detection
 --

 Key: SYNAPSE-514
 URL: https://issues.apache.org/jira/browse/SYNAPSE-514
 Project: Synapse
  Issue Type: Improvement
  Components: Extension Mediators
Affects Versions: 1.2
Reporter: Eric Hubert
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: HessianMessageBuilder.patch, restresources.zip


 Currently there is no way to detect Hessian faults in the mediation. For most 
 other message formats this has already been implemented. Once a fault is 
 detected a property indicating the fault is stored inside the Axis message 
 context.
 The attached patch add the same behavior for binary Hessian messages. It 
 extends the existing HessianMessageBuilder. Additionally the patch includes 
 unit tests to test the added functionality as well as the existing one. So 
 far there were no unit tests.
 The unit test need some binary hessian messages as test resources. I included 
 them in the patch to ease the review but do think it might make more sense to 
 put them in the svn repo individually. So I'll attach those files separately 
 as well.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Assigned: (SYNAPSE-365) REST support not working in synapse 1.2

2009-03-08 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-365:


Assignee: Ruwan Linton  (was: Asankha C. Perera)

 REST support not working in synapse 1.2
 ---

 Key: SYNAPSE-365
 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
 Project: Synapse
  Issue Type: Bug
  Components: Endpoints, Proxy Services, Transports
Reporter: Jasper Spoel
Assignee: Ruwan Linton
 Fix For: 1.3


 When submitting a GET request to a synapse proxy service that points to a 
 REST webservice
 AND Content-Type is not text/xml or application/xml the error: Cannot create 
 DocumentElement without destination EPR comes out. (e.g try to approach the 
 service proxy with a webbrowers and it will do this)
 configuration is as follows:
 definitions xmlns=http://ws.apache.org/ns/synapse;
   proxy name=Forwarder
   target
   endpoint
   address uri=http://localhost:1/MyService/echo; 
 format=get/
   /endpoint
   outSequence
   send/
   /outSequence
   /target
   /proxy
 /definitions
 If the message is send with the 'correct' content-type like for example so: 
 curl -G -H Content-Type: text/xml http://localhost:8280/Forwarder/mediate
 Synapse gives me the following output:
 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET 
 /soap/Forwarder/mediate HTTP/1.1
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  GET /soap/Forwarder/mediate HTTP/1.1
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) 
 libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Host: localhost:8280
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Accept: */*
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Content-Type:application/xml
 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG TransportUtils createSOAPEnvelope using Builder (class 
 org.apache.axis2.builder.ApplicationXMLBuilder) selected from type 
 (application/xml)
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver Synapse received a new message for message 
 mediation...
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver Received To: null
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver SOAPAction: null
 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver WSA-Action: null
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG Axis2SynapseEnvironment Injecting MessageContext
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator Start : Sequence main
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator Sequence SequenceMediator :: mediate()
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG LogMediator Start : Log mediator
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  
 INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, 
 Direction: request
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG LogMediator End : Log mediator
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG DropMediator Start : Drop mediator
 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG DropMediator End : Drop mediator
 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator End : Sequence main
 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG ServerWorker Sending 202 Accepted response for MessageID : 
 urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response 
 will follow : true acked : false forced ack : false
 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG ServerHandler HTTP connection [localhost/0:0:0:0:0:0:0:1%0:56697]: 
 Output ready

[jira] Resolved: (SYNAPSE-365) REST support not working in synapse 1.2

2009-03-08 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-365.
--

   Resolution: Fixed
Fix Version/s: (was: NIGHTLY)
   1.3

This is fixed on the trunk and will be available for the 1.3 release..

 REST support not working in synapse 1.2
 ---

 Key: SYNAPSE-365
 URL: https://issues.apache.org/jira/browse/SYNAPSE-365
 Project: Synapse
  Issue Type: Bug
  Components: Endpoints, Proxy Services, Transports
Reporter: Jasper Spoel
Assignee: Ruwan Linton
 Fix For: 1.3


 When submitting a GET request to a synapse proxy service that points to a 
 REST webservice
 AND Content-Type is not text/xml or application/xml the error: Cannot create 
 DocumentElement without destination EPR comes out. (e.g try to approach the 
 service proxy with a webbrowers and it will do this)
 configuration is as follows:
 definitions xmlns=http://ws.apache.org/ns/synapse;
   proxy name=Forwarder
   target
   endpoint
   address uri=http://localhost:1/MyService/echo; 
 format=get/
   /endpoint
   outSequence
   send/
   /outSequence
   /target
   /proxy
 /definitions
 If the message is send with the 'correct' content-type like for example so: 
 curl -G -H Content-Type: text/xml http://localhost:8280/Forwarder/mediate
 Synapse gives me the following output:
 2008-06-18 15:10:59,714 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: Connected
 2008-06-18 15:10:59,732 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG ServerHandler HTTP connection [/0:0:0:0:0:0:0:1%0:56697]: GET 
 /soap/Forwarder/mediate HTTP/1.1
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  GET /soap/Forwarder/mediate HTTP/1.1
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) 
 libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Host: localhost:8280
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Accept: */*
 2008-06-18 15:10:59,780 [10.0.0.12-equilibrium.local] [I/O dispatcher 5] 
 DEBUG headers  Content-Type:application/xml
 2008-06-18 15:10:59,797 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG TransportUtils createSOAPEnvelope using Builder (class 
 org.apache.axis2.builder.ApplicationXMLBuilder) selected from type 
 (application/xml)
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver Synapse received a new message for message 
 mediation...
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver Received To: null
 2008-06-18 15:10:59,841 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver SOAPAction: null
 2008-06-18 15:10:59,843 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SynapseMessageReceiver WSA-Action: null
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG Axis2SynapseEnvironment Injecting MessageContext
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator Start : Sequence main
 2008-06-18 15:10:59,845 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator Sequence SequenceMediator :: mediate()
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG LogMediator Start : Log mediator
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1]  
 INFO LogMediator To: , MessageID: urn:uuid:27AA6F4DF24676A7641213794659778, 
 Direction: request
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG LogMediator End : Log mediator
 2008-06-18 15:10:59,846 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG DropMediator Start : Drop mediator
 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG DropMediator End : Drop mediator
 2008-06-18 15:10:59,852 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG SequenceMediator End : Sequence main
 2008-06-18 15:10:59,853 [10.0.0.12-equilibrium.local] [HttpServerWorker-1] 
 DEBUG ServerWorker Sending 202 Accepted response for MessageID : 
 urn:uuid:27AA6F4DF24676A7641213794659778 response written : null response 
 will follow : true acked : false forced ack : false
 2008-06-18 15:10:59,862 [10.0.0.12-equilibrium.local] [I/O

Re: Could I use BSD licensed binary with in the synapse?

2009-03-06 Thread Ruwan Linton
May I ask you why you want to use this?

Thanks,
Ruwan

On Fri, Mar 6, 2009 at 9:15 AM, indika kumara indika.k...@gmail.com wrote:

 Hi All

 I want to use [1]. Could some please advice me on the $subject?

 Thanks
 Indika

 [1] http://jline.sourceforge.net/

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Could I use BSD licensed binary with in the synapse?

2009-03-06 Thread Ruwan Linton
Indika,

So we will need to distribute this library if we uses this with synapse, in
which case I *think* we cannot use it in apache :(

Thanks,
Ruwan

On Fri, Mar 6, 2009 at 3:02 PM, indika kumara indika.k...@gmail.com wrote:

 With JDK 5, it is impossible (clear way) to reading passwords without
 echoing their text (With JDK 1.6, it can be). JLine provide this. I
 need to add an option for getting password for root level secret
 repository (SYNAPSE-376) based on JLine. Minimally, it (Jline binary)
 is needed in the compile time as this is a just one option.

 Thanks
 Indika

 On Fri, Mar 6, 2009 at 2:31 PM, Ruwan Linton ruwan.lin...@gmail.com
 wrote:
  May I ask you why you want to use this?
 
  Thanks,
  Ruwan
 
  On Fri, Mar 6, 2009 at 9:15 AM, indika kumara indika.k...@gmail.com
 wrote:
 
  Hi All
 
  I want to use [1]. Could some please advice me on the $subject?
 
  Thanks
  Indika
 
  [1] http://jline.sourceforge.net/
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  http://wso2.org - Oxygenating the Web Services Platform
  http://ruwansblog.blogspot.com/
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Could I use BSD licensed binary with in the synapse?

2009-03-06 Thread Ruwan Linton
Thanks Asankha and Paul for the correction :-)

Ruwan

On Fri, Mar 6, 2009 at 9:21 PM, Paul Fremantle pzf...@gmail.com wrote:

 Indika

 You can use this library - BSD is fine with Apache. However, I am
 still not convinced by the idea of requiring command-line input from
 the user at runtime. I can't imagine any production system that
 requires an admin to be there to type passwords in when the system is
 rebooted.

 Paul

 On Fri, Mar 6, 2009 at 10:48 AM, Asankha C. Perera asan...@apache.org
 wrote:
  Indika
 
  As I know BSD licenses are OK to be used with Apache projects,.. Paul,
  Sanjiva or Ant etc may know better.. I would like to keep the JDK 1.5
  support so I am ok to this if the license is compatible..
 
  ...
 
   Minimally, it (Jline binary)
  is needed in the compile time as this is a just one option.
 
  Do you mean to say that this library is only required at compile time? I
  haven't looked at it much yet, but then how does it work ?
 
  cheers
  asankha
 
  --
  Asankha C. Perera
  AdroitLogic, http://adroitlogic.org
 
  http://esbmagic.blogspot.com
 
 
 
 



 --
 Paul Fremantle
 Co-Founder and CTO, WSO2
 Apache Synapse PMC Chair
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 p...@wso2.com

 Oxygenating the Web Service Platform, www.wso2.com

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Assigned: (SYNAPSE-509) XML name space mismatch in Synapse sample 2 ,4 and 7

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-509:


Assignee: Ruwan Linton

 XML name space mismatch in Synapse sample 2 ,4 and 7
 

 Key: SYNAPSE-509
 URL: https://issues.apache.org/jira/browse/SYNAPSE-509
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Attachments: patch.txt


 Hi ,
 while running synapse samples i have found out that there is a xml namespace 
 mismatch in synapse samples 2 ,4 and 7
 following is the body of the soap message that i was able to trace while 
 sending the getquote request using the axis2client that is bundled in synapse.
 soapenv:Body
   m0:getQuote xmlns:m0=http://services.samples;
   m0:request
   m0:symbolIBM/m0:symbol
   /m0:request
   /m0:getQuote
 /soapenv:Body
 but in sample 2 4 and 7 are configured to accept a message with a different 
 namespace so they does not work properly
 (even though the sample 7 seems running perfectly the with the incomming 
 'Invalid custom quote request' axis fault that fault is generated due to the 
 xmlns mismatch.you can check this by changing stocksymbol -- symbol where 
 you get the same message)
 thank you,  
 Charith

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-509) XML name space mismatch in Synapse sample 2 ,4 and 7

2009-03-05 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679254#action_12679254
 ] 

Ruwan Linton commented on SYNAPSE-509:
--

Applied the patch Thanks charith for the contribution.

 XML name space mismatch in Synapse sample 2 ,4 and 7
 

 Key: SYNAPSE-509
 URL: https://issues.apache.org/jira/browse/SYNAPSE-509
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Attachments: patch.txt


 Hi ,
 while running synapse samples i have found out that there is a xml namespace 
 mismatch in synapse samples 2 ,4 and 7
 following is the body of the soap message that i was able to trace while 
 sending the getquote request using the axis2client that is bundled in synapse.
 soapenv:Body
   m0:getQuote xmlns:m0=http://services.samples;
   m0:request
   m0:symbolIBM/m0:symbol
   /m0:request
   /m0:getQuote
 /soapenv:Body
 but in sample 2 4 and 7 are configured to accept a message with a different 
 namespace so they does not work properly
 (even though the sample 7 seems running perfectly the with the incomming 
 'Invalid custom quote request' axis fault that fault is generated due to the 
 xmlns mismatch.you can check this by changing stocksymbol -- symbol where 
 you get the same message)
 thank you,  
 Charith

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-509) XML name space mismatch in Synapse sample 2 ,4 and 7

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-509.
--

   Resolution: Fixed
Fix Version/s: 1.3

Fixed on the trunk... 

 XML name space mismatch in Synapse sample 2 ,4 and 7
 

 Key: SYNAPSE-509
 URL: https://issues.apache.org/jira/browse/SYNAPSE-509
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: patch.txt


 Hi ,
 while running synapse samples i have found out that there is a xml namespace 
 mismatch in synapse samples 2 ,4 and 7
 following is the body of the soap message that i was able to trace while 
 sending the getquote request using the axis2client that is bundled in synapse.
 soapenv:Body
   m0:getQuote xmlns:m0=http://services.samples;
   m0:request
   m0:symbolIBM/m0:symbol
   /m0:request
   /m0:getQuote
 /soapenv:Body
 but in sample 2 4 and 7 are configured to accept a message with a different 
 namespace so they does not work properly
 (even though the sample 7 seems running perfectly the with the incomming 
 'Invalid custom quote request' axis fault that fault is generated due to the 
 xmlns mismatch.you can check this by changing stocksymbol -- symbol where 
 you get the same message)
 thank you,  
 Charith

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Assigned: (SYNAPSE-499) Synapse.war not contain synapse .mar file in where should i put a patch ?is synapse NIGHTLY version?

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-499:


Assignee: Ruwan Linton

 Synapse.war not contain synapse .mar file in where should i put a patch ?is 
 synapse NIGHTLY version?
 

 Key: SYNAPSE-499
 URL: https://issues.apache.org/jira/browse/SYNAPSE-499
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Attachments: synapse.war.patch


 Synapse.war file does not contain a synapse-SNAPSHOT .mar file in 
 synapse.home/WEB-INF/repository/modules/ directory. Because of that synapse 
 cant be started in a web container.  

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-499) Synapse.war not contain synapse .mar file in where should i put a patch ?is synapse NIGHTLY version?

2009-03-05 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679258#action_12679258
 ] 

Ruwan Linton commented on SYNAPSE-499:
--

Applied the patch onto the trunk, thanks charith 

 Synapse.war not contain synapse .mar file in where should i put a patch ?is 
 synapse NIGHTLY version?
 

 Key: SYNAPSE-499
 URL: https://issues.apache.org/jira/browse/SYNAPSE-499
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: synapse.war.patch


 Synapse.war file does not contain a synapse-SNAPSHOT .mar file in 
 synapse.home/WEB-INF/repository/modules/ directory. Because of that synapse 
 cant be started in a web container.  

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-499) Synapse.war not contain synapse .mar file in where should i put a patch ?is synapse NIGHTLY version?

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-499.
--

   Resolution: Fixed
Fix Version/s: 1.3

Fixed on the trunk

 Synapse.war not contain synapse .mar file in where should i put a patch ?is 
 synapse NIGHTLY version?
 

 Key: SYNAPSE-499
 URL: https://issues.apache.org/jira/browse/SYNAPSE-499
 Project: Synapse
  Issue Type: Bug
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3

 Attachments: synapse.war.patch


 Synapse.war file does not contain a synapse-SNAPSHOT .mar file in 
 synapse.home/WEB-INF/repository/modules/ directory. Because of that synapse 
 cant be started in a web container.  

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Commented: (SYNAPSE-100) Synapse could be improved to support WS-RM 1.1

2009-03-05 Thread Ruwan Linton (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNAPSE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679278#action_12679278
 ] 

Ruwan Linton commented on SYNAPSE-100:
--

Now Synapse is using Sandesha2 as its RM module and hence now we support RM 
1.1..

Thanks Amila for the great help in getting this fixed.

 Synapse could be improved to support WS-RM 1.1
 --

 Key: SYNAPSE-100
 URL: https://issues.apache.org/jira/browse/SYNAPSE-100
 Project: Synapse
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.0-RC2-B1
Reporter: Asankha C. Perera
Assignee: Ruwan Linton
Priority: Minor
 Fix For: FUTURE


 Sandesha2 is building up support for WS-RM 1.1. However this work is still in 
 progress, and the current code base of Synapse does not support WS-RM 1.1 
 with the Sandesha2 snapshot code.
 Due to this limitation, the version=1. attribute of the RMSequence mediator 
 will not be functional

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-100) Synapse could be improved to support WS-RM 1.1

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-100.
--

   Resolution: Fixed
Fix Version/s: (was: FUTURE)
   1.3

Fixed on the trunk and will be available with the 1.3 release

 Synapse could be improved to support WS-RM 1.1
 --

 Key: SYNAPSE-100
 URL: https://issues.apache.org/jira/browse/SYNAPSE-100
 Project: Synapse
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.0-RC2-B1
Reporter: Asankha C. Perera
Assignee: Ruwan Linton
Priority: Minor
 Fix For: 1.3


 Sandesha2 is building up support for WS-RM 1.1. However this work is still in 
 progress, and the current code base of Synapse does not support WS-RM 1.1 
 with the Sandesha2 snapshot code.
 Due to this limitation, the version=1. attribute of the RMSequence mediator 
 will not be functional

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Assigned: (SYNAPSE-500) Error in Serializing the fault mediator fault code with a QName having default prefix

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-500:


Assignee: Ruwan Linton

 Error in Serializing the fault mediator fault code with a QName having 
 default prefix 
 --

 Key: SYNAPSE-500
 URL: https://issues.apache.org/jira/browse/SYNAPSE-500
 Project: Synapse
  Issue Type: Bug
  Components: Core
Reporter: Nandana Mihindukulasooriya
Assignee: Ruwan Linton
 Attachments: SYNAPSE-500.patch


 When I set the FaultCode vaule as given below,
 faultMediator.setFaultCodeValue(new 
 QName(http://www.w3.org/2003/05/soap-envelope,Reciver;));
 it is serialized as  
 syn:makefault
 syn:code xmlns:axis2ns2=http://www.w3.org/2003/05/soap-envelope; 
 value=:Receiver / 
 /syn:makefault
 The problem is when the QName is having the default prefix which is . When 
 I set the fault code with a QName with some other prefix 
 faultMediator.setFaultCodeValue(new 
 QName(http://www.w3.org/2003/05/soap-envelope,Reciver,myPrefix;));
 it is serialized correctly. 

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-500) Error in Serializing the fault mediator fault code with a QName having default prefix

2009-03-05 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-500.
--

   Resolution: Fixed
Fix Version/s: 1.3

Fixed on the trunk and will be available in the 1.3 release

 Error in Serializing the fault mediator fault code with a QName having 
 default prefix 
 --

 Key: SYNAPSE-500
 URL: https://issues.apache.org/jira/browse/SYNAPSE-500
 Project: Synapse
  Issue Type: Bug
  Components: Core
Reporter: Nandana Mihindukulasooriya
Assignee: Ruwan Linton
 Fix For: 1.3

 Attachments: SYNAPSE-500.patch


 When I set the FaultCode vaule as given below,
 faultMediator.setFaultCodeValue(new 
 QName(http://www.w3.org/2003/05/soap-envelope,Reciver;));
 it is serialized as  
 syn:makefault
 syn:code xmlns:axis2ns2=http://www.w3.org/2003/05/soap-envelope; 
 value=:Receiver / 
 /syn:makefault
 The problem is when the QName is having the default prefix which is . When 
 I set the fault code with a QName with some other prefix 
 faultMediator.setFaultCodeValue(new 
 QName(http://www.w3.org/2003/05/soap-envelope,Reciver,myPrefix;));
 it is serialized correctly. 

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Assigned: (SYNAPSE-493) Synapse sets the HttpCoreRequestResponseTransport status value to INITIAL

2009-03-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-493:


Assignee: Ruwan Linton

 Synapse sets the HttpCoreRequestResponseTransport status value to INITIAL
 -

 Key: SYNAPSE-493
 URL: https://issues.apache.org/jira/browse/SYNAPSE-493
 Project: Synapse
  Issue Type: Bug
Reporter: Amila Chinthaka Suriarachchi
Assignee: Ruwan Linton
 Attachments: patch.txt


 ServletRequestResponseTransport and SimpleHTTPRequestResponseTranspor set 
 this value to WAITING.
 This gives a problem with sandesah2. Sandesha2 has this code.
 if((toEPR==null || toEPR.hasAnonymousAddress()) 
  (makeConnection == null || 
 !makeConnection.booleanValue()) 
  (t == null || 
 !t.getStatus().equals(RequestResponseTransportStatus.WAITING))) {
   
   // Mark this sender bean so that we know that 
 the transport is unavailable, if the
   // bean is still stored.
   SenderBean bean = 
 senderBeanMgr.retrieve(senderBean.getMessageID());
   if(bean != null  bean.isTransportAvailable()) 
 {
   bean.setTransportAvailable(false);
   senderBeanMgr.update(bean);
   }
   
   // Commit the update
   if(transaction != null  
 transaction.isActive()) transaction.commit();
   transaction = null;
   
   if (log.isDebugEnabled())
   log.debug(Exit: SenderWorker::run, no 
 response transport for anonymous message);
   return;
   }
 it does not send the response back if the status of the 
 RequestResponseTransport is WAITING. 
 Setting this initial value to WAITING makes the Sandesha2 works with the 
 synapse.
 is it possible to change this initial value to WAITING?

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: svn commit: r749766 - /synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java

2009-03-04 Thread Ruwan Linton
Done !

Thanks,
Ruwan

On Wed, Mar 4, 2009 at 2:24 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 If it is properly documented in the code and if you add a comment to
 SYNAPSE-493 so that we can keep track of this, then I'm fine with it.

 Andreas

 On Wed, Mar 4, 2009 at 03:31, Ruwan Linton ruwan.lin...@gmail.com wrote:
  Andreas,
 
  I didn't note this earlier. My intention was to switch back to sandesha2
  because the current RM implementation that Synapse is using for the
 moment
  (WSO2 Mercury) is not supported by the WSO2 any more at least in this
 year
  and I wanted to move back to sandesha2.
 
  If I describe the history of the RM implementation switching we couldn't
 get
  Sandesha2 to work with NIO HTTP transport after the 1.0 release of
 synapse
  and that is why we moved to the Mercury implementation and now I don't
 want
  synapse to depend on that because the project is not live at this moment.
 
  So I suggest that we use this as a work around till we get this fixed in
  Sandesha2 I have tested all the scenarios which might be affected by
  this change and if there is any issue please do let me know. I will add a
  TODO documentation in to this piece of code as well.
 
  (We need to get RM to work with Sandesha2 for the 1.3 release)
 
  Thanks,
  Ruwan
 
  On Wed, Mar 4, 2009 at 4:18 AM, Andreas Veithen 
 andreas.veit...@gmail.com
  wrote:
 
  Ruwan,
 
  This change was proposed in SYNAPSE-493, but there the conclusion was
  that this change would be in contradiction with the available
  documentation in Axis2 and that it is more likely an issue in
  Sandesha2.
 
  Andreas
 
  On Tue, Mar 3, 2009 at 22:37,  ru...@apache.org wrote:
   Author: ruwan
   Date: Tue Mar  3 21:37:47 2009
   New Revision: 749766
  
   URL: http://svn.apache.org/viewvc?rev=749766view=rev
   Log:
   set the status to WAITING for fixing some RM scenarios, I have tested
   with all dual channel invocations and it seems to work fine
  
   Modified:
  
  
  
 synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java
  
   Modified:
  
 synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java
   URL:
  
 http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java?rev=749766r1=749765r2=749766view=diff
  
  
 ==
   ---
  
 synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java
   (original)
   +++
  
 synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreRequestResponseTransport.java
   Tue Mar  3 21:37:47 2009
   @@ -39,7 +39,7 @@
public class HttpCoreRequestResponseTransport implements
   RequestResponseTransport {
  
   private static final Log log =
   LogFactory.getLog(HttpCoreRequestResponseTransport.class);
   -private RequestResponseTransportStatus status =
   RequestResponseTransportStatus.INITIAL;
   +private RequestResponseTransportStatus status =
   RequestResponseTransportStatus.WAITING;
   private MessageContext msgContext = null;
   private boolean responseWritten = false;
  
  
  
  
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  http://wso2.org - Oxygenating the Web Services Platform
  http://ruwansblog.blogspot.com/
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Assigned: (SYNAPSE-511) Properly handle the ?wsdl out put when the proxy service doesn't have a WSDL specified

2009-03-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-511:


Assignee: Ruwan Linton

 Properly handle the ?wsdl out put when the proxy service doesn't have a WSDL 
 specified
 --

 Key: SYNAPSE-511
 URL: https://issues.apache.org/jira/browse/SYNAPSE-511
 Project: Synapse
  Issue Type: Improvement
  Components: Transports
Affects Versions: 1.2
 Environment: all envs
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 If you request a ?wsdl on a proxy service which doesn't have a WSDL specified 
 when building the proxy service, for the moment we just drop the connection 
 and there is an NPE in the console. We should handle this properly.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-511) Properly handle the ?wsdl out put when the proxy service doesn't have a WSDL specified

2009-03-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-511.
--

Resolution: Fixed

Fixed on the trunk and will be available with the 1.3 release

 Properly handle the ?wsdl out put when the proxy service doesn't have a WSDL 
 specified
 --

 Key: SYNAPSE-511
 URL: https://issues.apache.org/jira/browse/SYNAPSE-511
 Project: Synapse
  Issue Type: Improvement
  Components: Transports
Affects Versions: 1.2
 Environment: all envs
Reporter: Ruwan Linton
Assignee: Ruwan Linton
 Fix For: 1.3


 If you request a ?wsdl on a proxy service which doesn't have a WSDL specified 
 when building the proxy service, for the moment we just drop the connection 
 and there is an NPE in the console. We should handle this properly.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Assigned: (SYNAPSE-492) synapse does not add addressing headers to addresing client response

2009-03-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-492:


Assignee: Ruwan Linton

 synapse does not add addressing headers to addresing client response
 

 Key: SYNAPSE-492
 URL: https://issues.apache.org/jira/browse/SYNAPSE-492
 Project: Synapse
  Issue Type: Bug
Reporter: Amila Chinthaka Suriarachchi
Assignee: Ruwan Linton
 Attachments: patch.txt


 Create a proxy service with the following synapse configuration.
 definitions xmlns=http://ws.apache.org/ns/synapse;
 proxy name=StockQuoteProxy
 target
 inSequence
 header name=wsrm:SequenceAcknowledgement 
 action=remove
 
 xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm/
 header name=wsrm:Sequence action=remove
 
 xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm/
 send
 endpoint
 address 
 uri=http://localhost:9001/services/SimpleStockQuoteService/
 /endpoint
 /send
 /inSequence
 outSequence
 send/
 /outSequence
 /target
 /proxy
 /definitions
 Note that for proxy service end point addressing is not engaged. 
 Then invoke this proxy service with the following client request.
 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;
  wsa:Tohttp://localhost:8281/services/StockQuoteProxy/wsa:To
  
 wsa:MessageIDurn:uuid:7A24BA37E7FBA1158F1230053211470/wsa:MessageID
  wsa:Actionurn:getQuote/wsa:Action
   /soapenv:Header
   soapenv:Body
  m0:getQuote xmlns:m0=http://services.samples;
 m0:request
m0:symbolIBM/m0:symbol
 /m0:request
  /m0:getQuote
   /soapenv:Body
/soapenv:Envelope
 Then the response message does not have the addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



[jira] Resolved: (SYNAPSE-492) synapse does not add addressing headers to addresing client response

2009-03-04 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-492.
--

   Resolution: Fixed
Fix Version/s: 1.3

committed the patch from Amila. sould be fixed and will be available with the 
1.3 release.

 synapse does not add addressing headers to addresing client response
 

 Key: SYNAPSE-492
 URL: https://issues.apache.org/jira/browse/SYNAPSE-492
 Project: Synapse
  Issue Type: Bug
Reporter: Amila Chinthaka Suriarachchi
Assignee: Ruwan Linton
 Fix For: 1.3

 Attachments: patch.txt


 Create a proxy service with the following synapse configuration.
 definitions xmlns=http://ws.apache.org/ns/synapse;
 proxy name=StockQuoteProxy
 target
 inSequence
 header name=wsrm:SequenceAcknowledgement 
 action=remove
 
 xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm/
 header name=wsrm:Sequence action=remove
 
 xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm/
 send
 endpoint
 address 
 uri=http://localhost:9001/services/SimpleStockQuoteService/
 /endpoint
 /send
 /inSequence
 outSequence
 send/
 /outSequence
 /target
 /proxy
 /definitions
 Note that for proxy service end point addressing is not engaged. 
 Then invoke this proxy service with the following client request.
 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;
  wsa:Tohttp://localhost:8281/services/StockQuoteProxy/wsa:To
  
 wsa:MessageIDurn:uuid:7A24BA37E7FBA1158F1230053211470/wsa:MessageID
  wsa:Actionurn:getQuote/wsa:Action
   /soapenv:Header
   soapenv:Body
  m0:getQuote xmlns:m0=http://services.samples;
 m0:request
m0:symbolIBM/m0:symbol
 /m0:request
  /m0:getQuote
   /soapenv:Body
/soapenv:Envelope
 Then the response message does not have the addressing headers.

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Synapse smoke failure

2009-03-04 Thread Ruwan Linton
Hi devs,

I am seeing a smoke failure in synapse I couldn't get any of the samples
to run on synapse and to me it seems like a change in the axis2 causes this
issue. Asankha have you tried any samples after moving to the axis2 1.5
branch? (Just want to see whether this is local to me or a real issue).

I am working on this

The stack trace I see on synapse is as follows and we should be able to get
rid of this by setting the message context property
addressing.validateAction to false, but the issue is addressing based
dispatcher is coming before the Synapse Dispatcher and we might need to add
a new handler to fix this issue.

org.apache.axis2.AxisFault: The [action] cannot be processed at the
receiver.
at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
at
org.apache.axis2.dispatchers.AddressingBasedDispatcher.checkAction(AddressingBasedDispatcher.java:141)
at
org.apache.axis2.dispatchers.AddressingBasedDispatcher.invoke(AddressingBasedDispatcher.java:126)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
at
org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:287)
at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:194)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Thanks,
Ruwan

-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Synapse smoke failure

2009-03-04 Thread Ruwan Linton
and is not working in r749213 :( Indika??

Thanks,
Ruwan

On Thu, Mar 5, 2009 at 8:09 AM, Ruwan Linton ruwan.lin...@gmail.com wrote:

 Well, this works on r749043 meaning that it is a regression by the changes
 but not came from axis2.

 In the process of analyzing the issue...

 Thanks,
 Ruwan


 On Thu, Mar 5, 2009 at 7:35 AM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Hi devs,

 I am seeing a smoke failure in synapse I couldn't get any of the
 samples to run on synapse and to me it seems like a change in the axis2
 causes this issue. Asankha have you tried any samples after moving to the
 axis2 1.5 branch? (Just want to see whether this is local to me or a real
 issue).

 I am working on this

 The stack trace I see on synapse is as follows and we should be able to
 get rid of this by setting the message context property
 addressing.validateAction to false, but the issue is addressing based
 dispatcher is coming before the Synapse Dispatcher and we might need to add
 a new handler to fix this issue.

 org.apache.axis2.AxisFault: The [action] cannot be processed at the
 receiver.
 at
 org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
 at
 org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
 at
 org.apache.axis2.dispatchers.AddressingBasedDispatcher.checkAction(AddressingBasedDispatcher.java:141)
 at
 org.apache.axis2.dispatchers.AddressingBasedDispatcher.invoke(AddressingBasedDispatcher.java:126)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:287)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:194)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:595)

 Thanks,
 Ruwan

 --
 Ruwan Linton
 http://wso2.org - Oxygenating the Web Services Platform
 http://ruwansblog.blogspot.com/




 --
 Ruwan Linton
 http://wso2.org - Oxygenating the Web Services Platform
 http://ruwansblog.blogspot.com/




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Synapse smoke failure

2009-03-04 Thread Ruwan Linton
Copying the axis2-dev list as well

well, I don't think the patch solves the problem... we need to handle the
situation rather than neglecting it. Ideally you should not get ISE.

Thanks,
Ruwan

On Thu, Mar 5, 2009 at 11:04 AM, Hiranya Jayathilaka
hiranya...@gmail.comwrote:

 Hi Ruwan,
 This is a problem with the ListenerManager shutdown hook impl. See
 AXIS2-4212 for details.

 Thanks,
 Hiranya


 On Thu, Mar 5, 2009 at 10:23 AM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Issue one is fixed with the help from indika, but the shutdown issue still
 persists.

 Thanks,
 Ruwan


 On Thu, Mar 5, 2009 at 8:31 AM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Further, when shutting down the server;

 2009-03-05 08:30:25,047 [-] [Thread-5]  INFO SynapseServer Shutting down
 Apache Synapse ...
 Exception in thread Thread-1 java.lang.IllegalStateException: Shutdown
 in progress
 at java.lang.Shutdown.remove(Shutdown.java:104)
 at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
 at
 org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:155)
 at
 org.apache.axis2.engine.ListenerManager$ListenerManagerShutdownThread.run(ListenerManager.java:258)
 2009-03-05 08:30:25,097 [-] [Thread-5] ERROR Axis2SynapseController Error
 stopping the Axis2 Based Server Environment
 java.lang.IllegalStateException: Shutdown in progress
 at java.lang.Shutdown.remove(Shutdown.java:104)
 at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
 at
 org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:155)
 at
 org.apache.synapse.Axis2SynapseController.destroy(Axis2SynapseController.java:137)
 at
 org.apache.synapse.ServerManager.doStop(ServerManager.java:165)
 at org.apache.synapse.ServerManager.stop(ServerManager.java:87)
 at org.apache.synapse.SynapseServer$1.run(SynapseServer.java:74)
 2009-03-05 08:30:25,102 [-] [Thread-5]  INFO SynapseServer Shutdown
 complete
 2009-03-05 08:30:25,102 [-] [Thread-5]  INFO SynapseServer Halting JVM

 Thanks,
 Ruwan


 On Thu, Mar 5, 2009 at 8:16 AM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 and is not working in r749213 :( Indika??

 Thanks,
 Ruwan


 On Thu, Mar 5, 2009 at 8:09 AM, Ruwan Linton ruwan.lin...@gmail.comwrote:

 Well, this works on r749043 meaning that it is a regression by the
 changes but not came from axis2.

 In the process of analyzing the issue...

 Thanks,
 Ruwan


 On Thu, Mar 5, 2009 at 7:35 AM, Ruwan Linton 
 ruwan.lin...@gmail.comwrote:

 Hi devs,

 I am seeing a smoke failure in synapse I couldn't get any of the
 samples to run on synapse and to me it seems like a change in the axis2
 causes this issue. Asankha have you tried any samples after moving to the
 axis2 1.5 branch? (Just want to see whether this is local to me or a real
 issue).

 I am working on this

 The stack trace I see on synapse is as follows and we should be able
 to get rid of this by setting the message context property
 addressing.validateAction to false, but the issue is addressing based
 dispatcher is coming before the Synapse Dispatcher and we might need to 
 add
 a new handler to fix this issue.

 org.apache.axis2.AxisFault: The [action] cannot be processed at the
 receiver.
 at
 org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
 at
 org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
 at
 org.apache.axis2.dispatchers.AddressingBasedDispatcher.checkAction(AddressingBasedDispatcher.java:141)
 at
 org.apache.axis2.dispatchers.AddressingBasedDispatcher.invoke(AddressingBasedDispatcher.java:126)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
 at
 org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
 at
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:287)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:194)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:595)

 Thanks,
 Ruwan

 --
 Ruwan Linton
 http://wso2.org - Oxygenating the Web Services Platform
 http://ruwansblog.blogspot.com/




 --
 Ruwan Linton
 http://wso2.org - Oxygenating the Web Services Platform
 http://ruwansblog.blogspot.com/




 --
 Ruwan Linton
 http://wso2.org - Oxygenating the Web Services Platform
 http://ruwansblog.blogspot.com/




 --
 Ruwan Linton
 http://wso2.org

Re: VFS - Synapse Memory Leak

2009-03-04 Thread Ruwan Linton
Can you report a JIRA issue on this in synapse JIRA?

https://issues.apache.org/jira/browse/SYNAPSE

Thanks,
Ruwan

On Thu, Mar 5, 2009 at 11:51 AM, kimhorn kim.h...@icsglobal.net wrote:


 Thats good; as this stops us using Synapse.



 Asankha C. Perera wrote:
 
 
  Exception in thread vfs-Worker-4 java.lang.OutOfMemoryError: Java heap
  space
  at
 
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
  at
  java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518)
  at java.lang.StringBuffer.append(StringBuffer.java:307)
  at java.io.StringWriter.write(StringWriter.java:72)
  at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1129)
  at org.apache.commons.io.IOUtils.copy(IOUtils.java:1104)
  at org.apache.commons.io.IOUtils.copy(IOUtils.java:1078)
  at org.apache.commons.io.IOUtils.toString(IOUtils.java:382)
  at
 
 org.apache.synapse.format.PlainTextBuilder.processDocument(PlainTextBuilder.java:68)
 
  Since the content type is text, the plain text formatter is trying to
  use a String to parse as I see.. which is a problem for large content..
 
  A definite bug we need to fix ..
 
  cheers
  asankha
 
  --
  Asankha C. Perera
  AdroitLogic, http://adroitlogic.org
 
  http://esbmagic.blogspot.com
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/VFS---Synapse-Memory-Leak-tp22344176p22345904.html
 Sent from the Synapse - Dev mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[Proposal] Enable the messages to be able to dispatched to sequences

2009-03-03 Thread Ruwan Linton
Hi devs,

I would like to propose to implement the ability to dispatch messages
directly to sequences.

For the moment, all the messages which are coming in the message mediation
is going to be dispatched into the main sequence and if you want different
messages to be directed to different sequences then you need to have a
filter in the main sequence, which will make the main sequence to be very
complex. Or you need to go through the proxy services model.

So, I propose we enable the sequence dispatching and the messages will be
dispatched to the sequences based on the URL.

If the sequence name is foo the messages coming into the address 
http://localhost:8280/sequences/foo; will be dispatched into the sequence
foo.

WDYT?

Thanks,
Ruwan

-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Assigned: (SYNAPSE-480) Transaction mediator for synapse

2009-03-03 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-480:


Assignee: Ruwan Linton

 Transaction mediator for synapse
 

 Key: SYNAPSE-480
 URL: https://issues.apache.org/jira/browse/SYNAPSE-480
 Project: Synapse
  Issue Type: New Feature
  Components: Core
Affects Versions: FUTURE
Reporter: irantha suwandarathna
Assignee: Ruwan Linton
 Fix For: FUTURE

 Attachments: tx_mediator.patch, tx_mediator.patch


 New synapse mediator to manipulate JTA transactions. 
  
 syanpse.xml configuration for new mediator:
 transaction 
 action=new|use-existing-or-new|fault-if-no-tx|commit|rollback|suspend|resume/
  
 Meaning of action attribute values are explained below:
 new : create a new jta transaction. generate a fault if a transaction already 
 exist.
 use-existing-or-new : create a new jta transaction. do nothing if a 
 transaction exist.
 fault-if-no-tx : generate a fault if no transaction exist.  do nothing if a 
 transaction exist.
 commit : commit transaction. generate a fault if no transaction exist.
 rollback: rollback transaction. generate a fault if no transaction exist.
 suspend: suspend transaction. generate a fault if no transaction exist.
 resume: resume transaction. generate a fault if no transaction exist.
  
 There will be a new transaction configuration section in axis2.xml to define 
 UserTransaction (used to create a new transaction) and TransactionManager 
 (need for suspend and resume actions ) JNDI parameters.
 newly created usertransaction is assigned to axis2 message context property 
 named BaseConstants.USER_TRANSACTION and newly created transaction manager is 
 assigned to axis2 message context property named 
 BaseConstants.TRANSACTION_MANAGER
  
 Same message context property is used by JMS transport when creating a new 
 usertransaction. 

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: [Proposal] Enable the messages to be able to dispatched to sequences

2009-03-03 Thread Ruwan Linton
True, so to avoid that risk we could introduce an attribute to the sequence
configuration to specify whether the user wants to expose this sequence or
not. And we can make them not exposed by default.

Thanks,
Ruwan

On Wed, Mar 4, 2009 at 1:47 AM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 Is there no security risk here? If I understand the proposal
 correctly, it would be possible to invoke any named sequence, even if
 it is not intended to be exposed. This could potentially be dangerous.

 Andreas

 On Tue, Mar 3, 2009 at 20:53, Ruwan Linton ruwan.lin...@gmail.com wrote:
  Hi devs,
 
  I would like to propose to implement the ability to dispatch messages
  directly to sequences.
 
  For the moment, all the messages which are coming in the message
 mediation
  is going to be dispatched into the main sequence and if you want
 different
  messages to be directed to different sequences then you need to have a
  filter in the main sequence, which will make the main sequence to be very
  complex. Or you need to go through the proxy services model.
 
  So, I propose we enable the sequence dispatching and the messages will be
  dispatched to the sequences based on the URL.
 
  If the sequence name is foo the messages coming into the address
  http://localhost:8280/sequences/foo; will be dispatched into the
 sequence
  foo.
 
  WDYT?
 
  Thanks,
  Ruwan
 
  --
  Ruwan Linton
  http://wso2.org - Oxygenating the Web Services Platform
  http://ruwansblog.blogspot.com/
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Updated: (SYNAPSE-480) Transaction mediator for synapse

2009-03-03 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton updated SYNAPSE-480:
-

Affects Version/s: (was: FUTURE)
   1.2

changed the affects version

 Transaction mediator for synapse
 

 Key: SYNAPSE-480
 URL: https://issues.apache.org/jira/browse/SYNAPSE-480
 Project: Synapse
  Issue Type: New Feature
  Components: Core
Affects Versions: 1.2
Reporter: irantha suwandarathna
Assignee: Ruwan Linton
 Fix For: 1.3

 Attachments: tx_mediator.patch, tx_mediator.patch


 New synapse mediator to manipulate JTA transactions. 
  
 syanpse.xml configuration for new mediator:
 transaction 
 action=new|use-existing-or-new|fault-if-no-tx|commit|rollback|suspend|resume/
  
 Meaning of action attribute values are explained below:
 new : create a new jta transaction. generate a fault if a transaction already 
 exist.
 use-existing-or-new : create a new jta transaction. do nothing if a 
 transaction exist.
 fault-if-no-tx : generate a fault if no transaction exist.  do nothing if a 
 transaction exist.
 commit : commit transaction. generate a fault if no transaction exist.
 rollback: rollback transaction. generate a fault if no transaction exist.
 suspend: suspend transaction. generate a fault if no transaction exist.
 resume: resume transaction. generate a fault if no transaction exist.
  
 There will be a new transaction configuration section in axis2.xml to define 
 UserTransaction (used to create a new transaction) and TransactionManager 
 (need for suspend and resume actions ) JNDI parameters.
 newly created usertransaction is assigned to axis2 message context property 
 named BaseConstants.USER_TRANSACTION and newly created transaction manager is 
 assigned to axis2 message context property named 
 BaseConstants.TRANSACTION_MANAGER
  
 Same message context property is used by JMS transport when creating a new 
 usertransaction. 

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



Re: [Proposal] Enable the messages to be able to dispatched to sequences

2009-03-03 Thread Ruwan Linton
On Wed, Mar 4, 2009 at 2:04 AM, Asankha C. Perera asan...@apache.orgwrote:

 Ruwan

 True, so to avoid that risk we could introduce an attribute to the
 sequence configuration to specify whether the user wants to expose this
 sequence or not. And we can make them not exposed by default.

 I am +1 for this proposal.. also maybe the mandatory sequence could be used
 to handle security for this case, which is a valid point as highlighted.


Yeah, we the user could handle security at the mandatory sequence, which
will be executed for all messages coming into synapse.

Thanks,
Ruwan




 cheers
 asankha

 --
 Asankha C. Perera
 AdroitLogic, http://adroitlogic.org

 http://esbmagic.blogspot.com






 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Unable to run samples 351 and 352 on Windows

2009-03-03 Thread Ruwan Linton
Nice to hear that you got it to work. Hope you can use synapse now ;-) I was
unable to reproduce this issue and that is why I wanted the full log just to
have a look at your environment.

Thanks for letting us know that you got it resolved.

Thanks,
Ruwan

On Wed, Mar 4, 2009 at 4:59 AM, kimhorn kim.h...@icsglobal.net wrote:


 Resolved the problem; FIXED, was environment problem :-)

 JAVA_HOME is irrelevant. Not used by some components.
 Unless the PATH has Java set at start it can run another Java; Whatever
 Microsoft downloads into system.
 So:
 set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_17
 set Path=C:\Program

 Files\Java\jdk1.5.0_17\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

 Below is bad:

 set Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Java\jdk1.5.0_17\bin;

 What is strange is that 3 machines worked, then gradually stopped working
 randomly,
 then never worked. I still cannot understand how the scripts worked
 randomly
 ?

 But thats the risk of using Windows...



 kimhorn wrote:
 
  See Random Start Up Error by kimhorn  postedFeb 26
  Its the complete output, and I attached a log here too
   http://www.nabble.com/file/p22319212/synapse.log synapse.log
 
  I re-build a new machine with virtually no software on it.
  I get the same problems...can't use Synapse.
 
 
 
  Ruwan Linton wrote:
 
  Can you please attach the complete log of the ESB when running this
  sample?
  May be you could attach this to the JIRA issue after reopening the issue
  as
  Asankha pointed.
 
  Thanks,
  Ruwan
 
 
  On Tue, Mar 3, 2009 at 10:20 AM, kimhorn kim.h...@icsglobal.net
 wrote:
 
 
  1.2 Release. I removed all other sources of BSF and it
  made no difference.
 
 
 
  Ruwan Linton wrote:
  
   Hi Kim,
  
   Are you using the synapse SNAPSHOT or the 1.2 release?
  
   Do you have any other Apache BSF based product installed? it seems
  like
  an
   issue with the BSF, which is not properly initialized in this
  particular
   case. :(
  
   Thanks,
   Ruwan
  
   On Tue, Mar 3, 2009 at 6:58 AM, Asankha C. Perera
   asan...@apache.orgwrote:
  
Hi Kim
  
I have this same error; as previously raised in Jira:
  
   [jira] Created: (SYNAPSE-336) [Windows] Unable to start sample 351
  and
   352
   on Windows due to an issue regarding scripts.
  
   This Jira was never acted on and dismissed; However  I can reproduce
  it
   on
   2 machines  and now cannot now use synapse. It appears Synapse is
 too
   unstable / unreliable to use on Windows. I am using a large number
 of
   other
   Java applications/app servers etc and this is the first app that
  fails
  on
   Windows !!!
  
   I am using Java: JAVA_HOME=C:\Program Files\Java\jdk1.5.0_17
  
   This is related to Random Start Up Error message of last week;
  however I
   can now reliable reproduce this as these samples never run.
  
   Can you reopen the JIRA and attach any information we could use
 (e.g.
   exact
   OS version, SP level etc) and path installed (i.e. if spaces are
   present..)
   to reproduce the problem. We could then work on doing whats required
  to
   resolve it properly. All of the many production deployments I know
 of
   Synapse are on non-Windows platforms. Is there a temporary
 workaround
  for
   you to deploy Synapse in a Linux environment for development
  purposes?
  
   cheers
   asankha
  
   --
   Asankha C. Perera
   AdroitLogic, http://adroitlogic.org
   http://esbmagic.blogspot.com
  
  
  
  
  
   --
   Ruwan Linton
   http://wso2.org - Oxygenating the Web Services Platform
   http://ruwansblog.blogspot.com/
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Unable-to-run-samples-351-and-352-on-Windows-tp22300530p22302478.html
  Sent from the Synapse - Dev mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 
 
 
  --
  Ruwan Linton
  http://wso2.org - Oxygenating the Web Services Platform
  http://ruwansblog.blogspot.com/
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Unable-to-run-samples-351-and-352-on-Windows-tp22300530p22320454.html
 Sent from the Synapse - Dev mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Switch to the axis2 1.5 branch

2009-02-25 Thread Ruwan Linton
Yeah if we use a fix version like 1.5-beta-2 we will not get updates unless
we remove the existing artifacts from the maven repo.

Any way I am +1 for depending on the SNAPSHOT and Asankha, if you can get
this done that would be great.

Thanks,
Ruwan

On Wed, Feb 25, 2009 at 2:22 PM, Andreas Veithen
andreas.veit...@gmail.comwrote:

 Note that if we want nightly builds from the Axis2 1.5 branch, then we
 will have to change the version from 1.5-beta-2 to something like
 1.5-SNAPSHOT.

 Andreas

 On Wed, Feb 25, 2009 at 05:20, Asankha C. Perera asan...@apache.org
 wrote:
  Hi Ruwan
 
  One option is to branch off the synapse trunk, which adds a pain of
  committing to both branch and trunk. Or we could get the axis2 artifacts
  uploaded into maven repositories but the version of axis2 branch is
  1.5-beta-2 we cannot publish these artifacts unless we are done with the
  1.5-beta-2.
 
  BTW: Thanks azeez for the patch I will apply this and commit the
 changes,
  after resolving this particular issue that we are currently discussing.
 
  Ruwan, lets add the Apache snapshot repo [1], and get an Axis2 nightly to
  publish there to work.. including getting daily updates of the Axis2 1.5
  branch and the transports etc.. I can probably do this with Hudson, shall
 I
  go ahead?
 
  thanks
  asankha
 
  [1] http://people.apache.org/repo/m2-snapshot-repository
 
  --
  Asankha C. Perera
  http://adroitlogic.org
 
  http://esbmagic.blogspot.com
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: svn commit: r744950 - in /synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/core/axis2/ core/src/main/java/org/apache/synapse/endpoints/ core/src/main/java/org/apache/synapse/med

2009-02-22 Thread Ruwan Linton
.clustering.context.Replicator.replicate(
  +org.apache.axis2.clustering.state.Replicator.replicate(
  configCtx, new String[]{key});
 
  if (log.isDebugEnabled()) {
 
  Modified:
 synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java
  URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java?rev=744950r1=744949r2=744950view=diff
 
 ==
  ---
 synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java
 (original)
  +++
 synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java
 Mon Feb 16 15:57:48 2009
  @@ -30,9 +30,9 @@
   import org.apache.synapse.core.axis2.Axis2MessageContext;
   import org.apache.synapse.mediators.AbstractMediator;
   import org.apache.axis2.context.ConfigurationContext;
  -import org.apache.axis2.clustering.context.Replicator;
  +import org.apache.axis2.clustering.state.Replicator;
   import org.apache.axis2.clustering.ClusteringFault;
  -import org.apache.axis2.clustering.ClusterManager;
  +import org.apache.axis2.clustering.ClusteringAgent;
   import org.wso2.throttle.*;
 
 
  @@ -120,9 +120,9 @@
  //To ensure check for clustering environment only happens one
 time
  if ((throttle == null  !isResponse) || (isResponse
   concurrentAccessController == null)) {
  -ClusterManager clusterManager =
 cc.getAxisConfiguration().getClusterManager();
  -if (clusterManager != null 
  -clusterManager.getContextManager() != null) {
  +ClusteringAgent clusteringAgent =
 cc.getAxisConfiguration().getClusteringAgent();
  +if (clusteringAgent != null 
  +clusteringAgent.getStateManager() != null) {
  isClusteringEnable = true;
  }
  }
 
  Modified:
 synapse/trunk/java/modules/samples/src/main/java/samples/util/SampleAxis2ServerManager.java
  URL:
 http://svn.apache.org/viewvc/synapse/trunk/java/modules/samples/src/main/java/samples/util/SampleAxis2ServerManager.java?rev=744950r1=744949r2=744950view=diff
 
 ==
  ---
 synapse/trunk/java/modules/samples/src/main/java/samples/util/SampleAxis2ServerManager.java
 (original)
  +++
 synapse/trunk/java/modules/samples/src/main/java/samples/util/SampleAxis2ServerManager.java
 Mon Feb 16 15:57:48 2009
  @@ -25,7 +25,7 @@
   import org.apache.axis2.util.CommandLineOption;
   import org.apache.axis2.util.CommandLineOptionParser;
   import org.apache.axis2.util.OptionsValidator;
  -import org.apache.axis2.clustering.ClusterManager;
  +import org.apache.axis2.clustering.ClusteringAgent;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
 
  @@ -98,11 +98,11 @@
  // Need to initialize the cluster manager at last since we
 are changing the servers
  // HTTP/S ports above. In the axis2.xml file, we need to set
 the AvoidInitiation param
  // to true
  -ClusterManager clusterManager =
  -
  configctx.getAxisConfiguration().getClusterManager();
  -if(clusterManager != null) {
  -clusterManager.setConfigurationContext(configctx);
  -clusterManager.init();
  +ClusteringAgent clusteringAgent =
  +
  configctx.getAxisConfiguration().getClusteringAgent();
  +if(clusteringAgent != null) {
  +clusteringAgent.setConfigurationContext(configctx);
  +clusteringAgent.init();
  }
 
  // Finally start the transport listeners
 
 
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Spring Bean Serializer for Synapse Spring Mediator

2009-02-16 Thread Ruwan Linton
Charith,

I also think that this better fits to the WSO2 ESB code than to synapse,
because the serialization part is not required and not supported by Synapse
at all.

Thanks,
Ruwan

On Mon, Feb 16, 2009 at 8:15 PM, Asankha C. Perera asan...@apache.orgwrote:

 Hi Charith

 I what is in my mind is ex: the Spring Bean that we populate as a mediator
 from the Spring config  has a feild of a Interface Type and at the Run time
 users change the implementation object type using a Admin Console.And when
 we shutdown the Synapse we need to  Serialise that.So what i did was wrote a
 algorithem to traverse through Spring Beans Object Structure and make a
 Spring XML for that and put it in the work/temp directory so users can
 change there Spring xml in Registry/File by looking at it if it is need.

 But Yes I have a doubt that is it a requrement of Synapse.Thats why i
 didnt created  a jira.
 I'll attach a sample class to relflect my idea clearly.

 Since Synapse does not have an admin console, I think your code would be of
 value with the WSO2 ESB codebase


 cheers
 asankha

 --
 Asankha C. Perera
 http://adroitlogic.org

 http://esbmagic.blogspot.com


 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


[jira] Assigned: (SYNAPSE-497) Synapse Spring Mediator Sample

2009-02-16 Thread Ruwan Linton (JIRA)

 [ 
https://issues.apache.org/jira/browse/SYNAPSE-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton reassigned SYNAPSE-497:


Assignee: Ruwan Linton

 Synapse Spring Mediator Sample
 --

 Key: SYNAPSE-497
 URL: https://issues.apache.org/jira/browse/SYNAPSE-497
 Project: Synapse
  Issue Type: Improvement
  Components: Extension Mediators
Affects Versions: NIGHTLY
Reporter: Charith Dhanushka Wickramarachchi
Assignee: Ruwan Linton
Priority: Minor
 Attachments: Spring_Mediator_Sample.patch


 Hi ,
 There is no Sample for the Spring mediator in Synapse.So i have added a 
 sample that shows How to initialize and use a Spring Bean in synapse as a 
 Mediator.I added it as sample 440 and i updated the synapse sample guide for 
 that.
 thank you,
 Charith Dhanushka Wickramarachchi

-- 
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: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org



The WSO2 ESB 2.0 Released!

2009-02-06 Thread Ruwan Linton
 they are resolved, and comment on the
progress.. Discussion
Forums Alternatively, questions could be raised using the forums
available. WSO2
ESB Forum http://wso2.org/forum/187 : Discussion forum for WSO2 ESB
developers/users Training WSO2 Inc. offers a variety of professional
Training Programs, including training on general Web services as well as
WSO2 ESB, Apache Synapse, Apache Axis2 and number of other products. For
additional support information please refer to
http://wso2.com/training/course-catalog/ Support WSO2 Inc. offers a variety
of development and production support programs, ranging from Web-based
support up through normal business hours, to premium 24x7 phone support. For
additional support information please refer to http://wso2.com/support/ For
more information on WSO2 ESB, visit the WSO2 Oxygen Tank (http://wso2.org)
We welcome your feedback on this implementation. Thank you for your interest
in WSO2 ESB.

*-- The WSO2 ESB Team --*


-- 
Ruwan Linton
Product Manager - WSO2 ESB
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Bundling of transports with the distribution - what should be the default?

2009-01-14 Thread Ruwan Linton
I also think that the fix transport has to be an optional one, any way we
are not shipping the dependencies of the fix transport, so why don't we keep
that off by default?

I am completely +1 for shipping the http/s, jms, mail and vfs.

Thanks,
Ruwan

On Wed, Jan 14, 2009 at 10:35 AM, Paul Fremantle pzf...@gmail.com wrote:

 Good question!

 I support including http/s, jms, vfs, mail as defaults. I'm 50/50 on
 fix and xmpp (I could be persuaded of either approach). I agree amqp
 should be separate.

 Paul

 On Tue, Jan 13, 2009 at 10:22 AM, Asankha C. Perera asan...@apache.org
 wrote:
  Hi All
 
  Although theoretically any Axis2 transport should work with Synapse,
 there
  could very well be cases where some might not. To limit the distribution
  size and dependencies, I thought we should bundle the main transports
 that
  have been well tested over the past months, and which contains samples,
 and
   where we could find at least one of us to support potential users. For
 the
  other transports, we could make them available as optional bundles (maybe
  even copy them into a lib/optional) but without other 3rd party
  dependencies.
 
  The transports I am thinking of bundling by default are http/s, jms, vfs,
  mail, fix. We could easily include the pipe, udp and tcp transports into
  this list, and maybe Andreas could provide a simple sample for each of
  these? I would like to hear your thoughts about amqp, xmpp and the local
  transport - and if anyone thinks we should include these by default.
 
  I also restarted Hudson, and the build ran fine a few minutes ago.. Also
  FYI, probably you have already noticed that mvn 2.0.9 wanted to download
  some artifacts when running offline.. I switched to mvn 2.1.0-M1 a while
  ago, and it seems like it behaves better for offline builds..
 
  cheers
  asankha
 
  --
  Asankha C. Perera
  http://adroitlogic.org
 
  http://esbmagic.blogspot.com
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
  For additional commands, e-mail: dev-h...@synapse.apache.org
 
 



 --
 Paul Fremantle
 Co-Founder and CTO, WSO2
 Apache Synapse PMC Chair
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 p...@wso2.com

 Oxygenating the Web Service Platform, www.wso2.com

 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


Re: Dynamically loading proxy configuration in synapse.xml

2008-12-31 Thread Ruwan Linton
+1, I also think this needs to be discussed and the use of registry should
be configurable and we should think more about the 3rd point made by asakha
on disconnected operation in the above pointed mail.

Thanks,
Ruwan

On Wed, Dec 31, 2008 at 9:59 AM, Asankha C. Perera asan...@apache.orgwrote:

 Hi Ruwan

 At the same time, we need to provide the ability to load the proxy
 services
 from the registry too.


 Some months back I wrote an email [1] about some issues we have with
 dynamically loading stuff off the registry

 I think we should revisit it, since no one shared any views back then, and
 have a consolidated approach to control how dynamic we allow a configuration
 to be.

 cheers
 asankha

 [1] http://markmail.org/message/iuhojtnx45ss5fuy

 --
 Asankha C. Perera
 http://adroitlogic.org

 http://esbmagic.blogspot.com


 -
 To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
 For additional commands, e-mail: dev-h...@synapse.apache.org




-- 
Ruwan Linton
http://wso2.org - Oxygenating the Web Services Platform
http://ruwansblog.blogspot.com/


<    1   2   3   4   5   6   7   8   >