RE: Location of JAAS config file

2006-06-10 Thread Sunny Saxena
Sorry, if I am getting this wrong. The scenario that I have is something like this: I have an ear deployed under geronimo. The ear contains a web-app which at one point of time, asks a user for a username and password. This username/password are authenticated using JAAS. The Loginmodules defined

Re: Location of JAAS config file

2006-06-10 Thread David Jencks
On Jun 10, 2006, at 10:01 PM, Sunny Saxena wrote: What if I don't want to use geronimo's security realms. My application internally challenges the user for authentication and for that it uses JAAS. Now jaas uses its config file to pick up login module definitions... I need to specify the locati

RE: Location of JAAS config file

2006-06-10 Thread Sunny Saxena
What if I don't want to use geronimo's security realms. My application internally challenges the user for authentication and for that it uses JAAS. Now jaas uses its config file to pick up login module definitions... I need to specify the location of the config file. On other app servers like weblo

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
On 6/10/06, Stefan Arentz <[EMAIL PROTECTED]> wrote: Ah ok, so ALL deployers are given a change to see if it is a module that they can handle and claim. I was under the impression that Geronimo would pick a deployer based on the XML schema namespace. But I understand .. it doesn't know what file

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/11/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: ... snip excellent explanation ... So far so good? Ah ok, so ALL deployers are given a change to see if it is a module that they can handle and claim. I was under the impression that Geronimo would pick a deployer based on the XML schema nam

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
On 6/10/06, Stefan Arentz <[EMAIL PROTECTED]> wrote: First question: What is it that connects a Quartz Job Deployment Plan to the Quartz Job Deployer? Is it simply the xml schema namespace defined in geronimo-quartz-0.1.xsd? Right -- the schema, and the fact that the plan was in the right place

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/11/06, David Jencks <[EMAIL PROTECTED]> wrote: On Jun 10, 2006, at 2:45 PM, Stefan Arentz wrote: > On 6/10/06, David Jencks <[EMAIL PROTECTED]> wrote: > ... >> > You can also package the resource and application as plugins, so >> they >> > could be separate but anyone who installed the app

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/10/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: OK, I put most of the code up (including the deployer GBean, the Quartz deployment plan schema, the Maven script that builds XMLBeans beans for the schema, and the deployment plan for the deployer service itself). It'll probably be a while befo

Re: Adding new deployable module types

2006-06-10 Thread David Jencks
On Jun 10, 2006, at 2:45 PM, Stefan Arentz wrote: On 6/10/06, David Jencks <[EMAIL PROTECTED]> wrote: ... > You can also package the resource and application as plugins, so they > could be separate but anyone who installed the application plugin > would automatically get the realm and pool a

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/10/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: OK, I put most of the code up (including the deployer GBean, the Quartz deployment plan schema, the Maven script that builds XMLBeans beans for the schema, and the deployment plan for the deployer service itself). It'll probably be a while befo

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/10/06, David Jencks <[EMAIL PROTECTED]> wrote: ... > You can also package the resource and application as plugins, so they > could be separate but anyone who installed the application plugin > would automatically get the realm and pool and so on. I think the missing piece is making the stuf

Re: Adding new deployable module types

