Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
6%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 65

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 21st December 2018, 07:12
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Question Interprocess communication (cross-platform)
Baan: Other/Unknown
C/S: None/Unknown

Hi all ,
Today i trying some interesting topic -"Interprocess Communication-in baan ".but i have doubt in this?
how to possible connect the sender and receiver?
Is that program in 4GL or 3GL ?
then sock.listen(port number)-in this which port number i use?if i use putty port number ,how to connect baan and putty?


Thanks in Advance..
Reply With Quote
  #2  
Old 21st December 2018, 09:09
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
There are two IPC's one @ bshell Level and the Other @ OS Level.. What exactly is your requirement?

Sessions do communicate using bms commands at bshell level
Reply With Quote
  #3  
Old 21st December 2018, 10:22
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Hi,..Ajesh
Thanks for your reply ..
can you please send any script which was you tried ..??

Last edited by AnuKass : 21st December 2018 at 12:49.
Reply With Quote
  #4  
Old 21st December 2018, 12:51
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Is it in this any client and server program separately ?
if yes ,please explain it...in programming level..
Reply With Quote
Sponsored Links
  #5  
Old 30th December 2018, 02:48
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Well Anukass, i have used prcm.bms commands ,i.e, one session communicates with other. I am now looking for implementation of these IPC's after your posts...
Reply With Quote
  #6  
Old 10th January 2019, 10:21
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
You can use bms.send and bms.recieve and get the processes talking to each other..What have you tried?
Reply With Quote
  #7  
Old 11th January 2019, 12:53
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Hi
can you please send sample server and client side program in socket?
Reply With Quote
  #8  
Old 14th January 2019, 09:12
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
I have not done on cross platform, i assume you mean different servers??

Have done on same Server. This is what i have done

On Sending Side

Code:
function extern send.bms.commands()
		{
	long		process.id,ret.val
	
	long 		event(EVTMAXSIZE), bms_id

	
	process.id = activate("gbtstupd.inv")
| 	ret.val = send.bucket(process.id,"This is a Test Message")	
	ret.val = bms.send("Sending BMS Message",event,"",process.id)

}

On Receiving Side

Code:

choice.bms:
before.choice:
	level = 0
	received.text = bms.receive$(level,0)
	message("String Recieved is %s",received.text)
Reply With Quote
  #9  
Old 22nd January 2019, 12:59
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Hi Ajesh,
process.id = activate("gbtstupd.inv")
In this "gbtstupd.inv" means?then i think both are in different session script right?so which should be execute first ?and how?
Reply With Quote
  #10  
Old 22nd January 2019, 14:48
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Yes, First I am activating the session,gbtstupd.inv and then sending bms command to it.

And then in the gbtstupd.inv , I have written the choice command in which I am receiving the bms command.

Sending and receiving.
Reply With Quote
  #11  
Old 23rd January 2019, 05:21
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Thanks..Ajesh ..
i'm also trying like what you said but i got nothing ..

Last edited by AnuKass : 23rd January 2019 at 11:42.
Reply With Quote
  #12  
Old 23rd January 2019, 08:20
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Please Post your code. Let me have a look.
Reply With Quote
  #13  
Old 23rd January 2019, 08:42
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Hi ..Ajesh
i'm using same logic what you send?
In session1:
choice.print.data:
on.choice:
process.id = activate("tccom9553m000")
ret.val = bms.send("Sending BMS Message",event,"",process.id)

In session2:-tccom9553m000
choice.import:
after.choice:
ret = 0
received.text = bms.receive$(ret,0)
message("String Recieved is %s",received.text)

Thanks in advance..
Reply With Quote
  #14  
Old 23rd January 2019, 11:12
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Hi Anukass

In the receiving side, you need to use like this
Code:
choice.bms:
before.choice:
ret = 0
received.text = bms.receive$(ret,0)
message("String Recieved is %s",received.text)
instead of

Code:
choice.import:
 after.choice:
ret = 0
received.text = bms.receive$(ret,0)
message("String Recieved is %s",received.text)
Also, in the sending side you can check if a process id is generated by looking at the variable,process.id. It should have some integer value.
Reply With Quote
  #15  
Old 23rd January 2019, 11:49
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 78
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Hi...it's Working ...
Thanks for your valuable reply..

Last edited by AnuKass : 23rd January 2019 at 11:54.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Platform for LN nitin h Tools Administration & Installation 2 16th July 2009 20:33
Cross Train to Dynamics AX Lead Consultants mcuk123 Jobs and Resumes 0 24th May 2007 17:17
Error : Not licenced to run on this platform grzegorz Tools Administration & Installation 3 17th February 2006 21:11
Determining the Best Platform for your ERP Solution NPRao Baan vs SAP, Peoplesoft, JDE, Oracle etc 0 13th September 2002 20:53


All times are GMT +2. The time now is 22:47.


©2001-2018 - Baanboard.com - Baanforums.com