You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Aaron Mulder <am...@alumni.princeton.edu> on 2006/06/22 18:58:41 UTC
Update on Quartz plugin, Plugin features
I was not swayed by the arguments against letting people deploy Quartz
jobs as GBeans. However, I agree that it's not appropriate for every
case. When I document this plugin, I plan to list the use cases I'm
going for and the ones I'm not.
After a little experimentation, I've been able to configure both EJB
references and Resources references for the Quartz jobs using
dependency injection (not JNDI). So for example, if your job declares
a setMyDatabase(DataSource foo) then you can point to a Geronimo data
source in your XML and that method will be called on your job to give
it the appropriate data source before it is executed. EJBs should
work the same way. I don't plan to add service references because I
think people would be unlikely to use JAX-RPC from a non-J2EE
component, but it will just require some XML surgery if people clamor
for it.
However, due to a variety of bugs in 1.1, the EJB references don't
work, and there's a fair amount of Geronimo code copied and pasted
into the plugin. If we fix the EJB proxy bug and the EJB reference
builder bug and the ENCConfigBuilder visibility bug for 1.1.1, then
EJB references should work and the plugin code will get a lot cleaner.
I plan to look at the last two bugs, and I hear there's a patch for
the EJB proxy bug but we're waiting for Dain to review it and see if
he has a better idea.
Thanks,
Aaron
Re: Update on Quartz plugin, Plugin features
Posted by Matt Hogstrom <ma...@hogstrom.org>.
Being one of the dissenters I think your approach is fine. Please take into consideration that
there may be competing implementations so the name hopefully will provide a clue as to what the
plugin does.
Thanks for the heads up.
Cheers
Matt
Aaron Mulder wrote:
> I was not swayed by the arguments against letting people deploy Quartz
> jobs as GBeans. However, I agree that it's not appropriate for every
> case. When I document this plugin, I plan to list the use cases I'm
> going for and the ones I'm not.
>
> After a little experimentation, I've been able to configure both EJB
> references and Resources references for the Quartz jobs using
> dependency injection (not JNDI). So for example, if your job declares
> a setMyDatabase(DataSource foo) then you can point to a Geronimo data
> source in your XML and that method will be called on your job to give
> it the appropriate data source before it is executed. EJBs should
> work the same way. I don't plan to add service references because I
> think people would be unlikely to use JAX-RPC from a non-J2EE
> component, but it will just require some XML surgery if people clamor
> for it.
>
> However, due to a variety of bugs in 1.1, the EJB references don't
> work, and there's a fair amount of Geronimo code copied and pasted
> into the plugin. If we fix the EJB proxy bug and the EJB reference
> builder bug and the ENCConfigBuilder visibility bug for 1.1.1, then
> EJB references should work and the plugin code will get a lot cleaner.
> I plan to look at the last two bugs, and I hear there's a patch for
> the EJB proxy bug but we're waiting for Dain to review it and see if
> he has a better idea.
>
> Thanks,
> Aaron
>
>
>
Re: Update on Quartz plugin, Plugin features
Posted by Jeff Genender <jg...@apache.org>.
Aaron Mulder wrote:
> I was not swayed by the arguments against letting people deploy Quartz
> jobs as GBeans. However, I agree that it's not appropriate for every
> case. When I document this plugin, I plan to list the use cases I'm
> going for and the ones I'm not.
>
I don't think people had issues with deploying Jobs as Gbeans as an
*add-on* to allowing a scheduled implementation as part of a deployment.
However, making the GBean references a requirement and thus replacing
the actual Quartz API for using jobs was the issue at hand...at least
that was my issue...the last thing we need is (YAA) "Yet Another Api".
If that is not the issue, then I have no problems at all with it.
> After a little experimentation, I've been able to configure both EJB
> references and Resources references for the Quartz jobs using
> dependency injection (not JNDI). So for example, if your job declares
> a setMyDatabase(DataSource foo) then you can point to a Geronimo data
> source in your XML and that method will be called on your job to give
> it the appropriate data source before it is executed. EJBs should
> work the same way. I don't plan to add service references because I
> think people would be unlikely to use JAX-RPC from a non-J2EE
> component, but it will just require some XML surgery if people clamor
> for it.
>
> However, due to a variety of bugs in 1.1, the EJB references don't
> work, and there's a fair amount of Geronimo code copied and pasted
> into the plugin. If we fix the EJB proxy bug and the EJB reference
> builder bug and the ENCConfigBuilder visibility bug for 1.1.1, then
> EJB references should work and the plugin code will get a lot cleaner.
> I plan to look at the last two bugs, and I hear there's a patch for
> the EJB proxy bug but we're waiting for Dain to review it and see if
> he has a better idea.
>
> Thanks,
> Aaron
Re: Update on Quartz plugin, Plugin features
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Update: injection of GBean references into the job works too. So it's
only EJB references that are problematic for these purposes in 1.1.
Thanks,
Aaron
On 6/22/06, Aaron Mulder <am...@alumni.princeton.edu> wrote:
> I was not swayed by the arguments against letting people deploy Quartz
> jobs as GBeans. However, I agree that it's not appropriate for every
> case. When I document this plugin, I plan to list the use cases I'm
> going for and the ones I'm not.
>
> After a little experimentation, I've been able to configure both EJB
> references and Resources references for the Quartz jobs using
> dependency injection (not JNDI). So for example, if your job declares
> a setMyDatabase(DataSource foo) then you can point to a Geronimo data
> source in your XML and that method will be called on your job to give
> it the appropriate data source before it is executed. EJBs should
> work the same way. I don't plan to add service references because I
> think people would be unlikely to use JAX-RPC from a non-J2EE
> component, but it will just require some XML surgery if people clamor
> for it.
>
> However, due to a variety of bugs in 1.1, the EJB references don't
> work, and there's a fair amount of Geronimo code copied and pasted
> into the plugin. If we fix the EJB proxy bug and the EJB reference
> builder bug and the ENCConfigBuilder visibility bug for 1.1.1, then
> EJB references should work and the plugin code will get a lot cleaner.
> I plan to look at the last two bugs, and I hear there's a patch for
> the EJB proxy bug but we're waiting for Dain to review it and see if
> he has a better idea.
>
> Thanks,
> Aaron
>