You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Supun Malinga (Created) (JIRA)" <ji...@apache.org> on 2011/11/30 12:37:40 UTC

[jira] [Created] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Support for exposing ejb 3.x as web-services
--------------------------------------------

                 Key: AXIS2-5204
                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
             Project: Axis2
          Issue Type: Improvement
          Components: adb
    Affects Versions: 1.6.1
            Reporter: Supun Malinga
             Fix For: 1.7.0


axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
            org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver

Currently this implementation works with ejb 2.0.
Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
I'am still working to come up with a implementation for this.

[1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
[2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Supun Malinga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159991#comment-13159991 ] 

Supun Malinga commented on AXIS2-5204:
--------------------------------------

After some work I could modify the ejb Message receivers to support ejb3.0. I made this as a separate message receiver. Three new classes introduced.
org/apache/axis2/rpc/receivers/ejb/EJB3Util.java
org/apache/axis2/rpc/receivers/ejb/EJB3InOnlyMessageReceiver.jav
org/apache/axis2/rpc/receivers/ejb/EJB3MessageReceiver.java

Attached a draft patch. I'll further look into do more fine tuning and testing with different appservers.
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185573#comment-13185573 ] 

Hudson commented on AXIS2-5204:
-------------------------------

Integrated in Axis2 #1227 (See [https://builds.apache.org/job/Axis2/1227/])
    Applied patch for AXIS2-5204.

sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/ejb/EJB3InOnlyMessageReceiver.java
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/ejb/EJB3MessageReceiver.java
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/ejb/EJB3Util.java

                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch, ejb3support_v2.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Supun Malinga (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Malinga updated AXIS2-5204:
---------------------------------

    Attachment: ejb3support_v2.patch

attaching the modified patch to reflect all the changes.
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch, ejb3support_v2.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160274#comment-13160274 ] 

Sagara Gunathunga  commented on AXIS2-5204:
-------------------------------------------

Hi Supun,

Since this is a new feature can you provide few unit test cases as well? Maintaining codes ( improvements and modification) become very hard and sometime impossible when we don't have proper test coverage and no one can guarantee these features will not break in future  works. Having few test cases solve most of those issues.    
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Supun Malinga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185545#comment-13185545 ] 

Supun Malinga commented on AXIS2-5204:
--------------------------------------

Hi Sagara,

Since the ejb scenario involves a external j2ee compliant Application Server it's bit difficult to identify a test case scenario. However I'll look into ways to write few test cases for this.

thanks,
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch, ejb3support_v2.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Supun Malinga (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Malinga updated AXIS2-5204:
---------------------------------

    Attachment: ejb3support_v1.patch

attaching the patch v1
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Supun Malinga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185695#comment-13185695 ] 

Supun Malinga commented on AXIS2-5204:
--------------------------------------

Hi,

yes.. In code level it's somewhat duplicated. But logically its different and the method java doc are different. Hence I decided against refactoring common code out of the two classes. Anyways there is few method contents that we can re-factor out.

I am currently working on a sample. Will provide a patch for that as well.

thanks,
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch, ejb3support_v2.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5204) Support for exposing ejb 3.x as web-services

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185552#comment-13185552 ] 

Sagara Gunathunga  commented on AXIS2-5204:
-------------------------------------------

Applied patch in r1231015. 

Few comments. 

1.) I noticed number of duplicate codes in EJB3Util and EJBUtil classes. 

2.) It's better to have a sample for this. 
                
> Support for exposing ejb 3.x as web-services
> --------------------------------------------
>
>                 Key: AXIS2-5204
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5204
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: ejb3support_v1.patch, ejb3support_v2.patch
>
>
> axis2 supports exposing ejb2 components as web-services. Refer [1]. This is handles via extending Message receiver to look-up jndi contexts and handle invocations.
> For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
>             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver
> Currently this implementation works with ejb 2.0.
> Since ejb 3.x has changed lot(from architectural level) since ejb2 this implementation is not usable with ejb 3. I'm working on improving it to support ejb 3.0.
> But we may have to move away from support for ejb2 while doing this. As ejb 2 is a pretty old standard [2] and ejb 3 is widely used.
> I'am still working to come up with a implementation for this.
> [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
> [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org