no more forking process ...solution needed.

We have an application running on BEA JVM. The application forks another JVM outside of BEA JVM to do some background stuff.

Our BEA infrastructure team is not allowing "anymore" any other JVM running on their Unix/Linux systems other than BEA JVMs.

Can somebody please advise of a good solution how to do the same stuff inside of BEA JVM rather than forking a process outside of it.

Please advise.

[423 byte] By [samsharmaa] at [2007-10-3 5:21:08]
# 1
Would it be possible to spawn a thread and do the work in that thread, rather than in a completely separate JVM?
Krashera at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 2
:)Actually Iam from BEA infrastructure ...and we do not allow our developers to write code that forks a new JVM outside of BEA.I can forward your reply to our development team and see what they say ....any other ideas or advises are welcomed !
samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 3
This thread is crazy.Why the other JVM's. Is there functionality that is missing from BEA? Then if so... FIX IT.
cotton.ma at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 4
ok ...In our company, my group support BEA infra.Iam not from BEA. I just support BEA infra in my company.:)
samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 5
Okay still. Why the other JVM's at all? That's the important question. Is there functionality missing? What's the problem? Why was this done in the first place?
cotton.ma at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 6
the application needs "some process" to run asynchronously.While that process is getting completed (some reports and all to be specific) ...the application wants the request and response on the application to be still responsive.
samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 7

> the application needs "some process" to run

> asynchronously.

>

OKay fine.

> While that process is getting completed (some reports

> and all to be specific) ...the application wants the

> request and response on the application to be still

> responsive.

Okay fine.

Why were non BEA JVM's being used? You still have not answered this question.

cotton.ma at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 8
> Why were non BEA JVM's being used? You still have not> answered this question.BEA recommends Sun's JDK in development for reasons I cannot remember right now. You could see that message while installing WebLogic. :P
aniseeda at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 9

> the application needs "some process" to run

> asynchronously.

>

> While that process is getting completed (some reports

> and all to be specific) ...the application wants the

> request and response on the application to be still

> responsive.

Cotton.m's questions withstanding, you may still be able to do this using Java Threads instead of forking.

jbisha at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 10

Honestly, I do not know why the "fork" (forkAndExec) method was used inside the application java code running on BEA JVM to create a new JVM outside as a solution to do some asynchronous and background processes.

All i know is that this forked process returns back with some values needed for the application to complete some order reports asynchronously.

null

samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 11

> Honestly, I do not know why the "fork" (forkAndExec)

> method was used inside the application java code

> running on BEA JVM to create a new JVM outside as a

> solution to do some asynchronous and background

> processes.

>

> All i know is that this forked process returns back

> with some values needed for the application to

> complete some order reports asynchronously.

Well threads are the answer you seek... probably. But you'll have to test to see if it works because there may have been a reason it wasn't done this way previously that is waiting to trip you up.

cotton.ma at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 12
Thanks. I will ask some specific details from our developers. But iam sure they might know all details as well. The application was developed by Accenture and they left 3 years ago.Currently with our Sun > Linux migration we will no longer allow any other JVMs to run except BEA
samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 13
Accenture! That reminds me of something. *rolleyes*
aniseeda at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...
# 14
I just wanted to say to thanks to everyone. Now i have a better understanding.Thanks.
samsharmaa at 2007-7-14 23:28:04 > top of Java-index,Java Essentials,Java Programming...