You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Martin Pike <mp...@yntegral.com> on 2006/02/27 14:53:26 UTC
Hivemind and Jython
I am looking to create a hybrid Java/Jython application. Java at the
backend and Jython used for scripting components together and web
application development. I have used HiveMind to configure Java services
and would like to be able to do something similar with Jython ones also.
I do not want to compile the Jython to Java using Jythonc, but would be
interested in a strategy such as mapping Jython scripts using a generic
factory for instantiating jython classes.
Does anybody have experience of using Jython with HiveMind or have any
suggestions as to a direction I might take to accomplish this?
Regards,
Martin Pike
Andrea Chiumenti wrote:
> Christian:
> You convinced me, also because I stopped a minute and thought a bit
> about a previous employment for a customer (one of the big I can't
> make the name :) )
> So, yes it should be extremely usefull!
>
>
> On 2/27/06, *Domsch, Christian* <Christian.Domsch@top-logic.com
> <ma...@top-logic.com>> wrote:
>
> Hi Hugo,
>
> Your are right, that this component should be IDE aware in the sense,
> that is has an api that future IDE implementations could use. I
> had this
> in mind, but since my main knowlegde lies in swing implementation,
> this
> was my first thought. I do have some knowlegde in eclipse plugins
> building, and from this I gather that it shouldn't be too hard to
> write
> the editor in that way, that the components would be reusable.
>
> And I think that would be a great start for the community to skip
> in and
> do the DIE stuff.
>
> I will create a sourceforge project and keep this list informed.
>
> To Andrea:
>
> I have to disagree. Although normal xml editing shouldnt scare any
> decent developer, the main disadvantage in the hivemodule writing
> lies
> not in how to do xml tags and keep them correct, but in the
> knowlegde of
> how the contributions to an excisting configuration point should look
> like. In my last company I was the development lead of a very big
> swing
> ui (1.5 million lines of code) and we had a really big hivemind
> backbone
> (I still wonder, if our project is the biggest use of hivemind) with >
> 110 services, > 60 configuration points and > 50 schemata. And the
> project was split into round about 30 libraries.
> Now some developer had to use some functionality in our baseframework,
> he had to know the exact schema of the configuration point, which
> meant
> digging into the source code. (Ok, we could have used the hivedocs
> more
> excessivly, but the generation of the hivedocs was not integrated
> in our
> continous build environment). So this kind of editor, we are talking
> about would have greatly improved their work, because the editor
> would
> take over the part of knowing how those contributions shoudl look
> like.
> This has nothing to do with having the knowledge of writing valid xml.
>
> Greetings,
>
> Christian.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> <ma...@jakarta.apache.org>
>
>
Re: Hivemind and Jython
Posted by Martin Pike <mp...@yntegral.com>.
Adam,
Unfortunately I have not progressed it any further, but I do want to
investigate the possibilities again, and would be interested in helping
with any developments you or anybody else would like to make in this
direction, if indeed it is a sensible proposition.
Martin
adasal wrote:
> Martin,
> I know that this post is months old now and it seems there was no
> reply at the time, but i am curious as to whether you have made any
> progress with this?
> I have spent the last three weeks trying to understand and configure a
> development environement for Python/Jython in eclipse. I have found
> that with some difficulty and diligantly tracking down contributed
> code there is a way to integrate Python/Jython/Java with JUnit
> important as a testing environment seems essential for development and
> Pyunit leaves out the Java side of things.
> I had never thought of integrating Jython with HiveMind (and have no
> idea about whether there is an obvious viable alternative in Ruby).
> On the face of it it seems like a very sensible proposition, it just
> means that services become available in the Jython code. Em, but is
> that possible since one is an interpreted environment while the other
> depends on run time enhancement, hence the value of unit tests in
> HiveMind and Tapestry development!
> I would be interested to know where this has got to, anyway.
> Best
> Adam Saltiel
>
> On 27/02/06, *Martin Pike* < mp@yntegral.com <ma...@yntegral.com>>
> wrote:
>
> I am looking to create a hybrid Java/Jython application. Java at
> the backend and Jython used for scripting components together and
> web application development. I have used HiveMind to configure
> Java services and would like to be able to do something similar
> with Jython ones also. I do not want to compile the Jython to Java
> using Jythonc, but would be interested in a strategy such as
> mapping Jython scripts using a generic factory for instantiating
> jython classes.
>
> Does anybody have experience of using Jython with HiveMind or have
> any suggestions as to a direction I might take to accomplish this?
>
> Regards,
>
> Martin Pike
>
--
Martin Pike
mp@yntegral.com
Tel: 0117 925 0862
Yntegral Ltd - Linking people and information
Re: Hivemind and Jython
Posted by adasal <ad...@gmail.com>.
Martin,
I know that this post is months old now and it seems there was no reply at
the time, but i am curious as to whether you have made any progress with
this?
I have spent the last three weeks trying to understand and configure a
development environement for Python/Jython in eclipse. I have found that
with some difficulty and diligantly tracking down contributed code there is
a way to integrate Python/Jython/Java with JUnit important as a testing
environment seems essential for development and Pyunit leaves out the Java
side of things.
I had never thought of integrating Jython with HiveMind (and have no idea
about whether there is an obvious viable alternative in Ruby).
On the face of it it seems like a very sensible proposition, it just means
that services become available in the Jython code. Em, but is that possible
since one is an interpreted environment while the other depends on run time
enhancement, hence the value of unit tests in HiveMind and Tapestry
development!
I would be interested to know where this has got to, anyway.
Best
Adam Saltiel
On 27/02/06, Martin Pike <mp...@yntegral.com> wrote:
>
> I am looking to create a hybrid Java/Jython application. Java at the
> backend and Jython used for scripting components together and web
> application development. I have used HiveMind to configure Java services and
> would like to be able to do something similar with Jython ones also. I do
> not want to compile the Jython to Java using Jythonc, but would be
> interested in a strategy such as mapping Jython scripts using a generic
> factory for instantiating jython classes.
>
> Does anybody have experience of using Jython with HiveMind or have any
> suggestions as to a direction I might take to accomplish this?
>
> Regards,
>
> Martin Pike
>
> Andrea Chiumenti wrote:
>
> Christian:
> You convinced me, also because I stopped a minute and thought a bit about
> a previous employment for a customer (one of the big I can't make the name
> :) )
> So, yes it should be extremely usefull!
>
>
> On 2/27/06, Domsch, Christian <Ch...@top-logic.com> wrote:
> >
> > Hi Hugo,
> >
> > Your are right, that this component should be IDE aware in the sense,
> > that is has an api that future IDE implementations could use. I had this
> > in mind, but since my main knowlegde lies in swing implementation, this
> > was my first thought. I do have some knowlegde in eclipse plugins
> > building, and from this I gather that it shouldn't be too hard to write
> > the editor in that way, that the components would be reusable.
> >
> > And I think that would be a great start for the community to skip in and
> >
> > do the DIE stuff.
> >
> > I will create a sourceforge project and keep this list informed.
> >
> > To Andrea:
> >
> > I have to disagree. Although normal xml editing shouldnt scare any
> > decent developer, the main disadvantage in the hivemodule writing lies
> > not in how to do xml tags and keep them correct, but in the knowlegde of
> > how the contributions to an excisting configuration point should look
> > like. In my last company I was the development lead of a very big swing
> > ui (1.5 million lines of code) and we had a really big hivemind backbone
> > (I still wonder, if our project is the biggest use of hivemind) with >
> > 110 services, > 60 configuration points and > 50 schemata. And the
> > project was split into round about 30 libraries.
> > Now some developer had to use some functionality in our baseframework,
> > he had to know the exact schema of the configuration point, which meant
> > digging into the source code. (Ok, we could have used the hivedocs more
> > excessivly, but the generation of the hivedocs was not integrated in our
> > continous build environment). So this kind of editor, we are talking
> > about would have greatly improved their work, because the editor would
> > take over the part of knowing how those contributions shoudl look like.
> > This has nothing to do with having the knowledge of writing valid xml.
> >
> > Greetings,
> >
> > Christian.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>
Re: Hivemind and Jython
Posted by adasal <ad...@gmail.com>.
I may do some experiments over the next couple of weeks as I am working in
this area. But I still don't know why one would want this, that is not using
python as my main weapon I don't quite get it. But maybe that is the answer
as it may make some integration with python libraries possible, I am in the
dark about this really.
Adam
On 27/02/06, Martin Pike <mp...@yntegral.com> wrote:
>
> I am looking to create a hybrid Java/Jython application. Java at the
> backend and Jython used for scripting components together and web
> application development. I have used HiveMind to configure Java services and
> would like to be able to do something similar with Jython ones also. I do
> not want to compile the Jython to Java using Jythonc, but would be
> interested in a strategy such as mapping Jython scripts using a generic
> factory for instantiating jython classes.
>
> Does anybody have experience of using Jython with HiveMind or have any
> suggestions as to a direction I might take to accomplish this?
>
> Regards,
>
> Martin Pike
>
> Andrea Chiumenti wrote:
>
> Christian:
> You convinced me, also because I stopped a minute and thought a bit about
> a previous employment for a customer (one of the big I can't make the name
> :) )
> So, yes it should be extremely usefull!
>
>
> On 2/27/06, Domsch, Christian <Ch...@top-logic.com> wrote:
> >
> > Hi Hugo,
> >
> > Your are right, that this component should be IDE aware in the sense,
> > that is has an api that future IDE implementations could use. I had this
> > in mind, but since my main knowlegde lies in swing implementation, this
> > was my first thought. I do have some knowlegde in eclipse plugins
> > building, and from this I gather that it shouldn't be too hard to write
> > the editor in that way, that the components would be reusable.
> >
> > And I think that would be a great start for the community to skip in and
> >
> > do the DIE stuff.
> >
> > I will create a sourceforge project and keep this list informed.
> >
> > To Andrea:
> >
> > I have to disagree. Although normal xml editing shouldnt scare any
> > decent developer, the main disadvantage in the hivemodule writing lies
> > not in how to do xml tags and keep them correct, but in the knowlegde of
> > how the contributions to an excisting configuration point should look
> > like. In my last company I was the development lead of a very big swing
> > ui (1.5 million lines of code) and we had a really big hivemind backbone
> > (I still wonder, if our project is the biggest use of hivemind) with >
> > 110 services, > 60 configuration points and > 50 schemata. And the
> > project was split into round about 30 libraries.
> > Now some developer had to use some functionality in our baseframework,
> > he had to know the exact schema of the configuration point, which meant
> > digging into the source code. (Ok, we could have used the hivedocs more
> > excessivly, but the generation of the hivedocs was not integrated in our
> > continous build environment). So this kind of editor, we are talking
> > about would have greatly improved their work, because the editor would
> > take over the part of knowing how those contributions shoudl look like.
> > This has nothing to do with having the knowledge of writing valid xml.
> >
> > Greetings,
> >
> > Christian.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> >
> >
>