Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:23:57+00:00 2026-06-10T22:23:57+00:00

Our business case needs us to call a shell script from a Message Bean.

  • 0

Our business case needs us to call a shell script from a Message Bean. Other than the obvious portability issues, and the standards compliance, what is the problem with calling a shell script from a bean? Technically speaking, the container, WebLogic, will allow me to, but it sure seems like a bad practice. What would a good alternative be? It is a synchronous call in this case.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:23:59+00:00Added an answer on June 10, 2026 at 10:23 pm

    Other than the obvious portability issues, and the standards compliance, what is the problem with calling a shell script from a bean?

    You have covered the most important ones.

    The only others I can think of are:

    • the engineering issues of maintaining a “mixed” solution
    • potential performance issues; e.g. if the task could be done significantly faster if coded in Java and (typically) run in the main JVM.

    Technically speaking, the container, WebLogic, will allow me to, but it sure seems like a bad practice.

    Bad practice should not be equated with inelegance. Good / bad practice is about things that will / would have a measurable impact according to some objective criterion … if you could measure them.

    What would a good alternative be? It is a synchronous call in this case.

    The general alternative is to code the task in Java. You should be able to do that in the awk/sed case. In the case where you are using ps to look for an external process, you probably can’t do the task at all in pure Java, and that means that your current approach is best.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently creating a business case for rolling out TFS 2010 as our
In our case we have some business logic that looks into several tables in
I have problem deciding on which NoSql architecture stick to. Our business use case
Our business sends a newsletter to a vast number of subscribers every week. When
Our business deals with houses and over the years we have created several business
Our business currently has an online store and recently we've been offering free specials
In one facet of our business, we offer individuals the ability to sell products
In our .Net application, some of our business objects use lazy loading to access
Our current project has ran into a circular dependency issue. Our business logic assembly
We usually put unnecessary checks in our business logic to avoid failures. Eg. 1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.