• 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

Batch Java - Best Practice - Jars/Web Server/??

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My company is trying to determine the best strategy for implementing batch Java programs. We have a few dozen (and growing) separate Java programs. Currently, each is packaged and run as an independent JAR file.

Is this the best strategy for doing batch Java? Ongoing maintenance can be a hassle since searching Jar files is not easy. Importing existing projects from the Jar files into Eclipse is a tricky process as well. We would like these things to be easier. We have thought about packaging all the code into 1 big project and writing an interface to be able to execute the desired "package" (aka program) maybe using a Web Server.

What are other people/companies doing out there with their batch Java programs? Are there any best practices out there on this stuff? Any help/ideas/working models would be appreciated.

Thanks.
 
Ranch Hand
Posts: 87
Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say batch java programs , what do you mean? What do they do in general? Are they all doing similar tasks? How do you schedule them currently? Are you using multi threading in these programs?

Ongoing maintenance can be a hassle since searching Jar files is not easy.

What is the process of deploying these jar file currently? How to you manage production rollouts/releases/upgrades currently?

Provide all these information to us? Without which it would be difficult to say something ?
 
Matt Douglas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Currently, each program is packaged up into a JAR file using Eclipse's export option. Those JARs are then deployed to our Linux Server manually where they are tested. If they pass testing, they are then migrated up through QA and onto Production through a home grown source code control system.

The next time someone makes needs to make a change to the program, they "check out" the JAR from production. This copies the production JAR back down to the development Linux Server. The developer then has to import the JAR back into Eclipse and reconfigure the project packages before beginning an changes.

Searching inside a JAR can be done but it is messy. We have written a "search script" to do this - which basically unpackages every JAR file in the system, does a search within those files, and then deletes the unpackaged files.

We have looked into using Subversion but unless you have all the projects already in your workspace in Eclipse, you can't search for a specific text inside the Java. You can only search the commit comments.
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
reply
    Bookmark Topic Watch Topic
  • New Topic