You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by David Blevins <da...@visi.com> on 2007/08/03 19:09:58 UTC

Re: WebAdmin (was Re: openejb- ease of use, snapshot and maven)

On Jun 20, 2007, at 12:30 PM, Manu George wrote:

>
> On 6/21/07, Manu George <ma...@gmail.com> wrote:
>>
>> On 6/20/07, Karan Malhi <ka...@gmail.com> wrote:
>> > Thanks David,
>> >
>> > Will start adding stuff to the wiki pages. I saw the webadmin
>> > screenshots. Its really cool.
>>
>> Hi,
>>               The webadmin is really cool.  I was not at all aware it
>> existed :(. I think it is a valuable feature to have in 3.0.
>>
>
> I will download 1.0 and have a go at porting this, looks pretty cool
> and we definitely should have it in 3.0 :).
>

I took a crack at porting some of the webadmin over.  I had to cut  
out several beans and it still doesn't work yet.

Hoping I can get at least a limited amount of it working for the  
release, but there'll still be a lot of work to do.

-David


Re: WebAdmin (was Re: openejb- ease of use, snapshot and maven)

Posted by Jeremy Whitlock <jc...@gmail.com>.
Hi All,
    Since I was involved in the original, maybe I could help.  Let me
give a peek as well.

Take care,

Jeremy

On 8/3/07, David Blevins <da...@visi.com> wrote:
>
> On Jun 20, 2007, at 12:30 PM, Manu George wrote:
>
> >
> > On 6/21/07, Manu George <ma...@gmail.com> wrote:
> >>
> >> On 6/20/07, Karan Malhi <ka...@gmail.com> wrote:
> >> > Thanks David,
> >> >
> >> > Will start adding stuff to the wiki pages. I saw the webadmin
> >> > screenshots. Its really cool.
> >>
> >> Hi,
> >>               The webadmin is really cool.  I was not at all aware it
> >> existed :(. I think it is a valuable feature to have in 3.0.
> >>
> >
> > I will download 1.0 and have a go at porting this, looks pretty cool
> > and we definitely should have it in 3.0 :).
> >
>
> I took a crack at porting some of the webadmin over.  I had to cut
> out several beans and it still doesn't work yet.
>
> Hoping I can get at least a limited amount of it working for the
> release, but there'll still be a lot of work to do.
>
> -David
>
>

Re: WebAdmin

Posted by David Blevins <da...@visi.com>.
On Aug 3, 2007, at 7:09 PM, David Blevins wrote:

>
> On Jun 20, 2007, at 12:30 PM, Manu George wrote:
>
>>
>> On 6/21/07, Manu George <ma...@gmail.com> wrote:
>>>
>>> On 6/20/07, Karan Malhi <ka...@gmail.com> wrote:
>>> > Thanks David,
>>> >
>>> > Will start adding stuff to the wiki pages. I saw the webadmin
>>> > screenshots. Its really cool.
>>>
>>> Hi,
>>>              The webadmin is really cool.  I was not at all aware it
>>> existed :(. I think it is a valuable feature to have in 3.0.
>>>
>>
>> I will download 1.0 and have a go at porting this, looks pretty cool
>> and we definitely should have it in 3.0 :).
>>
>
> I took a crack at porting some of the webadmin over.  I had to cut  
> out several beans and it still doesn't work yet.
>
> Hoping I can get at least a limited amount of it working for the  
> release, but there'll still be a lot of work to do.

Someone was asking about this offline, so here's the info I can recall  
about the WebAdmin.

This module is a bit out of date and not shipped.  I don't exactly  
recall what state it's in.  It's not a bad concept though and does  
allow people to write beans that are dynamically included in the  
WebAdmin UI, which is sort of neat.  Basically any bean that  
implements the HttpObject interface and declares it's jndi name in the  
format 'WebAdmin/<section>/<page>' gets included in the UI.

It's not a terribly complex chunk of code actually and the JSP  
equivalent of all that functionality in the Tomcat OpenEJB console has  
been actively updated, so it might not be terribly difficult to get it  
all running again.  Anyone is more than welcome to hack on it.

Just had a quick look at it and it seems like there's no longer an  
openejb-jar.xml file there.  I dug in the old 1.0 codebase and found  
them here:

http://svn.apache.org/repos/asf/openejb/tags/v1_0/modules/webadmin/src/java/org/openejb/webadmin/clienttools/ejb-jar.xml
http://svn.apache.org/repos/asf/openejb/tags/v1_0/modules/webadmin/src/java/org/openejb/webadmin/clienttools/openejb-jar.xml
http://svn.apache.org/repos/asf/openejb/tags/v1_0/modules/webadmin/src/java/org/openejb/webadmin/main/ejb-jar.xml
http://svn.apache.org/repos/asf/openejb/tags/v1_0/modules/webadmin/src/java/org/openejb/webadmin/main/openejb-jar.xml

Seems like if you combined the all together into one ejb-jar.xml and  
openejb-jar.xml file and put them in the META-INF/ dir of the webadmin  
jar, the beans would deploy and show up in the viewer.

You'd probably want to add this to the openejb-jar.xml file though so  
the JNDI names are formatted the way they used to be.

   <?xml version="1.0"?>
   <openejb-jar>
     <properties>
        openejb.jndiname.format = {deploymentId} 
{interfaceType.openejbLegacyName}
     </properties>
     ...
   </openejb-jar>

Should be enough to see a little action.

-David