⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client.java

📁 this an example showing how the threading policy work ! It is the topic of the middleware. This prog
💻 JAVA
字号:
//package Counter;import java.io.*;import org.omg.CORBA.*;public class Client {	public static void main(String args[]) {		try {			ORB orb = ORB.init(args,null);			BufferedReader in = new BufferedReader(new FileReader(args[0]));			String line = in.readLine();			in.close();			org.omg.CORBA.Object obj = orb.string_to_object(line);			Counter.Count count = Counter.CountHelper.narrow(obj);			// Create a holder for the output parameter			IntHolder new_sum = new IntHolder();			System.out.println("Increment count ...");			System.out.println("sum = " + count.sum());			System.out.println("count = " + count.increment());		} catch(Exception ex) {ex.printStackTrace();}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -