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 8588395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:47:33+00:00 2026-06-11T22:47:33+00:00

I am building a web application for chemical industry. Its basically searching in database

  • 0

I am building a web application for chemical industry. Its basically searching in database of chemical structures. A lot of cheminformatics calculations is needed and there are many open source solutions to do it written in Java.

I am currently wondering what programming language to use. I need to use some functions in Java and I dont want to write whole system in Java because I am not familiar with writing web apps in it.

So I have this idea to prepare some .jar files with needed functions and use them in PHP through command line. I wonder about scalability of this solution.

Is it fast to call .jar file in PHP for example 1000 times in one cycle?
How long the parameter passed to .jar can be? I assume large arrays converted to string as parameters.
I have doubts if this is a good idea in general and why I sould not do this?

Thank you for your ideas.

  • 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-11T22:47:34+00:00Added an answer on June 11, 2026 at 10:47 pm

    It can be done

    You mention parameters. I assume you mean command line parameter. You are correct that is probably not scaleable. Instead, use stdin for input and stdout for output.

    You mention calling the jar file 1000 times. I assume you mean calling the main method of the jar file. This will be very slow. Instead implement as much as you can in java, so you start the jar file few times per request. A handfull calls could be acceptable. Just not anything in a loop.

    Basicly prepare all the data for an entire requuest inside java and print it to stdout which you read from php.

    Of course running in a servlet container is faster if you have time to learn jsp+servlet.

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

Sidebar

Related Questions

I am building a web application which searches its SQL database for the query
I'm building a web application where all database connectivity is done through a proxy
I am building a web application that uses the database for Users, Security/roles, and
I'm building a web application that uses Oracle Database 10g as the database backend.
I'm building a web application that will have access to PeopleSoft's database via jdbc.
I'm building a web application that involves very frequent database updates (10s-100s per second
I am building a web application that uses a lot of Javascript. Now I
I am building a web application as college project (using Python), where I need
I am building a web application (in Django, though this isn't a Django-specific question).
I'm building a web-application in JavaScript using the dojo framework. I want to create

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.