You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Wojtek Janiszewski (JIRA)" <de...@tuscany.apache.org> on 2008/06/25 20:32:45 UTC

[jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

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

Wojtek Janiszewski updated TUSCANY-2397:
----------------------------------------

    Attachment: host-corba-jira-2397-25th-june-2008.patch

Here's host-corba module implementation. It does: registering, unregistering and getting references to CORBA objects. It's not what you really wanted, but it should unblock path to further CORBA binding module development.

Maybe I'm getting you wrong, but I understand that some orbd instance should be spawned. We cannot easily run orbd from JDK - there is indeed com.sun.corba.se.impl.activation.ORBD but as far as I can see it cames without any Javadoc or support.

I'm also bit confused about http-host, http-jetty and http-tomcat - how and when appropriate module (http-jetty or http-tomcat) is beeing choosed and connected to host-http interface?

I'd appreciate any comments and clues.

Thanks,
Wojtek

> Binding corba should use a host-corba module
> --------------------------------------------
>
>                 Key: TUSCANY-2397
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2397
>             Project: Tuscany
>          Issue Type: Wish
>          Components: Java SCA Misc Binding Extensions
>            Reporter: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>         Attachments: host-corba-jira-2397-25th-june-2008.patch
>
>
> In order to allow an ORB instance to be shared by multiple services/references with Corba bindings, two new modules should be created.
> - Host-corba should define a Host interface for Corba ORBs, allowing Corba service binding providers to register Corba servants with an ORB.
> - Host-corba-jdk should implement that Host interface using the JDK ORB.
> Another Host-corba-yoko could be created later for an implementation of that Host interface using Yoko, which may be handy in a Geronimo environment for example.
> That approach is similar to the approach we've taken for HTTP with:
> - Host-http the extension interface for HTTP hosts
> - Host-jetty and Host-tomcat, implementations using Jetty and Tomcat.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

Posted by Raymond Feng <en...@gmail.com>.
Please see my comments inline.

Thanks,
Raymond

--------------------------------------------------
From: "Wojtek Janiszewski" <wo...@gmail.com>
Sent: Wednesday, June 25, 2008 3:34 PM
To: <de...@tuscany.apache.org>
Subject: Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a 
host-corba module

> It looks clear for me now. So I assume that:
> 1. host-corba-? would be specific ORB providers

Yes.

> 2. host-corba would contain logic to bind object, unbind object, get 
> reference basing on ORB obtained from host-corba-?

Maybe it could just be responsible to create the ORB instance. Then we can 
push more logic into the shared corba runtime.

> 3. JDK CORBA would be default. How would user declare usage of different 
> CORBA implementation (so usage of another host-corba-? module)?

It will be based on the META-INF/services/... file for the CorbaHost 
registration. Only one host should be made available for discovery.

>
> Could you also give me a tip where should I start to add this metadata to 
> map Java types to CORBA (the types are arrays, unions)?

You can experiment the annotation-based approach. But I would rather that 
you get some integration scenarios working first as I described in the other 
thread.

>
> Thanks,
> Wojtek
>
> Raymond Feng wrote:
>> Yes, CORBA provides a way to plug in ORB implementations using 
>> properties. How we want to expose these property configurations? I assume 
>> the CorbaHost can provide the value of these properties or it can create 
>> an ORB instance.
>>
>> Thanks,
>> Raymond
>>
>> --------------------------------------------------
>> From: "Wojtek Janiszewski" <wo...@gmail.com>
>> Sent: Wednesday, June 25, 2008 12:10 PM
>> To: <de...@tuscany.apache.org>
>> Subject: Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a 
>> host-corba module
>>
>>> But custom CORBA implementations can be plugged just by adding some 
>>> properties, why can't we go that way? Do you mean that specific 
>>> host-corba modules would set those properties?
>>>
>>> Thanks,
>>> Wojtek
>>>
>>> Raymond Feng wrote:
>>>> The main idea is to have the pluggability for different CORBA 
>>>> providers.
>>>>
>>>> For example,
>>>>
>>>> We could have host-corba to define the SPIs for other CORBA providers, 
>>>> then we could potentially have:
>>>>
>>>> host-corba-jdk: Use the CORBA implementation shipped by the JDK
>>>> host-corba-yoko: Use Yoko ORB
>>>>
>>>> Thanks,
>>>> Raymond
>>
>>
> 

Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

Posted by Wojtek Janiszewski <wo...@gmail.com>.
It looks clear for me now. So I assume that:
1. host-corba-? would be specific ORB providers
2. host-corba would contain logic to bind object, unbind object, get 
reference basing on ORB obtained from host-corba-?
3. JDK CORBA would be default. How would user declare usage of different 
CORBA implementation (so usage of another host-corba-? module)?

Could you also give me a tip where should I start to add this metadata 
to map Java types to CORBA (the types are arrays, unions)?

Thanks,
Wojtek

Raymond Feng wrote:
> Yes, CORBA provides a way to plug in ORB implementations using 
> properties. How we want to expose these property configurations? I 
> assume the CorbaHost can provide the value of these properties or it can 
> create an ORB instance.
> 
> Thanks,
> Raymond
> 
> --------------------------------------------------
> From: "Wojtek Janiszewski" <wo...@gmail.com>
> Sent: Wednesday, June 25, 2008 12:10 PM
> To: <de...@tuscany.apache.org>
> Subject: Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a 
> host-corba module
> 
>> But custom CORBA implementations can be plugged just by adding some 
>> properties, why can't we go that way? Do you mean that specific 
>> host-corba modules would set those properties?
>>
>> Thanks,
>> Wojtek
>>
>> Raymond Feng wrote:
>>> The main idea is to have the pluggability for different CORBA providers.
>>>
>>> For example,
>>>
>>> We could have host-corba to define the SPIs for other CORBA 
>>> providers, then we could potentially have:
>>>
>>> host-corba-jdk: Use the CORBA implementation shipped by the JDK
>>> host-corba-yoko: Use Yoko ORB
>>>
>>> Thanks,
>>> Raymond 
> 
> 


Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

Posted by Raymond Feng <en...@gmail.com>.
Yes, CORBA provides a way to plug in ORB implementations using properties. 
How we want to expose these property configurations? I assume the CorbaHost 
can provide the value of these properties or it can create an ORB instance.

Thanks,
Raymond

--------------------------------------------------
From: "Wojtek Janiszewski" <wo...@gmail.com>
Sent: Wednesday, June 25, 2008 12:10 PM
To: <de...@tuscany.apache.org>
Subject: Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a 
host-corba module

> But custom CORBA implementations can be plugged just by adding some 
> properties, why can't we go that way? Do you mean that specific host-corba 
> modules would set those properties?
>
> Thanks,
> Wojtek
>
> Raymond Feng wrote:
>> The main idea is to have the pluggability for different CORBA providers.
>>
>> For example,
>>
>> We could have host-corba to define the SPIs for other CORBA providers, 
>> then we could potentially have:
>>
>> host-corba-jdk: Use the CORBA implementation shipped by the JDK
>> host-corba-yoko: Use Yoko ORB
>>
>> Thanks,
>> Raymond 


Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

Posted by Wojtek Janiszewski <wo...@gmail.com>.
But custom CORBA implementations can be plugged just by adding some 
properties, why can't we go that way? Do you mean that specific 
host-corba modules would set those properties?

Thanks,
Wojtek

Raymond Feng wrote:
> The main idea is to have the pluggability for different CORBA providers.
> 
> For example,
> 
> We could have host-corba to define the SPIs for other CORBA providers, 
> then we could potentially have:
> 
> host-corba-jdk: Use the CORBA implementation shipped by the JDK
> host-corba-yoko: Use Yoko ORB
> 
> Thanks,
> Raymond

Re: [jira] Updated: (TUSCANY-2397) Binding corba should use a host-corba module

Posted by Raymond Feng <en...@gmail.com>.
The main idea is to have the pluggability for different CORBA providers.

For example,

We could have host-corba to define the SPIs for other CORBA providers, then 
we could potentially have:

host-corba-jdk: Use the CORBA implementation shipped by the JDK
host-corba-yoko: Use Yoko ORB

Thanks,
Raymond
--------------------------------------------------
From: "Wojtek Janiszewski (JIRA)" <de...@tuscany.apache.org>
Sent: Wednesday, June 25, 2008 11:32 AM
To: <de...@tuscany.apache.org>
Subject: [jira] Updated: (TUSCANY-2397) Binding corba should use a 
host-corba module

>
>     [ 
> https://issues.apache.org/jira/browse/TUSCANY-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Wojtek Janiszewski updated TUSCANY-2397:
> ----------------------------------------
>
>    Attachment: host-corba-jira-2397-25th-june-2008.patch
>
> Here's host-corba module implementation. It does: registering, 
> unregistering and getting references to CORBA objects. It's not what you 
> really wanted, but it should unblock path to further CORBA binding module 
> development.
>
> Maybe I'm getting you wrong, but I understand that some orbd instance 
> should be spawned. We cannot easily run orbd from JDK - there is indeed 
> com.sun.corba.se.impl.activation.ORBD but as far as I can see it cames 
> without any Javadoc or support.
>
> I'm also bit confused about http-host, http-jetty and http-tomcat - how 
> and when appropriate module (http-jetty or http-tomcat) is beeing choosed 
> and connected to host-http interface?
>
> I'd appreciate any comments and clues.
>
> Thanks,
> Wojtek
>
>> Binding corba should use a host-corba module
>> --------------------------------------------
>>
>>                 Key: TUSCANY-2397
>>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2397
>>             Project: Tuscany
>>          Issue Type: Wish
>>          Components: Java SCA Misc Binding Extensions
>>            Reporter: Jean-Sebastien Delfino
>>             Fix For: Java-SCA-Next
>>
>>         Attachments: host-corba-jira-2397-25th-june-2008.patch
>>
>>
>> In order to allow an ORB instance to be shared by multiple 
>> services/references with Corba bindings, two new modules should be 
>> created.
>> - Host-corba should define a Host interface for Corba ORBs, allowing 
>> Corba service binding providers to register Corba servants with an ORB.
>> - Host-corba-jdk should implement that Host interface using the JDK ORB.
>> Another Host-corba-yoko could be created later for an implementation of 
>> that Host interface using Yoko, which may be handy in a Geronimo 
>> environment for example.
>> That approach is similar to the approach we've taken for HTTP with:
>> - Host-http the extension interface for HTTP hosts
>> - Host-jetty and Host-tomcat, implementations using Jetty and Tomcat.
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>