[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sandesha-dev
Subject:    Re: Support for exposing ejb 3.x as web-services
From:       Supun Malinga <supunm () wso2 ! com>
Date:       2011-11-30 13:43:34
Message-ID: CACd4kVJd8KN6oRxX6Pd3HNHGb2zCL7QRO=K0XLqET26XpPxrqQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

On Wed, Nov 30, 2011 at 6:59 PM, Isuru Suriarachchi <isurues@gmail.com>wrote:

> Hi Supun,
>
> Please try to create some samples as well for EJB 3.0 support.
>
sure will do.

thanks,

>
> Thanks,
> ~Isuru
>
>
> On Wed, Nov 30, 2011 at 5:11 PM, Supun Malinga <supunm@wso2.com> wrote:
>
>> Hi All,
>>
>> 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
>>
>> Created a jira @ [1].
>> Attached a draft patch to the jira. I'll further look into do more fine
>> tuning and testing with different appservers.
>>
>> [1] https://issues.apache.org/jira/browse/AXIS2-5204
>>
>> thanks,
>>
>> On Thu, Oct 13, 2011 at 12:05 PM, Supun Malinga <supunm@wso2.com> wrote:
>>
>>> Hi andreas,
>>> On Thu, Oct 13, 2011 at 12:26 AM, Andreas Veithen <
>>> andreas.veithen@gmail.com> wrote:
>>>
>>>> Some quick comments:
>>>>
>>>> * There have been lots of changes in EJB3, but AFAIK the only ones
>>>> relevant for Axis2 are those regarding the client view of a stateless
>>>> session bean. The only major change in that area is the removal of the
>>>> home interface. To cope with that you probably don't need to drop the
>>>> support for EJB2.
>>>>
>>>
>>> Agreed. will focus on sumedha's idea as well.
>>>
>>>
>>>> * People who use EJB3 embrace the J2EE specs and are likely to use the
>>>> Web service client view (i.e. the JAX-WS support provided by the
>>>> container) to expose their beans as Web Services. That is also much
>>>> more powerful than the RPC stuff in Axis2. Therefore it is actually
>>>> not unlikely that there are more people interested in EJB2 support (to
>>>> expose their legacy beans as Web services) than in EJB3 support.
>>>>
>>>
>>> AFAIU jax-ws support is only provided for stateless session beans. Also
>>> there are lots of ejb2 to ejb3 conversion tools available.
>>>
>>> thanks and regards,
>>>
>>>>
>>>> Andreas
>>>>
>>>> On Wed, Oct 12, 2011 at 03:03, Supun Malinga <supunm@wso2.com> wrote:
>>>> > Hi folks,
>>>> > 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.
>>>> > Ideas, comments are much appreciated.
>>>> > [1] http://axis.apache.org/axis2/java/core/docs/ejb-provider.html
>>>> > [2] http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history
>>>> >
>>>> > thanks,
>>>> > --
>>>> > Supun Malinga,
>>>> >
>>>> > Software Engineer,
>>>> > WSO2 Inc.
>>>> > http://wso2.com
>>>> > http://wso2.org
>>>> > email - supunm@wso2.com
>>>> > mobile - 071 56 91 321
>>>> >
>>>> >
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>>>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>> email - supunm@wso2.com <supuna@wso2.com>
>>> mobile - 071 56 91 321
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>> email - supunm@wso2.com <supuna@wso2.com>
>> mobile - 071 56 91 321
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>
>
>
>
> --
> Technical Lead,
> WSO2 Inc. http://wso2.org/
> Blog : http://isurues.wordpress.com/
>



-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - supunm@wso2.com <supuna@wso2.com>
mobile - 071 56 91 321

[Attachment #3 (text/html)]

Hi,<br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 6:59 PM, Isuru \
Suriarachchi <span dir="ltr">&lt;<a \
href="mailto:isurues@gmail.com">isurues@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">

Hi Supun,<div><br></div><div>Please try to create some samples as well for EJB 3.0 \
support.</div></blockquote><div>sure will do.</div><div><br></div><div>thanks, \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">

<div><br></div><div>Thanks,</div><div>~Isuru<div><div class="h5"><br><br><div \
class="gmail_quote">On Wed, Nov 30, 2011 at 5:11 PM, Supun Malinga <span \
dir="ltr">&lt;<a href="mailto:supunm@wso2.com" \
target="_blank">supunm@wso2.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi All,<div><br></div><div>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.</div>


<div><div>org/apache/axis2/rpc/receivers/ejb/EJB3Util.java</div>

<div>org/apache/axis2/rpc/receivers/ejb/EJB3InOnlyMessageReceiver.jav</div><div>org/ap \
ache/axis2/rpc/receivers/ejb/EJB3MessageReceiver.java</div><div><br></div><div>Created \
a jira @ [1].</div><div>Attached a draft patch to the jira. I&#39;ll further look \
into do more fine tuning and testing with different appservers.</div>




<div><br></div><div>[1] <a href="https://issues.apache.org/jira/browse/AXIS2-5204" \
target="_blank">https://issues.apache.org/jira/browse/AXIS2-5204</a></div><div><br></div><div>thanks,</div><div><div></div><div>
 <br><div class="gmail_quote">On Thu, Oct 13, 2011 at 12:05 PM, Supun Malinga <span \
dir="ltr">&lt;<a href="mailto:supunm@wso2.com" \
target="_blank">supunm@wso2.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi andreas,<br><div class="gmail_quote"><div>On Thu, Oct 13, \
2011 at 12:26 AM, Andreas Veithen <span dir="ltr">&lt;<a \
href="mailto:andreas.veithen@gmail.com" \
target="_blank">andreas.veithen@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Some quick comments:<br>
<br>
* There have been lots of changes in EJB3, but AFAIK the only ones<br>
relevant for Axis2 are those regarding the client view of a stateless<br>
session bean. The only major change in that area is the removal of the<br>
home interface. To cope with that you probably don&#39;t need to drop the<br>
support for EJB2.<br></blockquote><div><br></div></div><div>Agreed. will focus on \
sumedha&#39;s idea as well.</div><div><div> </div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






* People who use EJB3 embrace the J2EE specs and are likely to use the<br>
Web service client view (i.e. the JAX-WS support provided by the<br>
container) to expose their beans as Web Services. That is also much<br>
more powerful than the RPC stuff in Axis2. Therefore it is actually<br>
not unlikely that there are more people interested in EJB2 support (to<br>
expose their legacy beans as Web services) than in EJB3 \
support.<br></blockquote><div><br></div></div><div>AFAIU jax-ws support is only \
provided for stateless session beans. Also there are lots of ejb2 to ejb3 conversion \
tools available. </div>





<div><br></div><div>thanks and regards,</div><div><div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <font color="#888888"><br>
Andreas<br>
</font><div><div></div><div><br>
On Wed, Oct 12, 2011 at 03:03, Supun Malinga &lt;<a href="mailto:supunm@wso2.com" \
target="_blank">supunm@wso2.com</a>&gt; wrote:<br> &gt; Hi folks,<br>
&gt; axis2 supports exposing ejb2 components as web-services. Refer [1]. This is<br>
&gt; handles via extending Message receiver to look-up jndi contexts and handle<br>
&gt; invocations.<br>
&gt; For eg: org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver<br>
&gt;             org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver<br>
&gt; Currently this implementation works with ejb 2.0.<br>
&gt; Since ejb 3.x has changed lot(from architectural level) since ejb2 this<br>
&gt; implementation is not usable with ejb 3. I&#39;m working on improving it to<br>
&gt; support ejb 3.0.<br>
&gt; But we may have to move away from support for ejb2 while doing this. As ejb<br>
&gt; 2 is a pretty old standard [2] and ejb 3 is widely used.<br>
&gt; I&#39;am still working to come up with a implementation for this.<br>
&gt; Ideas, comments are much appreciated.<br>
&gt; [1] <a href="http://axis.apache.org/axis2/java/core/docs/ejb-provider.html" \
target="_blank">http://axis.apache.org/axis2/java/core/docs/ejb-provider.html</a><br> \
&gt; [2] <a href="http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history" \
target="_blank">http://en.wikipedia.org/wiki/Enterprise_JavaBean#Version_history</a><br>
 &gt;<br>
&gt; thanks,<br>
&gt; --<br>
&gt; Supun Malinga,<br>
&gt;<br>
&gt; Software Engineer,<br>
&gt; WSO2 Inc.<br>
&gt; <a href="http://wso2.com" target="_blank">http://wso2.com</a><br>
&gt; <a href="http://wso2.org" target="_blank">http://wso2.org</a><br>
&gt; email - <a href="mailto:supunm@wso2.com" target="_blank">supunm@wso2.com</a><br>
&gt; mobile - <a href="tel:071%2056%2091%20321" value="+94715691321" \
target="_blank">071 56 91 321</a><br> &gt;<br>
&gt;<br>
<br>
</div></div><div><div></div><div>---------------------------------------------------------------------<br>
 To unsubscribe, e-mail: <a href="mailto:java-dev-unsubscribe@axis.apache.org" \
target="_blank">java-dev-unsubscribe@axis.apache.org</a><br> For additional commands, \
e-mail: <a href="mailto:java-dev-help@axis.apache.org" \
target="_blank">java-dev-help@axis.apache.org</a><br> <br>
</div></div></blockquote></div></div></div><div><div><br><br \
clear="all"><div><br></div>-- <br>Supun Malinga,<br><br>Software Engineer,<br>WSO2 \
Inc.<br><a href="http://wso2.com" target="_blank">http://wso2.com</a><br>

<a href="http://wso2.org" target="_blank">http://wso2.org</a><br>
email - <a href="mailto:supuna@wso2.com" \
target="_blank">supunm@wso2.com</a><br>mobile - <a href="tel:071%2056%2091%20321" \
value="+94715691321" target="_blank">071 56 91 321</a><br><br> \
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Supun \
Malinga,<br><br>Software Engineer,<br>WSO2 Inc.<br><a href="http://wso2.com" \
target="_blank">http://wso2.com</a><br><a href="http://wso2.org" \
target="_blank">http://wso2.org</a><br>




email - <a href="mailto:supuna@wso2.com" \
target="_blank">supunm@wso2.com</a><br>mobile - <a href="tel:071%2056%2091%20321" \
value="+94715691321" target="_blank">071 56 91 321</a><br><br> </div></div></div>
<br><br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a href="mailto:java-dev-unsubscribe@axis.apache.org" \
target="_blank">java-dev-unsubscribe@axis.apache.org</a><br> For additional commands, \
e-mail: <a href="mailto:java-dev-help@axis.apache.org" \
target="_blank">java-dev-help@axis.apache.org</a><br></blockquote></div><br><br \
clear="all"><div><br></div>-- <br></div></div>Technical Lead,<br>

WSO2 Inc. <a href="http://wso2.org/" target="_blank">http://wso2.org/</a><br>
Blog : <a href="http://isurues.wordpress.com/" \
target="_blank">http://isurues.wordpress.com/</a><br> </div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Supun \
Malinga,<br><br>Software Engineer,<br>WSO2 Inc.<br><a href="http://wso2.com" \
target="_blank">http://wso2.com</a><br><a href="http://wso2.org" \
target="_blank">http://wso2.org</a><br>

email - <a href="mailto:supuna@wso2.com" \
target="_blank">supunm@wso2.com</a><br>mobile - 071 56 91 321<br><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic