As title, want to use a socket for PB and JAVA background interactive data, the data can be JSON format, etc., the great god had done? Examples can provide some train of thought, have is better,
CodePudding user response:
Can via Http connection, pb call Http example
http://blog.csdn.net/pcwe2002/article/details/51771894
Background can mix together do JAVA and PB, the component of PB and JAVA write background plug-ins support
http://blog.csdn.net/pcwe2002/article/details/54603128
CodePudding user response:
reference 1st floor pcwe2002 response: can via Http connection, pb call Http example http://blog.csdn.net/pcwe2002/article/details/51771894 Background can mix together do JAVA and PB, the component of PB and JAVA write background plug-ins support http://blog.csdn.net/pcwe2002/article/details/54603128 Thank you, I are faced with the problem now is that the other party for the SOCKET, and I want to have a client, send each other custom orders in the past, the other party to receive return the corresponding results to me after receiving, such as to switch to other way, afraid of each other is not willing to change, CodePudding user response:
Have done, just like you at ordinary times the socket communication, don't tube each other is a Java or something, via a TCP connection, maintain a long connection, then corresponding communication required by each other of the given agreement; CodePudding user response:
reference pb8 reply: 3/f have done, just like you at ordinary times the socket communication, don't tube each other is a Java or something, via a TCP connection, maintain a long connection, and then corresponding communication required by each other of the given agreement; Have you ever tried was successful? Have a case? CodePudding user response:
If use PB and Java to communicate, advice or a webservice or HTTP, use socket can be achieved, but more troublesome We do several projects is based on Http Rest services (with Java development), deployed in Jboss and Tomcat, front desk by Pb calls, realize the distributed multi-tier architecture, development and operation efficiency can also, Pb mainly adopts posturl to invoke the Java service CodePudding user response:
reference 5 floor lzp_lrp reply: if using PB and Java communication, suggest to implement or use a webservice or HTTP, use socket can be achieved, but more troublesome We do several projects is based on Http Rest services (with Java development), deployed in Jboss and Tomcat, front desk by Pb calls, realize the distributed multi-tier architecture, development and operation efficiency can also, Pb mainly adopts posturl to invoke the Java service I wanted to use PB datawindow do print, is js request, JAVA data, then use the socket to the local PB, PB analytical data, printing, what do you think feasible? CodePudding user response:
refer to 6th floor shinesky response: Quote: refer to the fifth floor lzp_lrp reply: If use PB and Java to communicate, advice or a webservice or HTTP, use socket can be achieved, but more troublesome We do several projects is based on Http Rest services (with Java development), deployed in Jboss and Tomcat, front desk by Pb calls, realize the distributed multi-tier architecture, development and operation efficiency can also, Pb mainly adopts posturl to invoke the Java service I wanted to use PB datawindow do print, is js request, JAVA data, then use the socket to the local PB, PB analytical data, printing, what do you think feasible? Similar to the print service, PB is passive CodePudding user response:
refer to 7th floor shinesky response: Quote: refer to the sixth floor shinesky response: Quote: refer to the fifth floor lzp_lrp reply: If use PB and Java to communicate, advice or a webservice or HTTP, use socket can be achieved, but more troublesome We do several projects is based on Http Rest services (with Java development), deployed in Jboss and Tomcat, front desk by Pb calls, realize the distributed multi-tier architecture, development and operation efficiency can also, Pb mainly adopts posturl to invoke the Java service I wanted to use PB datawindow do print, is js request, JAVA data, then use the socket to the local PB, PB analytical data, printing, what do you think feasible? Similar to the print service, PB is passive I made an internal PHP after printing program, PHP page, my colleague can be logged in to print, PHP start socket; Printer with pb on the server at the same time, using socket accepts PHP information, more simple CodePudding user response:
Another lz said pb is passive, is to make the server end make pb program, PHP or Java client, for each user to fill out a form and submit the data, by pb socket listening to receive data, then automatically print, CodePudding user response:
Can ah, I'm more like ERP project demand, I is the C/S (client + + JAVA REST WS + android backstage supporter's database, with qr code documents, when we do need to sweep the yard handling, android is mostly for examination and approval of reports and simple functions, such as do single words, of course, is then passed to the client automatically generated, such as: mobile phone purchase single qr code, the client computer according to qr code immediately purchase order to generate a new receipt! Here is to use the WS and client first SOKECT link, cell phones and computers and PB client code for IP, and then sweep code push HTTP (contain computer IP, type of document, document number and other information) to JAVA WS, JAVA SOCKET after response based on IP push to develop PB client, as for the SOCKET of the PB back didn't do, useless to temporarily, the equivalent of each PB clients enable own SOCKET services (IP address and port may be different), JAVA IP SOCKET connection to push, as defined by the client response after the EVENT processing,