Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Geronimo + Quartz = No Security Context

 
author
Posts: 4342
40
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I've added quartz scheduling tool my Geronimo 1.2 server. I've created servlet with start-on-startup property set in the web xml so that on server start, the servlet issues a call to a session bean that initializes the scheduler on the EJB tier/level.

The scheduling mechanism starts and works properly, the problem I'm having is tasks in the schedular are unable to access CMP2 entity beans. Any attempt to access the persistent layer ends with a NullPointerException in the geronimo security context manager as shown below.

Is there a way to provide the tasks in the schedule with a proper context so that the processes can run? I checked and the initial call to start the scheduler has access to this layer, but this information is not available to the threads the scheduler spawns.
[ April 03, 2008: Message edited by: Scott Selikoff ]
 
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic