Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Running exe from EJB 1.0

3 posts in General Discussion (old) Last posting was on 2000-03-31 14:28:01.0Z
Maya Sarkisyan Posted on 2000-03-30 17:27:31.0Z
Newsgroups: sybase.public.easerver
From: "Maya Sarkisyan" <msarkisyan@oppenheimerfunds.com>
Subject: Running exe from EJB 1.0
Date: Thu, 30 Mar 2000 18:27:31 +0100
Lines: 26
Organization: OppenheimerFunds
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: oppenheimer34.oppenheimerfunds.com 208.203.94.34
Message-ID: <347_yKKLaBqm$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25164
Article PK: 154263

I experience strange problem with running external program from within the
EJB 1.0 installed on Jaguar server. It happenes only on one of our servers.

Runtime test_exe = Runtime.getRuntime();
Process pr = null;

try {
if ( (pr = test_exe.exec("notepad")) != null ) {
System.out.println("notepad successfully!");
System.out.println(pr.toString());
}
}
catch (Exception e) {
System.out.println("Failed notepad. ");
}
Upon execution process notepad.exe shows in the list of Windows NT Task
Manager processes, but program itself doesn't run. If you run this code 5
times, 5 processes will be shown in the list but notepad itself won't appear
on the screen.
And it is not possible to delete those processes from NT Task manager, I
have to reboot PC to get rid of the process.
It happens only on one server and only in EJB 1.0 case.

Any ideas?


Lance Andersen Posted on 2000-03-31 14:28:01.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 31 Mar 2000 09:28:01 -0500
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Running exe from EJB 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: alder.sybase.com 157.133.125.15
Message-ID: <347_38E4B5F1.36014634@sybase.com>
References: <347_yKKLaBqm$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25116
Article PK: 154215

Can I ask why you want to do this from a component? This is something
you would expect a client to do, not a component IMHO. Same is true for
making AWT method calls.

Lance

Maya Sarkisyan wrote:
>
> I experience strange problem with running external program from within the
> EJB 1.0 installed on Jaguar server. It happenes only on one of our servers.
>
> Runtime test_exe = Runtime.getRuntime();
> Process pr = null;
>
> try {
> if ( (pr = test_exe.exec("notepad")) != null ) {
> System.out.println("notepad successfully!");
> System.out.println(pr.toString());
> }
> }
> catch (Exception e) {
> System.out.println("Failed notepad. ");
> }
> Upon execution process notepad.exe shows in the list of Windows NT Task
> Manager processes, but program itself doesn't run. If you run this code 5
> times, 5 processes will be shown in the list but notepad itself won't appear
> on the screen.
> And it is not possible to delete those processes from NT Task manager, I
> have to reboot PC to get rid of the process.
> It happens only on one server and only in EJB 1.0 case.
>
> Any ideas?

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Product Support Engineering Phone:(781) 564-6336
77 South Bedford Street Fax: (781) 564-7001
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================


Maya Sarkisyan Posted on 2000-03-31 10:28:24.0Z
Newsgroups: sybase.public.easerver
From: "Maya Sarkisyan" <msarkisyan@oppenheimerfunds.com>
Subject: Re: Running exe from EJB 1.0
Date: Fri, 31 Mar 2000 11:28:24 +0100
Lines: 57
Organization: OppenheimerFunds
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: oppenheimer34.oppenheimerfunds.com 208.203.94.34
Message-ID: <347_BQdz47ym$GA.298@forums.sybase.com>
References: <347_yKKLaBqm$GA.298@forums.sybase.com> <347_38E4B5F1.36014634@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25085
Article PK: 155341

Thanks Lance, I solved the problem. It was the issue of Jaguar running as
the service. I had to make slight modification.

"Lance Andersen" <lancea@sybase.com> wrote in message
news:38E4B5F1.36014634@sybase.com...
> Can I ask why you want to do this from a component? This is something
> you would expect a client to do, not a component IMHO. Same is true for
> making AWT method calls.
>
> Lance
>
> Maya Sarkisyan wrote:
> >
> > I experience strange problem with running external program from within
the
> > EJB 1.0 installed on Jaguar server. It happenes only on one of our
servers.
> >
> > Runtime test_exe = Runtime.getRuntime();
> > Process pr = null;
> >
> > try {
> > if ( (pr = test_exe.exec("notepad")) != null ) {
> > System.out.println("notepad successfully!");
> > System.out.println(pr.toString());
> > }
> > }
> > catch (Exception e) {
> > System.out.println("Failed notepad. ");
> > }
> > Upon execution process notepad.exe shows in the list of Windows NT Task
> > Manager processes, but program itself doesn't run. If you run this code
5
> > times, 5 processes will be shown in the list but notepad itself won't
appear
> > on the screen.
> > And it is not possible to delete those processes from NT Task manager, I
> > have to reboot PC to get rid of the process.
> > It happens only on one server and only in EJB 1.0 case.
> >
> > Any ideas?
>
> --
>

============================================================================
===
> Lance J. Andersen Email: lancea@sybase.com
> Sybase Product Support Engineering Phone:(781) 564-6336
> 77 South Bedford Street Fax: (781) 564-7001
> Burlington, MA 01803
>
> The Dark Knight Returns!!! Let's Go Penguins!!!
>
============================================================================
===