You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Joern Larsen <jl...@trifork.com> on 2005/07/04 11:07:46 UTC
Donation of a CORBA Orb
Dear Devlist
Trifork has been a J2EE Licensee since 2000 and we have a clean room
implementation of the J2EE v 1.4 spec. and the product is called Trifork
T4. This includes a full CORBA 2.3 implementation with CSIv2,
transaction integration, etc. We would like to donate our CORBA ORB
implementation as foundation for a new CORBA effort as part of the
Geronimo project. We would like to get in touch with the people
relevant to this.
Best regards
Joern
--
--
--
Joern Larsen
CEO
WHO'S AT JAOO? - http://www.jaoo.dk
-----------------------------------------------------------------------
EOS Trifork, Margrethepladsen 3, 8000 Århus C, Denmark
Tel: +45 8732 8787 / Fax: +45 8732 8788 / Mob: +45 4072 8483
Re: Donation of a CORBA Orb
Posted by Davanum Srinivas <da...@gmail.com>.
+1 Awesome! that's sounds excellent.
On 7/4/05, Joern Larsen <jl...@trifork.com> wrote:
> Dear Devlist
>
> Trifork has been a J2EE Licensee since 2000 and we have a clean room
> implementation of the J2EE v 1.4 spec. and the product is called Trifork
> T4. This includes a full CORBA 2.3 implementation with CSIv2,
> transaction integration, etc. We would like to donate our CORBA ORB
> implementation as foundation for a new CORBA effort as part of the
> Geronimo project. We would like to get in touch with the people
> relevant to this.
>
> Best regards
>
> Joern
>
> --
>
> --
> --
> Joern Larsen
> CEO
>
> WHO'S AT JAOO? - http://www.jaoo.dk
> -----------------------------------------------------------------------
> EOS Trifork, Margrethepladsen 3, 8000 Århus C, Denmark
> Tel: +45 8732 8787 / Fax: +45 8732 8788 / Mob: +45 4072 8483
>
>
>
--
Davanum Srinivas -http://blogs.cocoondev.org/dims/
Re: Donation of a CORBA Orb
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
I'm sorry Jeff. It is a good idea to solicit ideas here.
What I was thinking was to start it off inside Geronimo. As it's
popularity grew, we could transition it to a sub-project; I don't think
sub-projects are evil. When it becomes a wildly popular project, we can
spin it out as a TLP.
Regards,
Alan
Jeff Genender wrote, On 7/7/2005 10:12 AM:
> Alan,
>
> Yes that is why I threw that out there...I was interested in feedback
> from what the community thinks.
>
> Thanks for responding.
>
> Jeff
>
> Alan D. Cabrera wrote:
>
>> Jeff Genender wrote, On 7/4/2005 10:05 AM:
>>
>>>
>>>
>>> Kresten Krab Thorup wrote:
>>>
>>>> As for where it should be placed ASF-wise, I am thinking that it
>>>> would be best to place it as part of Geronimo initially, because
>>>> it is a good thing to have a concrete project [the appserver] to
>>>> drive the requirements. Also, the featureset required to do Java
>>>> EE is somewhat less than the full CORBA spec (for instance, we
>>>> have no interface/implementation repository, and no IDL compiler).
>>>
>>>
>>>
>>>
>>> Let me start by thanking you for wanting to contribute code to the
>>> project. This is awesome.
>>>
>>> Relative to the statement above, is there a reason you want the ORB
>>> directly in the Geronimo project? I can see this orb being an
>>> important project in its own right and can have many uses beyond
>>> Geronimo. If not as its own ASF project, dare I say the possibility
>>> of a sub-project <flame suit on ;-)>? I really think an orb is big
>>> enough, and important enough to be its own living/breathing project.
>>>
>>> Thoughts?
>>>
>> I think that we should get something working and see what the
>> community interest is before we start planning on if it will be a
>> sub-project or a top-level-project.
>>
>>
>> Regards,
>> Alan
>>
Re: Donation of a CORBA Orb
Posted by Jeff Genender <jg...@savoirtech.com>.
Alan,
Yes that is why I threw that out there...I was interested in feedback
from what the community thinks.
Thanks for responding.
Jeff
Alan D. Cabrera wrote:
> Jeff Genender wrote, On 7/4/2005 10:05 AM:
>
>>
>>
>> Kresten Krab Thorup wrote:
>>
>>> As for where it should be placed ASF-wise, I am thinking that it
>>> would be best to place it as part of Geronimo initially, because it
>>> is a good thing to have a concrete project [the appserver] to drive
>>> the requirements. Also, the featureset required to do Java EE is
>>> somewhat less than the full CORBA spec (for instance, we have no
>>> interface/implementation repository, and no IDL compiler).
>>
>>
>>
>> Let me start by thanking you for wanting to contribute code to the
>> project. This is awesome.
>>
>> Relative to the statement above, is there a reason you want the ORB
>> directly in the Geronimo project? I can see this orb being an
>> important project in its own right and can have many uses beyond
>> Geronimo. If not as its own ASF project, dare I say the possibility
>> of a sub-project <flame suit on ;-)>? I really think an orb is big
>> enough, and important enough to be its own living/breathing project.
>>
>> Thoughts?
>>
> I think that we should get something working and see what the community
> interest is before we start planning on if it will be a sub-project or a
> top-level-project.
>
>
> Regards,
> Alan
>
Re: Donation of a CORBA Orb
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Jeff Genender wrote, On 7/4/2005 10:05 AM:
>
>
> Kresten Krab Thorup wrote:
>
>> As for where it should be placed ASF-wise, I am thinking that it
>> would be best to place it as part of Geronimo initially, because it
>> is a good thing to have a concrete project [the appserver] to drive
>> the requirements. Also, the featureset required to do Java EE is
>> somewhat less than the full CORBA spec (for instance, we have no
>> interface/implementation repository, and no IDL compiler).
>
>
> Let me start by thanking you for wanting to contribute code to the
> project. This is awesome.
>
> Relative to the statement above, is there a reason you want the ORB
> directly in the Geronimo project? I can see this orb being an
> important project in its own right and can have many uses beyond
> Geronimo. If not as its own ASF project, dare I say the possibility
> of a sub-project <flame suit on ;-)>? I really think an orb is big
> enough, and important enough to be its own living/breathing project.
>
> Thoughts?
>
I think that we should get something working and see what the community
interest is before we start planning on if it will be a sub-project or a
top-level-project.
Regards,
Alan
Re: Donation of a CORBA Orb
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
On 7/5/2005 4:19 AM, Rick McGuire wrote:
> Geir Magnusson Jr. wrote:
>
>>
>> On Jul 5, 2005, at 4:50 AM, Jacek Laskowski wrote:
>>
>>> Jeff Genender wrote:
>>>
>>>
>>>> Relative to the statement above, is there a reason you want the
>>>> ORB directly in the Geronimo project? I can see this orb being an
>>>> important project in its own right and can have many uses beyond
>>>> Geronimo. If not as its own ASF project, dare I say the
>>>> possibility of a sub-project <flame suit on ;-)>? I really think
>>>> an orb is big enough, and important enough to be its own living/
>>>> breathing project.
>>>>
>>>
>>> I second that partially - is there a need to have two open source
>>> ORBs compatible with the Apache License? Why would the donation
>>> cause to create another ORB rather than to help OpenORB project to
>>> fix their issues so that we could cleanly embbed it?
>>
>>
>>
>> Is the OpenORB project really alive and kicking?
>
>
> I just took a peek at the developers mailing list archives, and it
> looks pretty quiet (the Geronimo dev list had more posts this weekend
> than openorb has had this year). There was a short discussion on
> their progress to become part of Apache, and it doesn't look very
> likely because of the current lack of activity. It sounds like they
> also had a potential licensing snag with Intalio that has been holding
> things up. Interestingly, one poster pinned their hopes on becoming
> part of Apache on just two potential users, Geronimo and Harmony.
>
> What version of openorb was being used in Geronimo? Was it the newest
> 1.4 version?
Yes, v1.4.
Regards,
Alan
Re: Donation of a CORBA Orb
Posted by Rick McGuire <ri...@gmail.com>.
Geir Magnusson Jr. wrote:
>
> On Jul 5, 2005, at 4:50 AM, Jacek Laskowski wrote:
>
>> Jeff Genender wrote:
>>
>>
>>> Relative to the statement above, is there a reason you want the ORB
>>> directly in the Geronimo project? I can see this orb being an
>>> important project in its own right and can have many uses beyond
>>> Geronimo. If not as its own ASF project, dare I say the
>>> possibility of a sub-project <flame suit on ;-)>? I really think
>>> an orb is big enough, and important enough to be its own living/
>>> breathing project.
>>>
>>
>> I second that partially - is there a need to have two open source
>> ORBs compatible with the Apache License? Why would the donation
>> cause to create another ORB rather than to help OpenORB project to
>> fix their issues so that we could cleanly embbed it?
>
>
> Is the OpenORB project really alive and kicking?
I just took a peek at the developers mailing list archives, and it looks
pretty quiet (the Geronimo dev list had more posts this weekend than
openorb has had this year). There was a short discussion on their
progress to become part of Apache, and it doesn't look very likely
because of the current lack of activity. It sounds like they also had a
potential licensing snag with Intalio that has been holding things up.
Interestingly, one poster pinned their hopes on becoming part of Apache
on just two potential users, Geronimo and Harmony.
What version of openorb was being used in Geronimo? Was it the newest
1.4 version?
>
> geir
>
>>
>> Eagerly awaiting other comments.
>>
>> Jacek
>>
Re: Donation of a CORBA Orb
Posted by Jacek Laskowski <jl...@apache.org>.
Geir Magnusson Jr. wrote:
> Is the OpenORB project really alive and kicking?
I wish I had found it earlier - it seems they are not necessarily
kicking yet still alive. The last release was on 7/29/04 and the dev@ ml
seems to be crawling down.
> geir
Jacek
Re: Donation of a CORBA Orb
Posted by "Geir Magnusson Jr." <ge...@apache.org>.
On Jul 5, 2005, at 4:50 AM, Jacek Laskowski wrote:
> Jeff Genender wrote:
>
>
>> Relative to the statement above, is there a reason you want the
>> ORB directly in the Geronimo project? I can see this orb being an
>> important project in its own right and can have many uses beyond
>> Geronimo. If not as its own ASF project, dare I say the
>> possibility of a sub-project <flame suit on ;-)>? I really think
>> an orb is big enough, and important enough to be its own living/
>> breathing project.
>>
>
> I second that partially - is there a need to have two open source
> ORBs compatible with the Apache License? Why would the donation
> cause to create another ORB rather than to help OpenORB project to
> fix their issues so that we could cleanly embbed it?
Is the OpenORB project really alive and kicking?
geir
>
> Eagerly awaiting other comments.
>
> Jacek
>
>
--
Geir Magnusson Jr +1-203-665-6437
geirm@apache.org
Re: Donation of a CORBA Orb
Posted by Jacek Laskowski <jl...@apache.org>.
Jeff Genender wrote:
> Relative to the statement above, is there a reason you want the ORB
> directly in the Geronimo project? I can see this orb being an important
> project in its own right and can have many uses beyond Geronimo. If not
> as its own ASF project, dare I say the possibility of a sub-project
> <flame suit on ;-)>? I really think an orb is big enough, and important
> enough to be its own living/breathing project.
I second that partially - is there a need to have two open source ORBs
compatible with the Apache License? Why would the donation cause to
create another ORB rather than to help OpenORB project to fix their
issues so that we could cleanly embbed it?
Eagerly awaiting other comments.
Jacek
Re: Donation of a CORBA Orb
Posted by Jeff Genender <jg...@apache.org>.
Kresten Krab Thorup wrote:
> As for where it should be placed ASF-wise, I am thinking that it would
> be best to place it as part of Geronimo initially, because it is a good
> thing to have a concrete project [the appserver] to drive the
> requirements. Also, the featureset required to do Java EE is somewhat
> less than the full CORBA spec (for instance, we have no
> interface/implementation repository, and no IDL compiler).
Let me start by thanking you for wanting to contribute code to the
project. This is awesome.
Relative to the statement above, is there a reason you want the ORB
directly in the Geronimo project? I can see this orb being an important
project in its own right and can have many uses beyond Geronimo. If not
as its own ASF project, dare I say the possibility of a sub-project
<flame suit on ;-)>? I really think an orb is big enough, and important
enough to be its own living/breathing project.
Perhaps this is something to bring up now...
Is there a thought on a Geronimo "holding project"? We will likely
encounter more chunks of code that can and should live on thier own.
Since webservices has "ws" and database has "db", what about an "as" for
application server and components? I think this is something we really
need to consider since we will be growing components fairly regularly.
I think this is great for the community as well.
Thoughts?
--
Jeff Genender
http://geronimo.apache.org
Re: Donation of a CORBA Orb
Posted by "Geir Magnusson Jr." <ge...@apache.org>.
On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
> Geir,
>
> Thanks for your questions, as I was trying to answer the response
> ended up becoming rather lengthy...
>
> First off, I don't think that it makes too much sense to just toss
> a bunch of code over the fence; that would be a dead-end. We need
> to set it up such that it becomes part of the community, and to do
> this I am thinking that it would be good to engage the community in
> rewriting some parts of the ORB that we were thinking to refactor
> anyway. If we piecemeal the contribution in smaller chunks I am
> thinking there is a better chance to make it everybody's property.
> As for schedule of this, we're thinking that it would come in
> pieces over the next 4 months or so. We need to do some clean-up
> and partitioning from the rest of our code base and as I said
> before, we would like to introduce this whole thing gently both to
> us and the community.
Great - I assume this means that your internal timeline is 4 months
to contribute the entire ORB?
>
> I think of this as a sing-along or "karaoke" project: somewhere in
> between "writing from scratch" and "donation". We will take the
> individual parts of the Trifork ORB, clean them up with coding
> standards, javadoc, etc.; and have the community be part of
> reworking and improving the pieces along the way. For some parts,
> such as the core io, I would like it to be redone entirely; whereas
> much of the higher-level logic such as RMI/IIOP and POA handling
> can go almost straight through. When we're all the way though the
> entire code base will be appropriately "apachified."
>
> As for where it should be placed ASF-wise, I am thinking that it
> would be best to place it as part of Geronimo initially, because it
> is a good thing to have a concrete project [the appserver] to drive
> the requirements. Also, the featureset required to do Java EE is
> somewhat less than the full CORBA spec (for instance, we have no
> interface/implementation repository, and no IDL compiler).
>
> Our CORBA subsystem is written almost entirely by two people (of
> which one is me), and so we would initially have two people on
> this. Depending on how this thing takes off we can add more people
> over time.
Ok. THat's good to know - code is somewhat useless without people
and community around it.
There are a few process questions we need to answer :
First, the project committers (with PMC votes as binding...) should
probably vote to go forward in general. I think everyone is positive
about this, but you certainly want to be sure before starting to make
those changes.
Next, we need to decide where the code goes. Right now this is hard
because we don't have something tangible to talk about. But keeping
that in mind, putting it in the Apache Incubator isn't a bad thing if
we're committed to working with you to drive how this fits into
Geronimo. In fact, that would give you the ability to continue to
commit directly to the codebase without having to earn commit status
in the Geronimo project, as you would get commit status in the
Incubator when you made the contribution.
[SNIP]
>
> A final side note: internally we call this CORBA project "Navajo,"
> as the IIOP protocol is appropriately backwards and obscure to be
> named after the indians that were employed to relay secret messages
> in the pacific during WWII :-), see http://www.history.navy.mil/
> faqs/faq61-2.htm
>
Great, but if we could avoid carrying this name here, that would be
good. There is too much history around sensitivity to native
american names here, and we should not agitate anyone even with the
best of intentions in mind.
>
>
> Anyway, here is the "first project" I am thinking of...
>
>
> == first project ==
>
> Right now the Trifork ORB is using NIO for the server-side of IIOP,
> but "classic" IO for the client side. The NIO part is great
> because it lets us run all corba handling in a single selector
> thread backed by the appserver's thread pool. However, With the
> experience from working with this for the last 5 years, I would
> like to redo the core I/O subsystem, and so I have started to do
> the first steps towards this rework.
>
> The benefits of this, apart from cleaning up code that has grown
> over time, would be:
>
> - Reduce copying data through the stack.
> - Reduce thread usage further to support even more clients.
> - Off-load reading&writing - e.g. response writing to the framework
> so as to better handle slow clients.
>
> There are many reasons why I would like to do this, here is one:
> One optimization that we did at one point was to pool byte arrays,
> because the allocation of byte arrays (read: zeroing out memory)
> took way too much time. [I know - generally pooling in JVM's is a
> bad idea, but in this case it made a lot of sense] With this
> rewrite we would gain the same optimization one more time. CORBA
> Input/OutputStreams should be backed by java.nio.ByteBuffers
> directly, which will then be passed straight down to the NIO
> interface.
>
> The effort as I see it falls in two parts:
>
> - Asynchroneous I/O API (AIO). Based on the abstractions we have
> internally in the ORB, I'm doing a generalized version of something
> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
> however, the API runs straight on top of a Java SE 1.4 [no native
> code], and hooks into an external thread pool to provide the same
> API based on both NIO and "classic" IO technology.
>
> - IIOP Streams on AIO. Based on the above, write InputStream/
> OutputStream implementations, as well as connection management,
> backed by the AIO infrastructure and NIO direct buffers such that
> the underlying OS can stream data straight into the high-level
> structures.
Great. Could this work be done here at Apache?
geir
--
Geir Magnusson Jr +1-203-665-6437
geir@optonline.net
Re: Donation of a CORBA Orb
Posted by Kresten Krab Thorup <kr...@trifork.com>.
Thanks for the pointer, Hiram. I will definitively make sure to look
into that project.
Kresten
On Jul 7, 2005, at 6:00 PM, Hiram Chirino wrote:
> Hi Kresten,
>
> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
>
>>
>> == first project ==
>>
>> Right now the Trifork ORB is using NIO for the server-side of
>> IIOP, but "classic" IO for the client side. The NIO part is great
>> because it lets us run all corba handling in a single selector
>> thread backed by the appserver's thread pool. However, With the
>> experience from working with this for the last 5 years, I would
>> like to redo the core I/O subsystem, and so I have started to do
>> the first steps towards this rework.
>>
>> The benefits of this, apart from cleaning up code that has grown
>> over time, would be:
>>
>> - Reduce copying data through the stack.
>> - Reduce thread usage further to support even more clients.
>> - Off-load reading&writing - e.g. response writing to the
>> framework so as to better handle slow clients.
>>
>> There are many reasons why I would like to do this, here is one:
>> One optimization that we did at one point was to pool byte arrays,
>> because the allocation of byte arrays (read: zeroing out memory)
>> took way too much time. [I know - generally pooling in JVM's is a
>> bad idea, but in this case it made a lot of sense] With this
>> rewrite we would gain the same optimization one more time. CORBA
>> Input/OutputStreams should be backed by java.nio.ByteBuffers
>> directly, which will then be passed straight down to the NIO
>> interface.
>>
>> The effort as I see it falls in two parts:
>>
>> - Asynchroneous I/O API (AIO). Based on the abstractions we have
>> internally in the ORB, I'm doing a generalized version of
>> something very similar to IBM's aio4j; future-based socket I/O.
>> Unline aio4j however, the API runs straight on top of a Java SE
>> 1.4 [no native code], and hooks into an external thread pool to
>> provide the same API based on both NIO and "classic" IO technology.
>>
>>
>
> This area of work is absolutely fascinating for me. It seems that
> in ActiveMQ we have very similar requirements to your ORB. A
> standalone project was started to deal with exactly those issues at
> http://activeio.org. We built a flexible IO abstractions so that a
> client application can choose the API and implementation technology
> that best suites it's needs. Clients can choose to use a
> synchronous packet, asynchronous packet, or a synchronous stream
> interface. The And the client can choose what underlying IO
> technology will implement the chosen interface, it could choose to
> use standard blocking IO, or use NIO in blocking mode, or NIO in
> non-blocking mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc.
> etc.
> All of this has already been implemented and is ASL 2.0 licensed
> and being used by Geronimo and ActiveMQ. Since you've been
> thinking this, it would be good to chat to see if it would suite
> your needs or if needs enhancing.
>
> Regards,
> Hiram
>
>
>
>> - IIOP Streams on AIO. Based on the above, write InputStream/
>> OutputStream implementations, as well as connection management,
>> backed by the AIO infrastructure and NIO direct buffers such that
>> the underlying OS can stream data straight into the high-level
>> structures.
>>
>> Kresten
>>
>>
>> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
>>
>>
>>
>>> Joern,
>>>
>>> Thanks for the note. This is the right place to discuss.
>>>
>>> There are two separate threads of discussion that I can think of :
>>>
>>> 1) Technical - if the donation fits technically into what we are
>>> doing (I'm sure it does...)
>>>
>>> 2) Administrative - how, where and when
>>>
>>> As for #2 my questions to you are :
>>>
>>> a) What is the timing for this donation? How soon?
>>>
>>> b) Do you see this as coming straight to Geronimo to be part of
>>> Geronimo initially, or to the Apache Incubator where we could
>>> work on it with you and then make the decision of coming to the
>>> Geronimo project or being something else, like a stand-alone top-
>>> level project.
>>>
>>> c) I assume that you'd be offering committers to help us with the
>>> codebase and to continue working and expanding. Do you have an
>>> idea of how many?
>>>
>>> Thanks for doing this, and we look forward to discussion on both
>>> subjects above.
>>>
>>> geir
>>> --
>>> Geir Magnusson Jr +1-203-665-6437
>>> geirm@apache.org
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
Re: Donation of a CORBA Orb
Posted by Davanum Srinivas <da...@gmail.com>.
yep. +1
On 7/7/05, Geir Magnusson Jr. <ge...@apache.org> wrote:
>
> On Jul 7, 2005, at 1:17 PM, Aaron Mulder wrote:
>
> > I dunno, if it's going to take 4 months for TriFork to finish
> > releasing the code, I'm all in favor of picking a home ASAP so it
> > doesn't
> > slip further.
> >
> > I think the incubator is the best, as everyone who needs to can
> > get access to it there, I think some incubation steps are required
> > for any
> > pre-existing donated code anyway (for legal/IP reasons), and we can
> > delay
> > the decision of whether it goes into a Geronimo subproject or a
> > project
> > of its own until it actually is ready to leave the incubator.
>
> To be clear, the incubation steps can happen in parallel - it doesn't
> require a "quarantine visit" or such in incubator SVN repo. It can
> come directly here if we choose, and do the documentation at the same
> time.
>
> geir
>
>
> >
> > I'm not sure the ActiveIO question is all that relevant, since I'm
> > assuming IO is a small part of the ORB. That is, if they want to
> > enhance
> > and use ActiveIO, that can become a library dependency for the
> > incubator
> > ORB module. If they choose to start with their own IO code, they
> > can put
> > it in the incubator, adn then decide when/whether/how to replace it
> > with
> > ActiveIO or something else going forward.
> >
> > Aaron
> >
> > On Thu, 7 Jul 2005, Hiram Chirino wrote:
> >
> >
> >> That's a possibility. I would not mind bringing the project into
> >> apache if it will help grow the community.
> >> But I think the first step is to see if activeio is the kind of think
> >> that new Trifork orb is interested in.
> >>
> >> Regards,
> >> Hiram
> >>
> >> On Jul 7, 2005, at 12:16 PM, Davanum Srinivas wrote:
> >>
> >>
> >>> Hiram,
> >>>
> >>> Could you please make sure that the project gets worked on here at
> >>> Apache? Am a bit concerned about code getting forked out and then
> >>> becoming geronimo becoming a dependency on an external project. If
> >>> activeio folks want to come here and join forces with trifork folks,
> >>> that would be ideal IMHO.
> >>>
> >>> thanks,
> >>> dims
> >>>
> >>> On 7/7/05, Hiram Chirino <ch...@apache.org> wrote:
> >>>
> >>>
> >>>> Hi Kresten,
> >>>>
> >>>> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
> >>>>
> >>>>
> >>>>>
> >>>>> == first project ==
> >>>>>
> >>>>> Right now the Trifork ORB is using NIO for the server-side of
> >>>>> IIOP,
> >>>>> but "classic" IO for the client side. The NIO part is great
> >>>>> because it lets us run all corba handling in a single selector
> >>>>> thread backed by the appserver's thread pool. However, With the
> >>>>> experience from working with this for the last 5 years, I would
> >>>>> like to redo the core I/O subsystem, and so I have started to do
> >>>>> the first steps towards this rework.
> >>>>>
> >>>>> The benefits of this, apart from cleaning up code that has grown
> >>>>> over time, would be:
> >>>>>
> >>>>> - Reduce copying data through the stack.
> >>>>> - Reduce thread usage further to support even more clients.
> >>>>> - Off-load reading&writing - e.g. response writing to the
> >>>>> framework
> >>>>> so as to better handle slow clients.
> >>>>>
> >>>>> There are many reasons why I would like to do this, here is one:
> >>>>> One optimization that we did at one point was to pool byte arrays,
> >>>>> because the allocation of byte arrays (read: zeroing out memory)
> >>>>> took way too much time. [I know - generally pooling in JVM's is a
> >>>>> bad idea, but in this case it made a lot of sense] With this
> >>>>> rewrite we would gain the same optimization one more time. CORBA
> >>>>> Input/OutputStreams should be backed by java.nio.ByteBuffers
> >>>>> directly, which will then be passed straight down to the NIO
> >>>>> interface.
> >>>>>
> >>>>> The effort as I see it falls in two parts:
> >>>>>
> >>>>> - Asynchroneous I/O API (AIO). Based on the abstractions we have
> >>>>> internally in the ORB, I'm doing a generalized version of
> >>>>> something
> >>>>> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
> >>>>> however, the API runs straight on top of a Java SE 1.4 [no native
> >>>>> code], and hooks into an external thread pool to provide the same
> >>>>> API based on both NIO and "classic" IO technology.
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>> This area of work is absolutely fascinating for me. It seems
> >>>> that in
> >>>> ActiveMQ we have very similar requirements to your ORB. A
> >>>> standalone
> >>>> project was started to deal with exactly those issues at http://
> >>>> activeio.org. We built a flexible IO abstractions so that a client
> >>>> application can choose the API and implementation technology that
> >>>> best suites it's needs. Clients can choose to use a synchronous
> >>>> packet, asynchronous packet, or a synchronous stream interface.
> >>>> The
> >>>> And the client can choose what underlying IO technology will
> >>>> implement the chosen interface, it could choose to use standard
> >>>> blocking IO, or use NIO in blocking mode, or NIO in non-blocking
> >>>> mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
> >>>> All of this has already been implemented and is ASL 2.0 licensed
> >>>> and
> >>>> being used by Geronimo and ActiveMQ. Since you've been thinking
> >>>> this, it would be good to chat to see if it would suite your
> >>>> needs or
> >>>> if needs enhancing.
> >>>>
> >>>> Regards,
> >>>> Hiram
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> - IIOP Streams on AIO. Based on the above, write InputStream/
> >>>>> OutputStream implementations, as well as connection management,
> >>>>> backed by the AIO infrastructure and NIO direct buffers such that
> >>>>> the underlying OS can stream data straight into the high-level
> >>>>> structures.
> >>>>>
> >>>>> Kresten
> >>>>>
> >>>>>
> >>>>> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Joern,
> >>>>>>
> >>>>>> Thanks for the note. This is the right place to discuss.
> >>>>>>
> >>>>>> There are two separate threads of discussion that I can think
> >>>>>> of :
> >>>>>>
> >>>>>> 1) Technical - if the donation fits technically into what we are
> >>>>>> doing (I'm sure it does...)
> >>>>>>
> >>>>>> 2) Administrative - how, where and when
> >>>>>>
> >>>>>> As for #2 my questions to you are :
> >>>>>>
> >>>>>> a) What is the timing for this donation? How soon?
> >>>>>>
> >>>>>> b) Do you see this as coming straight to Geronimo to be part of
> >>>>>> Geronimo initially, or to the Apache Incubator where we could
> >>>>>> work
> >>>>>> on it with you and then make the decision of coming to the
> >>>>>> Geronimo project or being something else, like a stand-alone top-
> >>>>>> level project.
> >>>>>>
> >>>>>> c) I assume that you'd be offering committers to help us with the
> >>>>>> codebase and to continue working and expanding. Do you have an
> >>>>>> idea of how many?
> >>>>>>
> >>>>>> Thanks for doing this, and we look forward to discussion on both
> >>>>>> subjects above.
> >>>>>>
> >>>>>> geir
> >>>>>> --
> >>>>>> Geir Magnusson Jr
> >>>>>> +1-203-665-6437
> >>>>>> geirm@apache.org
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Davanum Srinivas -http://blogs.cocoondev.org/dims/
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
> --
> Geir Magnusson Jr +1-203-665-6437
> geirm@apache.org
>
>
>
--
Davanum Srinivas -http://blogs.cocoondev.org/dims/
Re: Donation of a CORBA Orb
Posted by "Geir Magnusson Jr." <ge...@apache.org>.
On Jul 7, 2005, at 1:17 PM, Aaron Mulder wrote:
> I dunno, if it's going to take 4 months for TriFork to finish
> releasing the code, I'm all in favor of picking a home ASAP so it
> doesn't
> slip further.
>
> I think the incubator is the best, as everyone who needs to can
> get access to it there, I think some incubation steps are required
> for any
> pre-existing donated code anyway (for legal/IP reasons), and we can
> delay
> the decision of whether it goes into a Geronimo subproject or a
> project
> of its own until it actually is ready to leave the incubator.
To be clear, the incubation steps can happen in parallel - it doesn't
require a "quarantine visit" or such in incubator SVN repo. It can
come directly here if we choose, and do the documentation at the same
time.
geir
>
> I'm not sure the ActiveIO question is all that relevant, since I'm
> assuming IO is a small part of the ORB. That is, if they want to
> enhance
> and use ActiveIO, that can become a library dependency for the
> incubator
> ORB module. If they choose to start with their own IO code, they
> can put
> it in the incubator, adn then decide when/whether/how to replace it
> with
> ActiveIO or something else going forward.
>
> Aaron
>
> On Thu, 7 Jul 2005, Hiram Chirino wrote:
>
>
>> That's a possibility. I would not mind bringing the project into
>> apache if it will help grow the community.
>> But I think the first step is to see if activeio is the kind of think
>> that new Trifork orb is interested in.
>>
>> Regards,
>> Hiram
>>
>> On Jul 7, 2005, at 12:16 PM, Davanum Srinivas wrote:
>>
>>
>>> Hiram,
>>>
>>> Could you please make sure that the project gets worked on here at
>>> Apache? Am a bit concerned about code getting forked out and then
>>> becoming geronimo becoming a dependency on an external project. If
>>> activeio folks want to come here and join forces with trifork folks,
>>> that would be ideal IMHO.
>>>
>>> thanks,
>>> dims
>>>
>>> On 7/7/05, Hiram Chirino <ch...@apache.org> wrote:
>>>
>>>
>>>> Hi Kresten,
>>>>
>>>> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
>>>>
>>>>
>>>>>
>>>>> == first project ==
>>>>>
>>>>> Right now the Trifork ORB is using NIO for the server-side of
>>>>> IIOP,
>>>>> but "classic" IO for the client side. The NIO part is great
>>>>> because it lets us run all corba handling in a single selector
>>>>> thread backed by the appserver's thread pool. However, With the
>>>>> experience from working with this for the last 5 years, I would
>>>>> like to redo the core I/O subsystem, and so I have started to do
>>>>> the first steps towards this rework.
>>>>>
>>>>> The benefits of this, apart from cleaning up code that has grown
>>>>> over time, would be:
>>>>>
>>>>> - Reduce copying data through the stack.
>>>>> - Reduce thread usage further to support even more clients.
>>>>> - Off-load reading&writing - e.g. response writing to the
>>>>> framework
>>>>> so as to better handle slow clients.
>>>>>
>>>>> There are many reasons why I would like to do this, here is one:
>>>>> One optimization that we did at one point was to pool byte arrays,
>>>>> because the allocation of byte arrays (read: zeroing out memory)
>>>>> took way too much time. [I know - generally pooling in JVM's is a
>>>>> bad idea, but in this case it made a lot of sense] With this
>>>>> rewrite we would gain the same optimization one more time. CORBA
>>>>> Input/OutputStreams should be backed by java.nio.ByteBuffers
>>>>> directly, which will then be passed straight down to the NIO
>>>>> interface.
>>>>>
>>>>> The effort as I see it falls in two parts:
>>>>>
>>>>> - Asynchroneous I/O API (AIO). Based on the abstractions we have
>>>>> internally in the ORB, I'm doing a generalized version of
>>>>> something
>>>>> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
>>>>> however, the API runs straight on top of a Java SE 1.4 [no native
>>>>> code], and hooks into an external thread pool to provide the same
>>>>> API based on both NIO and "classic" IO technology.
>>>>>
>>>>>
>>>>>
>>>>
>>>> This area of work is absolutely fascinating for me. It seems
>>>> that in
>>>> ActiveMQ we have very similar requirements to your ORB. A
>>>> standalone
>>>> project was started to deal with exactly those issues at http://
>>>> activeio.org. We built a flexible IO abstractions so that a client
>>>> application can choose the API and implementation technology that
>>>> best suites it's needs. Clients can choose to use a synchronous
>>>> packet, asynchronous packet, or a synchronous stream interface.
>>>> The
>>>> And the client can choose what underlying IO technology will
>>>> implement the chosen interface, it could choose to use standard
>>>> blocking IO, or use NIO in blocking mode, or NIO in non-blocking
>>>> mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
>>>> All of this has already been implemented and is ASL 2.0 licensed
>>>> and
>>>> being used by Geronimo and ActiveMQ. Since you've been thinking
>>>> this, it would be good to chat to see if it would suite your
>>>> needs or
>>>> if needs enhancing.
>>>>
>>>> Regards,
>>>> Hiram
>>>>
>>>>
>>>>
>>>>
>>>>> - IIOP Streams on AIO. Based on the above, write InputStream/
>>>>> OutputStream implementations, as well as connection management,
>>>>> backed by the AIO infrastructure and NIO direct buffers such that
>>>>> the underlying OS can stream data straight into the high-level
>>>>> structures.
>>>>>
>>>>> Kresten
>>>>>
>>>>>
>>>>> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Joern,
>>>>>>
>>>>>> Thanks for the note. This is the right place to discuss.
>>>>>>
>>>>>> There are two separate threads of discussion that I can think
>>>>>> of :
>>>>>>
>>>>>> 1) Technical - if the donation fits technically into what we are
>>>>>> doing (I'm sure it does...)
>>>>>>
>>>>>> 2) Administrative - how, where and when
>>>>>>
>>>>>> As for #2 my questions to you are :
>>>>>>
>>>>>> a) What is the timing for this donation? How soon?
>>>>>>
>>>>>> b) Do you see this as coming straight to Geronimo to be part of
>>>>>> Geronimo initially, or to the Apache Incubator where we could
>>>>>> work
>>>>>> on it with you and then make the decision of coming to the
>>>>>> Geronimo project or being something else, like a stand-alone top-
>>>>>> level project.
>>>>>>
>>>>>> c) I assume that you'd be offering committers to help us with the
>>>>>> codebase and to continue working and expanding. Do you have an
>>>>>> idea of how many?
>>>>>>
>>>>>> Thanks for doing this, and we look forward to discussion on both
>>>>>> subjects above.
>>>>>>
>>>>>> geir
>>>>>> --
>>>>>> Geir Magnusson Jr
>>>>>> +1-203-665-6437
>>>>>> geirm@apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Davanum Srinivas -http://blogs.cocoondev.org/dims/
>>>
>>>
>>
>>
>>
>
>
--
Geir Magnusson Jr +1-203-665-6437
geirm@apache.org
Re: Donation of a CORBA Orb
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
I dunno, if it's going to take 4 months for TriFork to finish
releasing the code, I'm all in favor of picking a home ASAP so it doesn't
slip further.
I think the incubator is the best, as everyone who needs to can
get access to it there, I think some incubation steps are required for any
pre-existing donated code anyway (for legal/IP reasons), and we can delay
the decision of whether it goes into a Geronimo subproject or a project
of its own until it actually is ready to leave the incubator.
I'm not sure the ActiveIO question is all that relevant, since I'm
assuming IO is a small part of the ORB. That is, if they want to enhance
and use ActiveIO, that can become a library dependency for the incubator
ORB module. If they choose to start with their own IO code, they can put
it in the incubator, adn then decide when/whether/how to replace it with
ActiveIO or something else going forward.
Aaron
On Thu, 7 Jul 2005, Hiram Chirino wrote:
> That's a possibility. I would not mind bringing the project into
> apache if it will help grow the community.
> But I think the first step is to see if activeio is the kind of think
> that new Trifork orb is interested in.
>
> Regards,
> Hiram
>
> On Jul 7, 2005, at 12:16 PM, Davanum Srinivas wrote:
>
> > Hiram,
> >
> > Could you please make sure that the project gets worked on here at
> > Apache? Am a bit concerned about code getting forked out and then
> > becoming geronimo becoming a dependency on an external project. If
> > activeio folks want to come here and join forces with trifork folks,
> > that would be ideal IMHO.
> >
> > thanks,
> > dims
> >
> > On 7/7/05, Hiram Chirino <ch...@apache.org> wrote:
> >
> >> Hi Kresten,
> >>
> >> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
> >>
> >>>
> >>> == first project ==
> >>>
> >>> Right now the Trifork ORB is using NIO for the server-side of IIOP,
> >>> but "classic" IO for the client side. The NIO part is great
> >>> because it lets us run all corba handling in a single selector
> >>> thread backed by the appserver's thread pool. However, With the
> >>> experience from working with this for the last 5 years, I would
> >>> like to redo the core I/O subsystem, and so I have started to do
> >>> the first steps towards this rework.
> >>>
> >>> The benefits of this, apart from cleaning up code that has grown
> >>> over time, would be:
> >>>
> >>> - Reduce copying data through the stack.
> >>> - Reduce thread usage further to support even more clients.
> >>> - Off-load reading&writing - e.g. response writing to the framework
> >>> so as to better handle slow clients.
> >>>
> >>> There are many reasons why I would like to do this, here is one:
> >>> One optimization that we did at one point was to pool byte arrays,
> >>> because the allocation of byte arrays (read: zeroing out memory)
> >>> took way too much time. [I know - generally pooling in JVM's is a
> >>> bad idea, but in this case it made a lot of sense] With this
> >>> rewrite we would gain the same optimization one more time. CORBA
> >>> Input/OutputStreams should be backed by java.nio.ByteBuffers
> >>> directly, which will then be passed straight down to the NIO
> >>> interface.
> >>>
> >>> The effort as I see it falls in two parts:
> >>>
> >>> - Asynchroneous I/O API (AIO). Based on the abstractions we have
> >>> internally in the ORB, I'm doing a generalized version of something
> >>> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
> >>> however, the API runs straight on top of a Java SE 1.4 [no native
> >>> code], and hooks into an external thread pool to provide the same
> >>> API based on both NIO and "classic" IO technology.
> >>>
> >>>
> >>
> >> This area of work is absolutely fascinating for me. It seems that in
> >> ActiveMQ we have very similar requirements to your ORB. A standalone
> >> project was started to deal with exactly those issues at http://
> >> activeio.org. We built a flexible IO abstractions so that a client
> >> application can choose the API and implementation technology that
> >> best suites it's needs. Clients can choose to use a synchronous
> >> packet, asynchronous packet, or a synchronous stream interface. The
> >> And the client can choose what underlying IO technology will
> >> implement the chosen interface, it could choose to use standard
> >> blocking IO, or use NIO in blocking mode, or NIO in non-blocking
> >> mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
> >> All of this has already been implemented and is ASL 2.0 licensed and
> >> being used by Geronimo and ActiveMQ. Since you've been thinking
> >> this, it would be good to chat to see if it would suite your needs or
> >> if needs enhancing.
> >>
> >> Regards,
> >> Hiram
> >>
> >>
> >>
> >>> - IIOP Streams on AIO. Based on the above, write InputStream/
> >>> OutputStream implementations, as well as connection management,
> >>> backed by the AIO infrastructure and NIO direct buffers such that
> >>> the underlying OS can stream data straight into the high-level
> >>> structures.
> >>>
> >>> Kresten
> >>>
> >>>
> >>> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
> >>>
> >>>
> >>>
> >>>> Joern,
> >>>>
> >>>> Thanks for the note. This is the right place to discuss.
> >>>>
> >>>> There are two separate threads of discussion that I can think of :
> >>>>
> >>>> 1) Technical - if the donation fits technically into what we are
> >>>> doing (I'm sure it does...)
> >>>>
> >>>> 2) Administrative - how, where and when
> >>>>
> >>>> As for #2 my questions to you are :
> >>>>
> >>>> a) What is the timing for this donation? How soon?
> >>>>
> >>>> b) Do you see this as coming straight to Geronimo to be part of
> >>>> Geronimo initially, or to the Apache Incubator where we could work
> >>>> on it with you and then make the decision of coming to the
> >>>> Geronimo project or being something else, like a stand-alone top-
> >>>> level project.
> >>>>
> >>>> c) I assume that you'd be offering committers to help us with the
> >>>> codebase and to continue working and expanding. Do you have an
> >>>> idea of how many?
> >>>>
> >>>> Thanks for doing this, and we look forward to discussion on both
> >>>> subjects above.
> >>>>
> >>>> geir
> >>>> --
> >>>> Geir Magnusson Jr +1-203-665-6437
> >>>> geirm@apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> > --
> > Davanum Srinivas -http://blogs.cocoondev.org/dims/
> >
>
>
Re: Donation of a CORBA Orb
Posted by Hiram Chirino <ch...@apache.org>.
That's a possibility. I would not mind bringing the project into
apache if it will help grow the community.
But I think the first step is to see if activeio is the kind of think
that new Trifork orb is interested in.
Regards,
Hiram
On Jul 7, 2005, at 12:16 PM, Davanum Srinivas wrote:
> Hiram,
>
> Could you please make sure that the project gets worked on here at
> Apache? Am a bit concerned about code getting forked out and then
> becoming geronimo becoming a dependency on an external project. If
> activeio folks want to come here and join forces with trifork folks,
> that would be ideal IMHO.
>
> thanks,
> dims
>
> On 7/7/05, Hiram Chirino <ch...@apache.org> wrote:
>
>> Hi Kresten,
>>
>> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
>>
>>>
>>> == first project ==
>>>
>>> Right now the Trifork ORB is using NIO for the server-side of IIOP,
>>> but "classic" IO for the client side. The NIO part is great
>>> because it lets us run all corba handling in a single selector
>>> thread backed by the appserver's thread pool. However, With the
>>> experience from working with this for the last 5 years, I would
>>> like to redo the core I/O subsystem, and so I have started to do
>>> the first steps towards this rework.
>>>
>>> The benefits of this, apart from cleaning up code that has grown
>>> over time, would be:
>>>
>>> - Reduce copying data through the stack.
>>> - Reduce thread usage further to support even more clients.
>>> - Off-load reading&writing - e.g. response writing to the framework
>>> so as to better handle slow clients.
>>>
>>> There are many reasons why I would like to do this, here is one:
>>> One optimization that we did at one point was to pool byte arrays,
>>> because the allocation of byte arrays (read: zeroing out memory)
>>> took way too much time. [I know - generally pooling in JVM's is a
>>> bad idea, but in this case it made a lot of sense] With this
>>> rewrite we would gain the same optimization one more time. CORBA
>>> Input/OutputStreams should be backed by java.nio.ByteBuffers
>>> directly, which will then be passed straight down to the NIO
>>> interface.
>>>
>>> The effort as I see it falls in two parts:
>>>
>>> - Asynchroneous I/O API (AIO). Based on the abstractions we have
>>> internally in the ORB, I'm doing a generalized version of something
>>> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
>>> however, the API runs straight on top of a Java SE 1.4 [no native
>>> code], and hooks into an external thread pool to provide the same
>>> API based on both NIO and "classic" IO technology.
>>>
>>>
>>
>> This area of work is absolutely fascinating for me. It seems that in
>> ActiveMQ we have very similar requirements to your ORB. A standalone
>> project was started to deal with exactly those issues at http://
>> activeio.org. We built a flexible IO abstractions so that a client
>> application can choose the API and implementation technology that
>> best suites it's needs. Clients can choose to use a synchronous
>> packet, asynchronous packet, or a synchronous stream interface. The
>> And the client can choose what underlying IO technology will
>> implement the chosen interface, it could choose to use standard
>> blocking IO, or use NIO in blocking mode, or NIO in non-blocking
>> mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
>> All of this has already been implemented and is ASL 2.0 licensed and
>> being used by Geronimo and ActiveMQ. Since you've been thinking
>> this, it would be good to chat to see if it would suite your needs or
>> if needs enhancing.
>>
>> Regards,
>> Hiram
>>
>>
>>
>>> - IIOP Streams on AIO. Based on the above, write InputStream/
>>> OutputStream implementations, as well as connection management,
>>> backed by the AIO infrastructure and NIO direct buffers such that
>>> the underlying OS can stream data straight into the high-level
>>> structures.
>>>
>>> Kresten
>>>
>>>
>>> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
>>>
>>>
>>>
>>>> Joern,
>>>>
>>>> Thanks for the note. This is the right place to discuss.
>>>>
>>>> There are two separate threads of discussion that I can think of :
>>>>
>>>> 1) Technical - if the donation fits technically into what we are
>>>> doing (I'm sure it does...)
>>>>
>>>> 2) Administrative - how, where and when
>>>>
>>>> As for #2 my questions to you are :
>>>>
>>>> a) What is the timing for this donation? How soon?
>>>>
>>>> b) Do you see this as coming straight to Geronimo to be part of
>>>> Geronimo initially, or to the Apache Incubator where we could work
>>>> on it with you and then make the decision of coming to the
>>>> Geronimo project or being something else, like a stand-alone top-
>>>> level project.
>>>>
>>>> c) I assume that you'd be offering committers to help us with the
>>>> codebase and to continue working and expanding. Do you have an
>>>> idea of how many?
>>>>
>>>> Thanks for doing this, and we look forward to discussion on both
>>>> subjects above.
>>>>
>>>> geir
>>>> --
>>>> Geir Magnusson Jr +1-203-665-6437
>>>> geirm@apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Davanum Srinivas -http://blogs.cocoondev.org/dims/
>
Re: ActiveIO
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
David Blevins wrote, On 7/8/2005 3:01 PM:
>On Fri, Jul 08, 2005 at 11:39:31AM -0700, Alan D. Cabrera wrote:
>
>
>>David Blevins wrote, On 7/7/2005 7:51 PM:
>>
>>
>>
>>>We had several conversations over a period of months on just using the
>>>ActiveMQ transports in OpenEJB and Geronimo so there would be
>>>something common to cut-down on duplicating efforts. We didn't use
>>>any Geronimo IO code cause it, well... sucked :)
>>>
>>>
>>>
>>>
>>Eh? I wouldn't characterize it as sucky code. I would say that it was
>>sleep deprived...
>>
>>
>
>Sorry, Alan :) How about this:
>
> It was raw potential, greatness in the making and a few sleep
> statements shy from sheer perfection.
>
>/me climbs under a rock and hides
>
ROTFL!
/me cleans the coffee spewed on keyboard...
Regards,
Alan
Re: ActiveIO
Posted by David Blevins <da...@visi.com>.
On Fri, Jul 08, 2005 at 11:39:31AM -0700, Alan D. Cabrera wrote:
> David Blevins wrote, On 7/7/2005 7:51 PM:
>
> >We had several conversations over a period of months on just using the
> >ActiveMQ transports in OpenEJB and Geronimo so there would be
> >something common to cut-down on duplicating efforts. We didn't use
> >any Geronimo IO code cause it, well... sucked :)
> >
> >
> Eh? I wouldn't characterize it as sucky code. I would say that it was
> sleep deprived...
Sorry, Alan :) How about this:
It was raw potential, greatness in the making and a few sleep
statements shy from sheer perfection.
/me climbs under a rock and hides
-David
Re: ActiveIO
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
David Blevins wrote, On 7/7/2005 7:51 PM:
>We had several conversations over a period of months on just using the
>ActiveMQ transports in OpenEJB and Geronimo so there would be
>something common to cut-down on duplicating efforts. We didn't use
>any Geronimo IO code cause it, well... sucked :)
>
>
Eh? I wouldn't characterize it as sucky code. I would say that it was
sleep deprived...
Regards,
Alan
Re: ActiveIO
Posted by Andy Piper <an...@bea.com>.
At 11:41 AM 7/12/2005, David Jencks wrote:
>>If an application does a JAAS-based certificate login, then the private
>>credentials thus stored in the current subject should be used to do the
>>client-side of an client authentication on a successive remote corba SSL
>>call. Thus making the client system identity identical to the logged in
>>user.
>
>While I like the idea of allowing this as an option, my understanding is
>this is not csiv2 compliant: I think this is what the ITTX509CertChain is
>for. Please correct me if I'm wrong.
One of the problems with CSIv2 is that no-one has defined what it means in
relation to J2EE client security. The only mandated things are those
described in the EJB 2.x spec and those are server-server only and give
vendors a great deal of leeway. We have ongoing customer expectation issues
with secure interop between WAS and WLS - both of which are CTS compliant -
because of different interpretations of the spec.
The use of X509 cert chains in SSL handshake and the SAS protocol are
somewhat orthogonal issues. Its perfectly possible to establish trust at
the SSL level using one set of certs and assert identity at the SAS level
using another. The CSIv2 spec supports both and I don't think it is illegal
to do either. The spec does say that the SAS protocol support is to
potentially overcome limitations at the transport level.
So I suspect you could do either and still be CTS compliant. I would say
that using certs to establish identity in the SSL handshake has been used
by appserver vendors for a very long time and is therefore likely to be
supported by more appservers than at the SAS protocol level. WLS for
instance supports inbound certs via ITTX509CertChain but does not currently
provide a client mechanism instead relying on SSL.
HTH
andy
Re: ActiveIO
Posted by David Jencks <dj...@gluecode.com>.
On Jul 12, 2005, at 11:27 AM, Kresten Krab Thorup wrote:
>> David Jencks wrote:
>>
>> On Jul 12, 2005, at 1:14 AM, Kresten Krab Thorup wrote:
>>
>>> For client sockets, things are slightly more complicated because we
>>> need to support that the user is authenticated with an X509
>>> certificate. In this case, the credentials of the user (which would
>>> typically be sitting inside the current Subject) needs to be passed
>>> along to the socket creation so that the SSL logic can create an
>>> X509KeyManager that can service this information to the server if he
>>> needs it to establish the clients credentials.
>>>
>>
>> Is this correct? Or one possibility we should support? My
>> understanding is that normally in csiv2 the ssl layer client
>> authentication authenticates the client system itself, whereas the
>> user's identity is transferred in an SAS identity token. If the
>> client
>> system is a standalone client rather than a server, the client system
>> identity would presumably be the same as the user identity. Have I
>> missed something?
>>
>
> Here is the example I'm thinking of:
>
> If an application does a JAAS-based certificate login, then the private
> credentials thus stored in the current subject should be used to do the
> client-side of an client authentication on a successive remote corba
> SSL
> call. Thus making the client system identity identical to the logged
> in
> user.
While I like the idea of allowing this as an option, my understanding
is this is not csiv2 compliant: I think this is what the
ITTX509CertChain is for. Please correct me if I'm wrong.
david jencks
>
> Kresten
>
Re: ActiveIO
Posted by Kresten Krab Thorup <kr...@trifork.com>.
> David Jencks wrote:
>
> On Jul 12, 2005, at 1:14 AM, Kresten Krab Thorup wrote:
>
>> For client sockets, things are slightly more complicated because we
>> need to support that the user is authenticated with an X509
>> certificate. In this case, the credentials of the user (which would
>> typically be sitting inside the current Subject) needs to be passed
>> along to the socket creation so that the SSL logic can create an
>> X509KeyManager that can service this information to the server if he
>> needs it to establish the clients credentials.
>>
>
> Is this correct? Or one possibility we should support? My
> understanding is that normally in csiv2 the ssl layer client
> authentication authenticates the client system itself, whereas the
> user's identity is transferred in an SAS identity token. If the client
> system is a standalone client rather than a server, the client system
> identity would presumably be the same as the user identity. Have I
> missed something?
>
Here is the example I'm thinking of:
If an application does a JAAS-based certificate login, then the private
credentials thus stored in the current subject should be used to do the
client-side of an client authentication on a successive remote corba SSL
call. Thus making the client system identity identical to the logged in
user.
Kresten
Re: ActiveIO
Posted by David Jencks <da...@yahoo.com>.
On Jul 12, 2005, at 1:14 AM, Kresten Krab Thorup wrote:
> Here are some notes on SSL configuration from IIOP/CSIv2 point of
> view. This is not API, just what a such API need to do. The Trifork
> ORB (note: Trifork is with just one capital letter) includes some code
> to do this, but it would make sense to integrate this into ActiveIO to
> make it more widely applicable.
>
> For SSL we need a more elaborate configuration scheme. These
> requirements are driven directly off the J2EE CSIv2 interop
> specifications. In essence, we need to be able to specify these
> things on a per-bean level; which is probably best to do by a level of
> indirection, by having "named server socket configuration"s that can
> be referenced symbolically from the container-specific deployment
> descriptors.
We do something sort of like this (tss-link) in openejb today, although
there are architectural problems with the current implementation.
>
> For an SSL ServerSocket we need
>
> protocols=(SSL),(TLS)
> ciphers=<ALGORITHM,...>
> hashes=<ALGORITHM,...>
> keyexchanges=<ALGORITHM,...>
> requireTrustClient=REQUIRE|SUPPORT|NONE
> requireTrustServer=REQUIRE|SUPPORT|NONE
>
> For both cipers, hashes and keyexchangees, the list can include the
> NULL algorithm.
>
> These properties are used to select which cipher suites should be
> enabled for a given socket (the idea is to simply subset the
> "available cipher suites" on the active SSL provider). Cipher suites
> are named like this:
>
> (TLS|SSL)_<KEYEXCHANGE>_WITH_<CIPHER>_<HASH>
>
> If there is a key exchange mechanism (other than anonymous
> Diffie-Hellman "DH_anon"), then the SSL context also needs access to a
> key store with a key corresponding to the key exchange mechanism, and
> also a trust store used to validate the other parties. These two are
> represented by
>
> javax.net.ssl.X509TrustManager
> javax.net.ssl.X509KeyManager
>
> Both of these essentially represent a "keystore that has been opened
> (password unlocked)" as well as some policies for trust and key
> validation. It would make sense to simply expose instances of these
> as GBeans directly in the geronimo infrastructure, and then name these
> objects so they can be referenced from the SSL configuration.
>
> The require-trust parameters determines if client/server side trust is
> required or just supported. In the former case, client hand-shake
> should be completed successfully before the socket is passed back. If
> either of these is REQUIRE then only cipher suites with a non-null key
> exchange mechanism can be allowed.
>
> For client sockets, things are slightly more complicated because we
> need to support that the user is authenticated with an X509
> certificate. In this case, the credentials of the user (which would
> typically be sitting inside the current Subject) needs to be passed
> along to the socket creation so that the SSL logic can create an
> X509KeyManager that can service this information to the server if he
> needs it to establish the clients credentials.
>
Is this correct? Or one possibility we should support? My
understanding is that normally in csiv2 the ssl layer client
authentication authenticates the client system itself, whereas the
user's identity is transferred in an SAS identity token. If the client
system is a standalone client rather than a server, the client system
identity would presumably be the same as the user identity. Have I
missed something?
thanks
david jencks
>
>
> Kresten Krab Thorup
> krab@trifork.com
>
> "We do not inherit the Earth from our parents, we borrow it from our
> children." Saint Exupery
>
Re: ActiveIO
Posted by Kresten Krab Thorup <kr...@trifork.com>.
Here are some notes on SSL configuration from IIOP/CSIv2 point of
view. This is not API, just what a such API need to do. The Trifork
ORB (note: Trifork is with just one capital letter) includes some
code to do this, but it would make sense to integrate this into
ActiveIO to make it more widely applicable.
For SSL we need a more elaborate configuration scheme. These
requirements are driven directly off the J2EE CSIv2 interop
specifications. In essence, we need to be able to specify these
things on a per-bean level; which is probably best to do by a level
of indirection, by having "named server socket configuration"s that
can be referenced symbolically from the container-specific deployment
descriptors.
For an SSL ServerSocket we need
protocols=(SSL),(TLS)
ciphers=<ALGORITHM,...>
hashes=<ALGORITHM,...>
keyexchanges=<ALGORITHM,...>
requireTrustClient=REQUIRE|SUPPORT|NONE
requireTrustServer=REQUIRE|SUPPORT|NONE
For both cipers, hashes and keyexchangees, the list can include the
NULL algorithm.
These properties are used to select which cipher suites should be
enabled for a given socket (the idea is to simply subset the
"available cipher suites" on the active SSL provider). Cipher suites
are named like this:
(TLS|SSL)_<KEYEXCHANGE>_WITH_<CIPHER>_<HASH>
If there is a key exchange mechanism (other than anonymous Diffie-
Hellman "DH_anon"), then the SSL context also needs access to a key
store with a key corresponding to the key exchange mechanism, and
also a trust store used to validate the other parties. These two are
represented by
javax.net.ssl.X509TrustManager
javax.net.ssl.X509KeyManager
Both of these essentially represent a "keystore that has been opened
(password unlocked)" as well as some policies for trust and key
validation. It would make sense to simply expose instances of these
as GBeans directly in the geronimo infrastructure, and then name
these objects so they can be referenced from the SSL configuration.
The require-trust parameters determines if client/server side trust
is required or just supported. In the former case, client hand-shake
should be completed successfully before the socket is passed back.
If either of these is REQUIRE then only cipher suites with a non-null
key exchange mechanism can be allowed.
For client sockets, things are slightly more complicated because we
need to support that the user is authenticated with an X509
certificate. In this case, the credentials of the user (which would
typically be sitting inside the current Subject) needs to be passed
along to the socket creation so that the SSL logic can create an
X509KeyManager that can service this information to the server if he
needs it to establish the clients credentials.
Kresten Krab Thorup
krab@trifork.com
"We do not inherit the Earth from our parents, we borrow it from our
children." Saint Exupery
Re: ActiveIO
Posted by Jacek Laskowski <jl...@apache.org>.
Kresten Krab Thorup wrote:
> Hiram,
>
> I browsed through the ActiveIO code, and it is pretty close to what I
> am looking for for the basic IO stuff. Very nice!
>
> Here's a couple of things that come off my mind...
Thanks Kresten for these comments. They have served me as a gentle
introduction to ActiveIO, which I've never worked before, but upon
following them I'm a little more familiar with what I could expect from
it. Very roughtly, I supposed, but quite enough for a starter.
> - It would also be good to have the half-close functionality. In the
> Trifork ORB, if ORB receives a shut down, all active connection sockets
> are half-closed until active requests are done and responses sent.
It sounds like a 2 phase commit protocol for sockets. At least, it
reminded me about it upon reading it.
> I'll come back later with some thoughts on SSL stuff...
Please do. Keep it going.
> Kresten Krab Thorup
Jacek
Re: ActiveIO
Posted by Panagiotis Astithas <pa...@ebs.gr>.
Hiram Chirino wrote:
>
> On Jul 11, 2005, at 5:59 AM, Kresten Krab Thorup wrote:
>> I'll come back later with some thoughts on SSL stuff...
>>
>
> Thanks for the input Kresten. To spare the geronimo list from this low
> level io talk, you might want to post further thoughts to the activeio
> mailing lists: http://activeio.codehaus.org/maven/mail- lists.html
On the contrary, low level talk is very informative!
Thanks,
Panagiotis
Re: ActiveIO (was: Donation of a CORBA Orb)
Posted by Hiram Chirino <hi...@hiramchirino.com>.
On Jul 11, 2005, at 5:59 AM, Kresten Krab Thorup wrote:
> Hiram,
>
> I browsed through the ActiveIO code, and it is pretty close to what
> I am looking for for the basic IO stuff. Very nice!
>
> Here's a couple of things that come off my mind...
>
> - the NIOAsyncChannel class should use the selector mechanism to
> wait for the ability to write data, rather than Object.wait'ing.
>
Yep, but in that case the producing thread should still do an
Object.wait() for the selector to callback and notify the producing
thread. Right now I'm taking a guess that the amount of time that I
have to wait() is small, while using a selector callback would let me
know explicitly how long the wait is for.
> - it would be benefitial to be able to buffer output enabling
> invocations in the main logic threads to finish fast, and then do
> the I/O in a separate thread (for example directly inside the
> selector thread). This is valuable for "slow clients" that may
> access the server over a modem for example. But this is just nice
> to have.
>
Good idea, we could do this with a filter easily.. in fact I think I
started on a filter that does just that. But, typically, I would
think raw byte buffering better done in the operating system layer.
Socket buffer sizes can be set to improve that.
> Maybe the above two could be combined into an "OutputAsyncChannel"
> interface? Perhaps this could work by means of a special
> FlushPacket that invokes a callback handler when all previous
> packets has been sent.
Our Channel interfaces have a flush() method that is meant to do just
that! (To do it's best to flush all buffered data down the pipe).
>
> - It looks like all writes are synchronous and blocking. We need
> to have a timeout mechanism for both read- and write-operations --
> this is critical for large-scale operations. When there are many
> clients, several of them will typically be inactive for longer
> periods of time, and so there is a lot to be saved by closing down
> connections. Also, some of them will simply hang, become
> disconnected from the network without TCP-level notification, or
> otherwise be ineffective. example: In one of our installations we
> have hundreds of CORBA clients sitting at "work stations" around
> the facility, and most of these are idle most of the time. Corba/
> iiop has a mechanism to reestablish such connections as needed (at
> least the Trifork ORB does that).
>
Sounds good to me. I'm willing to add write operation with a
timeout. I would guess we also need a flush operation with a time too.
> - It would also be good to have the half-close functionality. In
> the Trifork ORB, if ORB receives a shut down, all active connection
> sockets are half-closed until active requests are done and
> responses sent.
>
> One of the difficult problems with TCP sockets is that one does not
> necessarily know if the other end closed the connection (or if he
> is gone). This can result in some pretty annoying hangs higher up
> the stack, and it's a pain to handle those cases all over the place
> in I/O code. The only "generic solution" to this as far as I can
> see is to use reasonable timeouts everywhere.
>
> I'll come back later with some thoughts on SSL stuff...
>
Thanks for the input Kresten. To spare the geronimo list from this
low level io talk, you might want to post further thoughts to the
activeio mailing lists: http://activeio.codehaus.org/maven/mail-
lists.html
>
>
> Kresten Krab Thorup
> krab@trifork.com
>
> "We do not inherit the Earth from our parents, we borrow it from
> our children." Saint Exupery
>
>
>
> On Jul 8, 2005, at 5:35 PM, Hiram Chirino wrote:
>
>
>> Hi David,
>>
>> You are absolutely correct. The ActiveIO stuff was a
>> generalization and abstraction of the IO code in ActiveMQ. Thanks
>> for clarifying a potentially sensitive situation!
>>
>> Regards,
>> Hiram
>>
>> On Jul 7, 2005, at 10:51 PM, David Blevins wrote:
>>
>>
>>
>>> On Thu, Jul 07, 2005 at 12:16:19PM -0400, Davanum Srinivas wrote:
>>>
>>>
>>>
>>>> Hiram,
>>>>
>>>> Could you please make sure that the project gets worked on here at
>>>> Apache? Am a bit concerned about code getting forked out and then
>>>> becoming geronimo becoming a dependency on an external project.
>>>>
>>>>
>>>>
>>>
>>> There's the "f" word again :)
>>>
>>> Hiram, you can correct me if I'm wrong, but thought the ActiveIO
>>> code
>>> was created from the ActiveMQ transport system?
>>>
>>> We had several conversations over a period of months on just
>>> using the
>>> ActiveMQ transports in OpenEJB and Geronimo so there would be
>>> something common to cut-down on duplicating efforts. We didn't use
>>> any Geronimo IO code cause it, well... sucked :)
>>>
>>> Even then, I think you pretty much rewrote everything.
>>>
>>> Is my memory of history accurate or have I demented myself?
>>>
>>> -David
>>>
>>>
>>>
>>
>>
>>
>
>
Re: ActiveIO (was: Donation of a CORBA Orb)
Posted by Kresten Krab Thorup <kr...@trifork.com>.
Hiram,
I browsed through the ActiveIO code, and it is pretty close to what I
am looking for for the basic IO stuff. Very nice!
Here's a couple of things that come off my mind...
- the NIOAsyncChannel class should use the selector mechanism to wait
for the ability to write data, rather than Object.wait'ing.
- it would be benefitial to be able to buffer output enabling
invocations in the main logic threads to finish fast, and then do the
I/O in a separate thread (for example directly inside the selector
thread). This is valuable for "slow clients" that may access the
server over a modem for example. But this is just nice to have.
Maybe the above two could be combined into an "OutputAsyncChannel"
interface? Perhaps this could work by means of a special FlushPacket
that invokes a callback handler when all previous packets has been sent.
- It looks like all writes are synchronous and blocking. We need to
have a timeout mechanism for both read- and write-operations -- this
is critical for large-scale operations. When there are many clients,
several of them will typically be inactive for longer periods of
time, and so there is a lot to be saved by closing down connections.
Also, some of them will simply hang, become disconnected from the
network without TCP-level notification, or otherwise be ineffective.
example: In one of our installations we have hundreds of CORBA
clients sitting at "work stations" around the facility, and most of
these are idle most of the time. Corba/iiop has a mechanism to
reestablish such connections as needed (at least the Trifork ORB
does that).
- It would also be good to have the half-close functionality. In the
Trifork ORB, if ORB receives a shut down, all active connection
sockets are half-closed until active requests are done and responses
sent.
One of the difficult problems with TCP sockets is that one does not
necessarily know if the other end closed the connection (or if he is
gone). This can result in some pretty annoying hangs higher up the
stack, and it's a pain to handle those cases all over the place in I/
O code. The only "generic solution" to this as far as I can see is
to use reasonable timeouts everywhere.
I'll come back later with some thoughts on SSL stuff...
Kresten Krab Thorup
krab@trifork.com
"We do not inherit the Earth from our parents, we borrow it from our
children." Saint Exupery
On Jul 8, 2005, at 5:35 PM, Hiram Chirino wrote:
> Hi David,
>
> You are absolutely correct. The ActiveIO stuff was a
> generalization and abstraction of the IO code in ActiveMQ. Thanks
> for clarifying a potentially sensitive situation!
>
> Regards,
> Hiram
>
> On Jul 7, 2005, at 10:51 PM, David Blevins wrote:
>
>
>> On Thu, Jul 07, 2005 at 12:16:19PM -0400, Davanum Srinivas wrote:
>>
>>
>>> Hiram,
>>>
>>> Could you please make sure that the project gets worked on here at
>>> Apache? Am a bit concerned about code getting forked out and then
>>> becoming geronimo becoming a dependency on an external project.
>>>
>>>
>>
>> There's the "f" word again :)
>>
>> Hiram, you can correct me if I'm wrong, but thought the ActiveIO code
>> was created from the ActiveMQ transport system?
>>
>> We had several conversations over a period of months on just using
>> the
>> ActiveMQ transports in OpenEJB and Geronimo so there would be
>> something common to cut-down on duplicating efforts. We didn't use
>> any Geronimo IO code cause it, well... sucked :)
>>
>> Even then, I think you pretty much rewrote everything.
>>
>> Is my memory of history accurate or have I demented myself?
>>
>> -David
>>
>>
>
>
Re: ActiveIO (was: Donation of a CORBA Orb)
Posted by Hiram Chirino <ch...@apache.org>.
Hi David,
You are absolutely correct. The ActiveIO stuff was a generalization
and abstraction of the IO code in ActiveMQ. Thanks for clarifying a
potentially sensitive situation!
Regards,
Hiram
On Jul 7, 2005, at 10:51 PM, David Blevins wrote:
> On Thu, Jul 07, 2005 at 12:16:19PM -0400, Davanum Srinivas wrote:
>
>> Hiram,
>>
>> Could you please make sure that the project gets worked on here at
>> Apache? Am a bit concerned about code getting forked out and then
>> becoming geronimo becoming a dependency on an external project.
>>
>
> There's the "f" word again :)
>
> Hiram, you can correct me if I'm wrong, but thought the ActiveIO code
> was created from the ActiveMQ transport system?
>
> We had several conversations over a period of months on just using the
> ActiveMQ transports in OpenEJB and Geronimo so there would be
> something common to cut-down on duplicating efforts. We didn't use
> any Geronimo IO code cause it, well... sucked :)
>
> Even then, I think you pretty much rewrote everything.
>
> Is my memory of history accurate or have I demented myself?
>
> -David
>
Re: ActiveIO (was: Donation of a CORBA Orb)
Posted by David Blevins <da...@visi.com>.
On Thu, Jul 07, 2005 at 12:16:19PM -0400, Davanum Srinivas wrote:
> Hiram,
>
> Could you please make sure that the project gets worked on here at
> Apache? Am a bit concerned about code getting forked out and then
> becoming geronimo becoming a dependency on an external project.
There's the "f" word again :)
Hiram, you can correct me if I'm wrong, but thought the ActiveIO code
was created from the ActiveMQ transport system?
We had several conversations over a period of months on just using the
ActiveMQ transports in OpenEJB and Geronimo so there would be
something common to cut-down on duplicating efforts. We didn't use
any Geronimo IO code cause it, well... sucked :)
Even then, I think you pretty much rewrote everything.
Is my memory of history accurate or have I demented myself?
-David
Re: Donation of a CORBA Orb
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Davanum Srinivas wrote, On 7/7/2005 9:16 AM:
>Hiram,
>
>Could you please make sure that the project gets worked on here at
>Apache? Am a bit concerned about code getting forked out and then
>becoming geronimo becoming a dependency on an external project. If
>activeio folks want to come here and join forces with trifork folks,
>that would be ideal IMHO.
>
>
I do not see the need to move ActiveIO into Apache, if that's what you mean.
Geronimo has many dependencies on external projects. Where is your concern?
Regards,
Alan
Re: Donation of a CORBA Orb
Posted by Davanum Srinivas <da...@gmail.com>.
Hiram,
Could you please make sure that the project gets worked on here at
Apache? Am a bit concerned about code getting forked out and then
becoming geronimo becoming a dependency on an external project. If
activeio folks want to come here and join forces with trifork folks,
that would be ideal IMHO.
thanks,
dims
On 7/7/05, Hiram Chirino <ch...@apache.org> wrote:
> Hi Kresten,
>
> On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
> >
> > == first project ==
> >
> > Right now the Trifork ORB is using NIO for the server-side of IIOP,
> > but "classic" IO for the client side. The NIO part is great
> > because it lets us run all corba handling in a single selector
> > thread backed by the appserver's thread pool. However, With the
> > experience from working with this for the last 5 years, I would
> > like to redo the core I/O subsystem, and so I have started to do
> > the first steps towards this rework.
> >
> > The benefits of this, apart from cleaning up code that has grown
> > over time, would be:
> >
> > - Reduce copying data through the stack.
> > - Reduce thread usage further to support even more clients.
> > - Off-load reading&writing - e.g. response writing to the framework
> > so as to better handle slow clients.
> >
> > There are many reasons why I would like to do this, here is one:
> > One optimization that we did at one point was to pool byte arrays,
> > because the allocation of byte arrays (read: zeroing out memory)
> > took way too much time. [I know - generally pooling in JVM's is a
> > bad idea, but in this case it made a lot of sense] With this
> > rewrite we would gain the same optimization one more time. CORBA
> > Input/OutputStreams should be backed by java.nio.ByteBuffers
> > directly, which will then be passed straight down to the NIO
> > interface.
> >
> > The effort as I see it falls in two parts:
> >
> > - Asynchroneous I/O API (AIO). Based on the abstractions we have
> > internally in the ORB, I'm doing a generalized version of something
> > very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
> > however, the API runs straight on top of a Java SE 1.4 [no native
> > code], and hooks into an external thread pool to provide the same
> > API based on both NIO and "classic" IO technology.
> >
>
> This area of work is absolutely fascinating for me. It seems that in
> ActiveMQ we have very similar requirements to your ORB. A standalone
> project was started to deal with exactly those issues at http://
> activeio.org. We built a flexible IO abstractions so that a client
> application can choose the API and implementation technology that
> best suites it's needs. Clients can choose to use a synchronous
> packet, asynchronous packet, or a synchronous stream interface. The
> And the client can choose what underlying IO technology will
> implement the chosen interface, it could choose to use standard
> blocking IO, or use NIO in blocking mode, or NIO in non-blocking
> mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
> All of this has already been implemented and is ASL 2.0 licensed and
> being used by Geronimo and ActiveMQ. Since you've been thinking
> this, it would be good to chat to see if it would suite your needs or
> if needs enhancing.
>
> Regards,
> Hiram
>
>
> > - IIOP Streams on AIO. Based on the above, write InputStream/
> > OutputStream implementations, as well as connection management,
> > backed by the AIO infrastructure and NIO direct buffers such that
> > the underlying OS can stream data straight into the high-level
> > structures.
> >
> > Kresten
> >
> >
> > On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
> >
> >
> >> Joern,
> >>
> >> Thanks for the note. This is the right place to discuss.
> >>
> >> There are two separate threads of discussion that I can think of :
> >>
> >> 1) Technical - if the donation fits technically into what we are
> >> doing (I'm sure it does...)
> >>
> >> 2) Administrative - how, where and when
> >>
> >> As for #2 my questions to you are :
> >>
> >> a) What is the timing for this donation? How soon?
> >>
> >> b) Do you see this as coming straight to Geronimo to be part of
> >> Geronimo initially, or to the Apache Incubator where we could work
> >> on it with you and then make the decision of coming to the
> >> Geronimo project or being something else, like a stand-alone top-
> >> level project.
> >>
> >> c) I assume that you'd be offering committers to help us with the
> >> codebase and to continue working and expanding. Do you have an
> >> idea of how many?
> >>
> >> Thanks for doing this, and we look forward to discussion on both
> >> subjects above.
> >>
> >> geir
> >> --
> >> Geir Magnusson Jr +1-203-665-6437
> >> geirm@apache.org
> >>
> >>
> >>
> >>
> >
> >
>
>
--
Davanum Srinivas -http://blogs.cocoondev.org/dims/
Re: Donation of a CORBA Orb
Posted by Hiram Chirino <ch...@apache.org>.
Hi Kresten,
On Jul 4, 2005, at 11:53 AM, Kresten Krab Thorup wrote:
>
> == first project ==
>
> Right now the Trifork ORB is using NIO for the server-side of IIOP,
> but "classic" IO for the client side. The NIO part is great
> because it lets us run all corba handling in a single selector
> thread backed by the appserver's thread pool. However, With the
> experience from working with this for the last 5 years, I would
> like to redo the core I/O subsystem, and so I have started to do
> the first steps towards this rework.
>
> The benefits of this, apart from cleaning up code that has grown
> over time, would be:
>
> - Reduce copying data through the stack.
> - Reduce thread usage further to support even more clients.
> - Off-load reading&writing - e.g. response writing to the framework
> so as to better handle slow clients.
>
> There are many reasons why I would like to do this, here is one:
> One optimization that we did at one point was to pool byte arrays,
> because the allocation of byte arrays (read: zeroing out memory)
> took way too much time. [I know - generally pooling in JVM's is a
> bad idea, but in this case it made a lot of sense] With this
> rewrite we would gain the same optimization one more time. CORBA
> Input/OutputStreams should be backed by java.nio.ByteBuffers
> directly, which will then be passed straight down to the NIO
> interface.
>
> The effort as I see it falls in two parts:
>
> - Asynchroneous I/O API (AIO). Based on the abstractions we have
> internally in the ORB, I'm doing a generalized version of something
> very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
> however, the API runs straight on top of a Java SE 1.4 [no native
> code], and hooks into an external thread pool to provide the same
> API based on both NIO and "classic" IO technology.
>
This area of work is absolutely fascinating for me. It seems that in
ActiveMQ we have very similar requirements to your ORB. A standalone
project was started to deal with exactly those issues at http://
activeio.org. We built a flexible IO abstractions so that a client
application can choose the API and implementation technology that
best suites it's needs. Clients can choose to use a synchronous
packet, asynchronous packet, or a synchronous stream interface. The
And the client can choose what underlying IO technology will
implement the chosen interface, it could choose to use standard
blocking IO, or use NIO in blocking mode, or NIO in non-blocking
mode, or IBM AIO, or JXTA sockets, or jvm pipes, etc. etc.
All of this has already been implemented and is ASL 2.0 licensed and
being used by Geronimo and ActiveMQ. Since you've been thinking
this, it would be good to chat to see if it would suite your needs or
if needs enhancing.
Regards,
Hiram
> - IIOP Streams on AIO. Based on the above, write InputStream/
> OutputStream implementations, as well as connection management,
> backed by the AIO infrastructure and NIO direct buffers such that
> the underlying OS can stream data straight into the high-level
> structures.
>
> Kresten
>
>
> On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
>
>
>> Joern,
>>
>> Thanks for the note. This is the right place to discuss.
>>
>> There are two separate threads of discussion that I can think of :
>>
>> 1) Technical - if the donation fits technically into what we are
>> doing (I'm sure it does...)
>>
>> 2) Administrative - how, where and when
>>
>> As for #2 my questions to you are :
>>
>> a) What is the timing for this donation? How soon?
>>
>> b) Do you see this as coming straight to Geronimo to be part of
>> Geronimo initially, or to the Apache Incubator where we could work
>> on it with you and then make the decision of coming to the
>> Geronimo project or being something else, like a stand-alone top-
>> level project.
>>
>> c) I assume that you'd be offering committers to help us with the
>> codebase and to continue working and expanding. Do you have an
>> idea of how many?
>>
>> Thanks for doing this, and we look forward to discussion on both
>> subjects above.
>>
>> geir
>> --
>> Geir Magnusson Jr +1-203-665-6437
>> geirm@apache.org
>>
>>
>>
>>
>
>
Re: Donation of a CORBA Orb
Posted by Kresten Krab Thorup <kr...@trifork.com>.
Geir,
Thanks for your questions, as I was trying to answer the response
ended up becoming rather lengthy...
First off, I don't think that it makes too much sense to just toss a
bunch of code over the fence; that would be a dead-end. We need to
set it up such that it becomes part of the community, and to do this
I am thinking that it would be good to engage the community in
rewriting some parts of the ORB that we were thinking to refactor
anyway. If we piecemeal the contribution in smaller chunks I am
thinking there is a better chance to make it everybody's property.
As for schedule of this, we're thinking that it would come in pieces
over the next 4 months or so. We need to do some clean-up and
partitioning from the rest of our code base and as I said before, we
would like to introduce this whole thing gently both to us and the
community.
I think of this as a sing-along or "karaoke" project: somewhere in
between "writing from scratch" and "donation". We will take the
individual parts of the Trifork ORB, clean them up with coding
standards, javadoc, etc.; and have the community be part of reworking
and improving the pieces along the way. For some parts, such as the
core io, I would like it to be redone entirely; whereas much of the
higher-level logic such as RMI/IIOP and POA handling can go almost
straight through. When we're all the way though the entire code base
will be appropriately "apachified."
As for where it should be placed ASF-wise, I am thinking that it
would be best to place it as part of Geronimo initially, because it
is a good thing to have a concrete project [the appserver] to drive
the requirements. Also, the featureset required to do Java EE is
somewhat less than the full CORBA spec (for instance, we have no
interface/implementation repository, and no IDL compiler).
Our CORBA subsystem is written almost entirely by two people (of
which one is me), and so we would initially have two people on this.
Depending on how this thing takes off we can add more people over time.
I have started working on a road map for how the donation could
progress over time, and I will share this with you once it's a bit
further along. However, just to tease everyone, below is an
example of where I am thinking we could start.
As for matching the technology, I don't really know where to begin;
but an ORB is a relatively standard piece of technology. I can come
with some random highlights:
- The ORB is quite clean in the sense that it has literally no
statics; since it is designed to be able to run multiple concurrent
instances.
- In our RMI/IIOP (and thus our EJB container) we generate all stubs
directly in memory; so there is no need to have javac in the loop.
However, since CORBA stubs (and thus RMI/IIOP stubs) needs to extend
a class [javax.rmi.CORBA.Stub] the JDK Proxies won't do it, so we
have our own implementation of java.lang.reflect.Proxy based on BCEL
that allows a proxy to be subclass of a given class.
- Many EJB containers have a shortcut to effectively implement
LocalEJB semantics for local calls to make applications run faster;
even though this is really a break of semantics. Our RMI/IIOP has a
middle-ground option which is a very efficient "in-memory deep copy"
with very-close-to-full java.io.Serializable semantics. It avoids
writing everything to a byte array; passing immutable objects such as
Strings, java.lang.Integer, etc. straight through; but copies all
other objects properly.
- All wire-level security and transaction processing is done cleanly
in interceptors; so for these parts we can probably use most of what
you already have.
The non-portable part is essentially in how you tell CORBA to use
SSL; as you have surely experienced yourselves.
Please let me know if you have any questions.
Kresten Krab Thorup
CTO, Trifork
A final side note: internally we call this CORBA project "Navajo," as
the IIOP protocol is appropriately backwards and obscure to be named
after the indians that were employed to relay secret messages in the
pacific during WWII :-), see http://www.history.navy.mil/faqs/
faq61-2.htm
Anyway, here is the "first project" I am thinking of...
== first project ==
Right now the Trifork ORB is using NIO for the server-side of IIOP,
but "classic" IO for the client side. The NIO part is great because
it lets us run all corba handling in a single selector thread backed
by the appserver's thread pool. However, With the experience from
working with this for the last 5 years, I would like to redo the core
I/O subsystem, and so I have started to do the first steps towards
this rework.
The benefits of this, apart from cleaning up code that has grown over
time, would be:
- Reduce copying data through the stack.
- Reduce thread usage further to support even more clients.
- Off-load reading&writing - e.g. response writing to the framework
so as to better handle slow clients.
There are many reasons why I would like to do this, here is one:
One optimization that we did at one point was to pool byte arrays,
because the allocation of byte arrays (read: zeroing out memory) took
way too much time. [I know - generally pooling in JVM's is a bad
idea, but in this case it made a lot of sense] With this rewrite we
would gain the same optimization one more time. CORBA Input/
OutputStreams should be backed by java.nio.ByteBuffers directly,
which will then be passed straight down to the NIO interface.
The effort as I see it falls in two parts:
- Asynchroneous I/O API (AIO). Based on the abstractions we have
internally in the ORB, I'm doing a generalized version of something
very similar to IBM's aio4j; future-based socket I/O. Unline aio4j
however, the API runs straight on top of a Java SE 1.4 [no native
code], and hooks into an external thread pool to provide the same API
based on both NIO and "classic" IO technology.
- IIOP Streams on AIO. Based on the above, write InputStream/
OutputStream implementations, as well as connection management,
backed by the AIO infrastructure and NIO direct buffers such that the
underlying OS can stream data straight into the high-level structures.
Kresten
On Jul 4, 2005, at 2:37 PM, Geir Magnusson Jr. wrote:
> Joern,
>
> Thanks for the note. This is the right place to discuss.
>
> There are two separate threads of discussion that I can think of :
>
> 1) Technical - if the donation fits technically into what we are
> doing (I'm sure it does...)
>
> 2) Administrative - how, where and when
>
> As for #2 my questions to you are :
>
> a) What is the timing for this donation? How soon?
>
> b) Do you see this as coming straight to Geronimo to be part of
> Geronimo initially, or to the Apache Incubator where we could work
> on it with you and then make the decision of coming to the Geronimo
> project or being something else, like a stand-alone top-level project.
>
> c) I assume that you'd be offering committers to help us with the
> codebase and to continue working and expanding. Do you have an
> idea of how many?
>
> Thanks for doing this, and we look forward to discussion on both
> subjects above.
>
> geir
> --
> Geir Magnusson Jr +1-203-665-6437
> geirm@apache.org
>
>
>
Re: Donation of a CORBA Orb
Posted by "Geir Magnusson Jr." <ge...@apache.org>.
On Jul 4, 2005, at 5:07 AM, Joern Larsen wrote:
> Dear Devlist
>
> Trifork has been a J2EE Licensee since 2000 and we have a clean
> room implementation of the J2EE v 1.4 spec. and the product is
> called Trifork T4. This includes a full CORBA 2.3 implementation
> with CSIv2, transaction integration, etc. We would like to donate
> our CORBA ORB implementation as foundation for a new CORBA effort
> as part of the Geronimo project. We would like to get in touch
> with the people relevant to this.
Joern,
Thanks for the note. This is the right place to discuss.
There are two separate threads of discussion that I can think of :
1) Technical - if the donation fits technically into what we are
doing (I'm sure it does...)
2) Administrative - how, where and when
As for #2 my questions to you are :
a) What is the timing for this donation? How soon?
b) Do you see this as coming straight to Geronimo to be part of
Geronimo initially, or to the Apache Incubator where we could work on
it with you and then make the decision of coming to the Geronimo
project or being something else, like a stand-alone top-level project.
c) I assume that you'd be offering committers to help us with the
codebase and to continue working and expanding. Do you have an idea
of how many?
Thanks for doing this, and we look forward to discussion on both
subjects above.
geir
--
Geir Magnusson Jr +1-203-665-6437
geirm@apache.org