473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

What is the best way to Invoke a java application from ASP.NET

I have created an ASP.NET (VB) website and need to invoke a command
line application (a Java app) when the user submits a form. What is
the best method for approaching this?

I've read about using the Diagnostics.Process class. One user raised
a concern about the security hole this approach creates (because you
have to give the ASPNET user execute permissions). In a dedicated
hosting environment, what kind of risk would be raised by giving the
ASPNET user these permissions?
Nov 18 '05 #1
3 1251
Anybody accessing the web server would be able to execute the program
- but it's hard to judge the risk without knowing what the program
does, what it's input and outputs are, etc. I'd also be concerned
about the scalability of the solution - so I'd test with the number of
concurrent users you expect the site to see and make sure the process
doesn't drag the server down.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 21 Oct 2004 06:20:54 -0700, ly*****@adelphia.net (Aimee) wrote:
I have created an ASP.NET (VB) website and need to invoke a command
line application (a Java app) when the user submits a form. What is
the best method for approaching this?

I've read about using the Diagnostics.Process class. One user raised
a concern about the security hole this approach creates (because you
have to give the ASPNET user execute permissions). In a dedicated
hosting environment, what kind of risk would be raised by giving the
ASPNET user these permissions?


Nov 18 '05 #2
if your aspx page creates the process and pipe the input/output, then you
will not need to set execute permission in iis. this is the safest way.

-- bruce (sqlwork.com)

"Aimee" <ly*****@adelphia.net> wrote in message
news:b4**************************@posting.google.c om...
I have created an ASP.NET (VB) website and need to invoke a command
line application (a Java app) when the user submits a form. What is
the best method for approaching this?

I've read about using the Diagnostics.Process class. One user raised
a concern about the security hole this approach creates (because you
have to give the ASPNET user execute permissions). In a dedicated
hosting environment, what kind of risk would be raised by giving the
ASPNET user these permissions?

Nov 18 '05 #3
What I have done in the past is create w indows servie to do the invocation,
using asp to simply gather details for the invocation of the exe using
process.start.

If both read/write from the same DB then the asp.net app can track and
report progress of the invoked applications output without asp.net requiring
execute permissions.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Aimee" <ly*****@adelphia.net> wrote in message
news:b4**************************@posting.google.c om...
I have created an ASP.NET (VB) website and need to invoke a command
line application (a Java app) when the user submits a form. What is
the best method for approaching this?

I've read about using the Diagnostics.Process class. One user raised
a concern about the security hole this approach creates (because you
have to give the ASPNET user execute permissions). In a dedicated
hosting environment, what kind of risk would be raised by giving the
ASPNET user these permissions?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JW | last post by:
Hi, I am trying to see if I can display an animated .gif file on a Java application (that is, I do not want to have to show a series of static images to simulate animateion; I just want to...
2
by: Generic Usenet Account | last post by:
I am trying to create a Java application that reads a list of URLs from a file and stores their contents on the local file system. I have succeeded in accessing normal websites, but I am unable to...
13
by: Charles Handy | last post by:
How does FastCGI compare against java Apps running in java app servers like TomCat, Sun One, WebLogic and WebSphere? Is there a business case for switching from CGI to Java? Performance?...
2
by: Begoña | last post by:
in my java application I've made a call to this stored procedure CREATE procedure pruebaICM @pANI varchar(20), @pTABLA varchar(20), @pInsert varchar(500), @pUpdate varchar(1000), @pFLAG...
2
by: Vinay | last post by:
Hi , I am having server and client. Client is a test machine. I want to invoke the application binary which resides on server from client machine. The binary is created using C#. Please note that...
2
Saghar
by: Saghar | last post by:
Hi, Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
4
by: MimiMi | last post by:
I want an application written in C# to start an application written in java and be able to communicate with each other. I believe one way to do this is to use socket programming, having the java...
1
by: zgh1970 | last post by:
I did a test on running db2 database java code on 32-bit and 64-bit db2 instance. It seams that java application with 32-bit JVM couldn't run at 64-bit db2 instance. Also 64-bit JVM couldn't run...
0
by: yatinbvn | last post by:
hi hello friends i find that if we want publish our application to Nokia ovi store we must verified our java application from one of the CA(javaverified.com,verisign,thawate etc...) i need...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.