This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Preloading classes using JBoss

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a need to preload a class using JBoss. Is there a standard way to accomplish this? Is there a standard way to tell the JVM at startup to load this class independent of the container being used?
TIA,
James
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Different containers allow different ways of "preloading" classes. For example, BEA WebLogic provides a "startup class" that gets loaded when the server boots up. Is the the sort of functionality you're after?
BTW,
thanks for joining JavaRanch, but could you just take a quick look at the naming policy and edit your profile accordingly.
Thanks,
Simon
Bartender (moderator) of "J2EE and EJB" forum
 
Simon Brown
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just remembered, we have a JBoss forum!
Simon
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by jyamrs3:
I have a need to preload a class using JBoss. Is there a standard way to accomplish this? Is there a standard way to tell the JVM at startup to load this class independent of the container being used?
TIA,
James


If you are running JBos as a winnt service using something like AlexandriasJavaservice you can set a startup class in the paramateres of that helper item..
reply
    Bookmark Topic Watch Topic
  • New Topic