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

📄 starter.java

📁 Logica lastest SMPP API
💻 JAVA
字号:
package com.smpp.server;

import java.io.File;

import com.smpp.application.MyMTSender;

import noNamespace.SMPPServerDocument;
import noNamespace.SMPPServerType;
import noNamespace.SMSCType;


public class Starter
{
	static String propsFilePath = "SMPPServer.xml";

	public static void main(String[] args) throws Exception
	{
		File file = new File(propsFilePath);
		SMPPServerDocument doc = SMPPServerDocument.Factory.parse(file);
		SMPPServerType serverType = doc.getSMPPServer();
		SMSCType [] array = serverType.getSMSCArray();
		int size = array.length;
		
		 
		for (int i = 0; i < size; i++)
		{
			 
			SMPPSendReveive smppSender = new SMPPSendReveive(array[i]);
			//System.out.println("SMPP Sender is :" + smppSender);
			Thread th = new Thread(smppSender);
			th.start();
		}
		
		Thread.sleep(5000);
		/*
		System.out.println("About to start sending message");
		MyMTSender myMTS = new MyMTSender();
		for(int j = 0; j < 3 ; j++)
		{
			myMTS.send();
		}
		*/
		

	}

	 

}

⌨️ 快捷键说明

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