2006-06-10 Thread David Jencks
On Jun 10, 2006, at 2:25 PM, Aaron Mulder wrote: On 6/10/06, Stefan Arentz <[EMAIL PROTECTED]> wrote: I'm not interested in wrapping every Spring bean in a GBean actually. I would simply add a GBean for each spring context that is created, nothing more. OK, that should be pretty straightforw

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
On 6/10/06, Stefan Arentz <[EMAIL PROTECTED]> wrote: I'm not interested in wrapping every Spring bean in a GBean actually. I would simply add a GBean for each spring context that is created, nothing more. OK, that should be pretty straightforward. What I would like to do is deploy resources a

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
OK, I put most of the code up (including the deployer GBean, the Quartz deployment plan schema, the Maven script that builds XMLBeans beans for the schema, and the deployment plan for the deployer service itself). It'll probably be a while before I get through all the text, but you can work off t

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/10/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: The Wiki page I'm working on is at http://wiki.apache.org/geronimo/Advanced_Plugin_Sample though it's going to be empty until I save. The example there is Quartz integration where you can deploy Quartz jobs as the new deployment unit (e.g. a JA

Re: Adding new deployable module types

2006-06-10 Thread David Jencks
On Jun 10, 2006, at 1:16 PM, Stefan Arentz wrote: On 6/10/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: Funny you should ask... I'm writing a Wiki page on how to do this with a plugin in Geronimo 1.1 as we speak. The bottom line is that you have to write a pretty hairy deployer class, but most

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
The Wiki page I'm working on is at http://wiki.apache.org/geronimo/Advanced_Plugin_Sample though it's going to be empty until I save. The example there is Quartz integration where you can deploy Quartz jobs as the new deployment unit (e.g. a JAR containing the classes with an XML plan that includ

Re: Adding new deployable module types

2006-06-10 Thread Stefan Arentz
On 6/10/06, Aaron Mulder <[EMAIL PROTECTED]> wrote: Funny you should ask... I'm writing a Wiki page on how to do this with a plugin in Geronimo 1.1 as we speak. The bottom line is that you have to write a pretty hairy deployer class, but most of it is relatively boilerplate code, just unpleasan

Re: Adding new deployable module types

2006-06-10 Thread Aaron Mulder
Funny you should ask... I'm writing a Wiki page on how to do this with a plugin in Geronimo 1.1 as we speak. The bottom line is that you have to write a pretty hairy deployer class, but most of it is relatively boilerplate code, just unpleasant boilerplate. :) For purposes of the example I'm w

Developerworks Articles & Geronimo 1.1

2006-06-10 Thread Stefan Arentz
There are some good articles in DeveloperWorks. Like: http://www-128.ibm.com/developerworks/opensource/library/os-ag-deploy/ http://www-128.ibm.com/developerworks/opensource/library/os-ag-thirdparty/ How 'compatible' are these with the upcoming Geronimo 1.1 release? Did a lot of things change wi

Adding new deployable module types

2006-06-10 Thread Stefan Arentz
How difficult is it to add a new deployable module type to geronimo? For example, I want to deploy .foo files. Do I have to hook into the j2ee-builder module and add a new 'foo' Module? Or is a 'deployable unit' defined outside the J2EE context? S.

Re: Location of JAAS config file

2006-06-10 Thread Alan D. Cabrera
I would change that statement to: In Geronimo, we don't have use a JAAS conf file. You could instead declare and deploy security realms using a Geronimo deployment plan, like many other components. Regards, Alan Aaron Mulder wrote: In Geronimo, we don't use a JAAS conf file, but instead let

Re: ActivationSpec was never registered with ResourceAdapter

2006-06-10 Thread David Jencks
On Jun 10, 2006, at 2:21 AM, Anshuk Chinmoy Pal Chaudhuri wrote: Thanks Krishna. I have added the activation config details in the openejb-jar.xml file. But still its having the same problem. But if in the geronimo-application.xml file,if I mention the parenId="geronimo/activemq/1.0/car", then it

Re: Location of JAAS config file

2006-06-10 Thread Aaron Mulder
In Geronimo, we don't use a JAAS conf file, but instead let you declare and deploy security realms using a Geronimo deployment plan, like many other components. There is some special syntax for security realms, though. Basically, to create a realm called DatabaseRealm using the JAAS login module

Location of JAAS config file

2006-06-10 Thread Sunny Saxena
My application deployed under gerenimo, uses JAAS for authentication. The login modules are picked up from a config file, example.conf. Generally in other app servers, I just add the system property,   -Djava.security.auth.login.config=etc\example.conf   in the java execution path, and it wor

Re: Deployment / Undeployment

2006-06-10 Thread Nirav Mehta
Hi Aaron,I was trying to implement a configurable web application using JMX. But obviusly, my trouble is in registering the MBeans at deployment and unregistering them when undeployed. I think I now understand why you guys reckon GBeans to be a better implementation than MBeans. But obviously, here

RE: ActivationSpec was never registered with ResourceAdapter

2006-06-10 Thread Anshuk Chinmoy Pal Chaudhuri
Thanks Krishna. I have added the activation config details in the openejb-jar.xml file. But still its having the same problem. But if in the geronimo-application.xml file,if I mention the parenId="geronimo/activemq/1.0/car", then it will work fine. But mentioning the parentId as geronimo/act

Re: Deployment / Undeployment

2006-06-10 Thread Aaron Mulder
One way is to create a GBean and add it to the application's Geronimo plan. If the GBean implements GBeanLifecycle, it will have start and stop methods called when the application is deployed and undeployed. Do you need more detail on creating GBeans? Thanks, Aaron On 6/10/06, Nirav Mehta <

Deployment / Undeployment

2006-06-10 Thread Nirav Mehta
Hi all,How can I define an action to happen when an application is deployed or undeployed?Nirav