Jump to content


Photo
- - - - -

Bus & Tasks


8 replies to this topic

#1 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 03 November 2006 - 09:08 PM

Anyone have experience with Bus & Tasks calls from a windows web server, to a Unix ProIV server? Even more specifically, in a .net and IIS environment?


The issue that my client is having, is that they seem unable to make the Bus & Tasks .dll, make multiple simultaneous calls to the Unix box. Eg. Throw 30 near-simultaneous transactions at it, and call an API that (for test purposes) wastes 3 seconds before returning data - and those 30 transactions here queued and made one-at-a-time, and only ever show 1 B&T kernel spawned by the daemon on the Unix box.


Thanks

Rick

P.s. if you throw any .net code at me, I probably won't understand it, and will simply copy'n'paste it to my client :)

#2 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 368 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 06 November 2006 - 10:27 AM

Have you checked the MAXKERNELS setting?

and is COMPONENT_USERS set ?
The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#3 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 06 November 2006 - 01:42 PM

The problem is at the windows .dll side, and must be to do with how they are trying to instantiate the .dll - something to do with "apartments" but I'm way out of my knowledge base on that one. Zero doubt.

I can open multiple kernels directly from the 'nix box (using the p4task task tester), using a 32-bit windows version of same - it is only when my client makes the calls via their webserver that it fails to open multiple.

But yes, maxkernels and component_users are set adequately.

-Rick

#4 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 06 November 2006 - 04:31 PM

Minor update

Now have one of our own inhouse developers attempting a similar thing - differences are: 1) using VB and not C#.net; 2) using OCX and not the .dll; 3) windows web server to windows proiv server (rather than windows web server to HP-UX proiv server).

Observationally, the results are the same - only 1 instance of the Bus & Tasks "open" can exist at one time, and concurrent "opens" are queued.

Maybe, if we take this out of the Bus & Tasks context, there is some tip on creating multiple instances?

I do reiterate first, however, that I am completely ignorant of all of this VB,.net etc coding.

Thanks in advance
Rick

#5 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 10 November 2006 - 05:17 PM

Soooo

the official word: p4com.dll is serialised only. p4api is not "thread safe", which therefore means it does not support multi-threading.

Unhappy.

#6 deepghosh

deepghosh

    Member

  • Members
  • PipPip
  • 37 posts
  • Gender:Male

Posted 11 November 2006 - 03:08 PM

Dont Use pro4_api.ocx. Its evil.

That was an bad idea of someone which PROIV tried to replace using p4com.dll.

.NET and ASP type of pages should use a DLL and not OCX. I dont think even works with the OCX.

Using P4BUS from .net is a very important area of PROIV.

Unfortunately this is in competition to PROIVs home grown web solution Concerto and thats why the bugs/limitations in this area takes the low priority.

#7 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 11 November 2006 - 03:15 PM

Thanks for your input Deep.

We'll be looking at alternatives shortly.

#8 Mike Schoen

Mike Schoen

    Expert

  • Members
  • PipPipPipPip
  • 198 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 15 November 2006 - 08:19 PM

Does anyone have access to (and can share with me) the pro-iv java bus/task interface?
We've heard that this does exist, but I dont know where to get a copy of it. It doesnt install with pro-iv, that only installs the c libraries.

#9 Joseph Bove

Joseph Bove

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 756 posts
  • Gender:Male
  • Location:Ramsey, United States

Posted 15 November 2006 - 09:34 PM

Deep,

Dont Use pro4_api.ocx. Its evil.


I love your straightforward advice! ;)

Regards,

Joseph



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users