×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Everybody Please help, on delphi and Java communication,

I have a java application ready to receive data from socket, and I have client part application which in delphi, How does communicate carry out between this 2 application, note, java act as a server wating for incoming data from specified port, and delphi act as a client send data to java application, there may be 2 ways,
1, carry out socket communication, send data from delphi to java server,
2. delphi call java program on delphi local machine,
I think the second case may have great possibility,
what do you think,
any advice is appreciated,

Thanks for your reading,

always learning,
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Everybody Please help, on delphi and Java communication,
    I have a java application ready to receive data from socket, and I have client part application which in delphi, How does communicate carry out between this 2 application, note, java act as a server wating for incoming data from specified port, and delphi act as a client send data to java application, there may be 2 ways,
    1, carry out socket communication, send data from delphi to java server,
    2. delphi call java program on delphi local machine,
    I think the second case may have great possibility,
    what do you think,
    any advice is appreciated,

    Thanks for your reading,

    always learning,
    • 问题不清。你是想问如何实现通讯,还是想理解现有系统的运做方式。
    • 我觉得用delphi通过socket与java server通信是较简单的方式。 如果利用delphi调用java client实现通信,可能会碰到其他的问题。
      • 多谢 枫下恩仇#13 xhis, 我有点担心数据类型,既当DELPHI SEND DATA TO JAVA THROUGH SOCKET,JAVA是否能识别他所接到的数据类型,...
        That means if they use the same of data type to carry out socket communication that is perfect, otherwise this way may have problem. For Delphi call java program, I did a little research, it maybe possible,
        Thanks again,

        Student
        • 除了字符串外, 其它类型大概都不行
          JAVA的数据的字节顺序和其它的windows程序相反, 必须倒过来
    • 使用CORBA, 在socket level实现通讯是很繁琐的,而且以后维护扩充都挺麻烦。CORBA提供高层的通讯机制还有其它的valuable services and facilities.
    • 我现在做的项目和你说的功能很想,不过是SERVER/CLIENT都用JAVA做的,主要开了两个PORT口,一个接受数据,另一个做其他用途.