geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu George" <manu.t.geo...@gmail.com>
Subject Re: [jira] Commented: (GERONIMO-3811) EjbServer portlet
Date Fri, 07 Mar 2008 22:24:49 GMT
Hi David,

Currently Openejb standalone only allows you to set the configurations
at the container level.
Currently openejb standalone accepts these configuration values at the
constructor of the container.  In standalone I believe that you can
have different Mdb Containers with different configurations. There is
no limitation there as we can map different ejbs to different
containers. You can also pass these values via a properties object or
via system properties. Also standalone has configuration files for
this too.

Currently in Geronimo there is a wrapper Gbean created for all
containers other than the Mdb Container and that wrapper Gbean has a
properties attribute wherein we can pass these values. However there
is no wrapper Gbean for the MdbContainers created as they are created
dynamically one for each resource adapter. The properties are set
during creation and openejb when creating the container will use these
property values. To override these values we can always set system
property values which have the highest priority.

Yes so we need to setup different containers for different
configurations. However for Mdbs with geronimo a container is created
per RA. I am also not yet sure whether we can deploy ejbs to different
other types containers in geronimo also using openejb-jar.xml. I think
that it is possible only via geronimo-openejb.xml(May be wrong here.
Someone correct  me if we can specify which container an ejb must be
depoyed in openejb-jar.xml :) ). If this is correct then maybe we need
to add that flexibility in the openejb-jar.xml plan and maybe add the
capability to add new containers in the portlet. This will provide
full flexibility in a more user friendly way.

Regards
Manu


On Fri, Mar 7, 2008 at 1:36 PM, David Jencks <david_jencks@yahoo.com> wrote:
>
>  On Mar 7, 2008, at 12:42 PM, Manu George wrote:
>
>  > Hi
>  >        Yes that may be possible to do. I can set the properties
>  > directly in the Gbeans for each container. The problem here is that
>  > there is no Gbean corressponding to the MdbContainer as it is
>  > dynamically created for each resource adapter in the
>  > addResourceAdapter method of OpenEjbSystemGBean. I need the changes I
>  > make to be persistable as that they are applied on server restart.
>  > Maybe I can add one more attribute for MdbContainer properties to the
>  > OpenEjbSystemGBean and edit them from the portlet. But is adding a new
>  > attribute to the OpenEjbSystemGBean acceptable?
>
>  two question, no?
>
>  - IIRC you can make the gbean attribute changes persistent by calling
>  kernel.setAttribute(...)  I think this happens if you get a proxy to
>  the gbean.  I think there are some classes like
>  KernelManagementHelper that show how to do this.
>  - I'd expect we'd want the ability to configure different mdbs
>  differently, just as IIUC you can set up lots of StatelessContainers
>  with different configs and use them.  How does openejb standalone
>  solve this problem for mdbs?  I'd hate to put ourselves in a box
>  without understanding the whole situation.
>
>  thanks
>  david jencks
>
>
>
>  >
>  > Regards
>  > Manu
>  >
>  > On Fri, Mar 7, 2008 at 9:03 PM, David Jencks
>  > <david_jencks@yahoo.com> wrote:
>  >> IIUC (I didn't look too hard) this is using system properties to
>  >>  configure openejb? Or at least storing override values in a system
>  >>  properties gbean?  I wonder if there is a way to hook more directly
>  >>  into the openejb configuration mechanism.  I'm not sure where the
>  >>  openejb internal configuration files are now but maybe they could be
>  >>  located in var/openejb or var/config and modified directly?
>  >>
>  >>  thanks
>  >>  david jencks
>  >>
>  >>
>  >>
>  >>  On Mar 7, 2008, at 12:21 AM, Vamsavardhana Reddy (JIRA) wrote:
>  >>
>  >>>
>  >>>     [ https://issues.apache.org/jira/browse/GERONIMO-3811?
>  >>> page=com.atlassian.jira.plugin.system.issuetabpanels:comment-
>  >>> tabpanel&focusedCommentId=12576071#action_12576071 ]
>  >>>
>  >>> Vamsavardhana Reddy commented on GERONIMO-3811:
>  >>> -----------------------------------------------
>  >>>
>  >>> The patch seems to be adding a SystemProperties GBean to j2ee-
>  >>> server config.  Can this GBean be added to openejb config instead?
>  >>>
>  >>>> EjbServer portlet
>  >>>> -----------------
>  >>>>
>  >>>>                 Key: GERONIMO-3811
>  >>>>                 URL: https://issues.apache.org/jira/browse/
>  >>>> GERONIMO-3811
>  >>>>             Project: Geronimo
>  >>>>          Issue Type: New Feature
>  >>>>      Security Level: public(Regular issues)
>  >>>>          Components: OpenEJB
>  >>>>         Environment: All
>  >>>>            Reporter: Manu T George
>  >>>>         Attachments: g3811_r632068.patch, g3811_r634213.patch,
>  >>>> openejb.zip, screenshot-1.jpg, screenshot-2.jpg
>  >>>>
>  >>>>
>  >>>> A portlet to show information about the OpenEJB container
>  >>>> integrated in Geronimo. It should also allow configuration of some
>  >>>> parameters like pool size etc
>  >>>
>  >>> --
>  >>> This message is automatically generated by JIRA.
>  >>> -
>  >>> You can reply to this email to add a comment to the issue online.
>  >>>
>  >>
>  >>
>
>

Mime
View raw message