How to solve mutiple execute files

I am coding in J++, hopeful this forum can solve my question.

We are using J++ to solve point of sale peripharal devices. We try to code it as separate execute files. As this, the program call the separate file and leave everything to it. In this situation, we probably will create multiple exe files in the service manager. First I tried to code it into a DLL. But our team decided that would cause maintenance problem. If we want to update the DLL file we have to stop it. So this way has been abandoned... Could someone help me on this problem Is there any other way to solve it

Thanks a lot.

Red Dragon




Answer this question

How to solve mutiple execute files

  • kpendoti

    My job is to write a separate exe application in J++ to drive peripharal devices such as receipt printer, line display, open cash drawer. I use OPOS with com wrap in J++. Now the problem is when the receipt printer prints it takes at lease one minute. My calling program will call my exe multiple times. So there will be multiple exe running in System Task manager. First, I wrote it in DLL. But my manager said it would cause maintenance nightmare. Since every time I update my dll file I have to stop it first. So this way is not applicable. Then I thought about something allocate global memory like C++, but J++ is java version 1.1, Java does not allow to access memory...

    Do you have another way to solve my problem



  • Vince12345

    HI,

        We would still need more details to solve your problems. Please write in more details so that we can unsertand your concern and give you an answer. Please explain the scenario/requirements clearly.

    thanks

    Prem 



  • Knuckles

    Hi,

        So, Is your aim is to start an exe like foo.exe and from now on, whenever you want to start foo.exe, you should have some sort of provision ( like global variable) which can tell you if foo.exe is already running and if that is the case, you want to switch to this currently running foo.exe only. On the other if your query says that foo.exe is not running, only then you would start a new instance of foo.exe. In essence, you want to have only one process per exe

       Let me know if we understand your point and then we can dig more into it. Elsewise you may need to explain these exes and dll problems more explicitly so that we would be help you out.

    thanks

    Prem (VJ# team)



  • How to solve mutiple execute files