`
SpaceCity
  • 浏览: 99068 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
ECHO.      1. decompiling 123.apk to resources... ECHO.      2. decompiling classes.dex to jar... ECHO.      3. open jd-gui.exe
/** * * * 下面是部分code, 全部code 见附件 * */ package com.task; /** * 线程模板 实现线程的暂停和恢复 * * 全部code 见附件 * */ public abstract class TemplateThread implements Runnable { /** * 线程状态 默认是false,即允许状态 */ private boolean pause; @Override public void run() { try { while (!Thread.interrupted( ...
public static void sendMail() throws MessagingException { Properties props = System.getProperties(); props.put("mail.smtp.host", "internet1.lotus.com"); Session session = Session.getInstance(props); MimeMessage msg = new MimeMessage(session); msg.setFrom(new InternetAdd ...
前提: 先创建一个queue, ,名称为start(这个名称与压缩包中的队列名称相同×) Sender: package com.service; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.Session; import ...
struts.xml: <interceptors> <interceptor name="basic" class="interceptor.BasicInterceptor" /> <interceptor-stack name="default"> <interceptor-ref name="validation" /> <interceptor-ref name="timer" /> < ...
Server:(part) package service; import java.util.Arrays; import org.apache.axis2.context.MessageContext; import org.apache.axis2.context.ServiceContext; import org.apache.axis2.context.ServiceGroupContext; import domain.Data; public class Login { public String getContainName(String[] names) { ...
ORACLE: ALTER TABLE SCHEMA.TABLE_NAME DROP COLUMN COLUMN_NAME DB2: ALTER TABLE SCHEMA.TABLE_NAME DATA CAPTURE NONE @ ALTER TABLE SCHEMA.TABLE_NAME DROP COLUMN COLUMN_NAME @ REORG TABLE SCHEMA.TABLE_NAME ALLOW READ ACCESS@ REORG INDEXES ALL FOR TABLE SCHEMA.TABLE_NAME ALLOW WRITE ACCESS CLEANUP ON ...
消息发送: package com.main; import java.io.UnsupportedEncodingException; import java.util.Random; import javax.jms.BytesMessage; import javax.jms.JMSException; import org.springframework.beans.factory.BeanFactory; import org.springframework.context.ApplicationContext; import org.springframework.context. ...
MQ接收消息: package com.main; import java.io.UnsupportedEncodingException; import java.util.Enumeration; import javax.jms.BytesMessage; import javax.jms.JMSException; import javax.jms.MapMessage; import javax.jms.Message; import javax.jms.ObjectMessage; import javax.jms.StreamMessage; import javax.jms.T ...
MQ消息发送: package com.main; import javax.jms.JMSException; import javax.jms.MapMessage; import javax.jms.Message; import javax.jms.Session; import javax.jms.TextMessage; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; im ...
package redis; import java.util.ArrayList; import java.util.List; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; import redis.clients.jedis.JedisShardInfo; import redis.clients.jedis.ShardedJedis; import redis.clients.jedis.Sharded ...
java: package com; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Test {     /**      * 日志记录      */     private Logger logger = LoggerFactory.getLogger("traceInfo");     /**      * 目录信息      */     private Logger categoryInfo = LoggerFactory.getLogger("categor ...
具体的jar包和其他类见附件 server端:   Hello service = new HelloService();         String address = "http://10.21.139.43:8080/test";         // Endpoint.publish(address, service);         JaxWsServerFactoryBean factoryBean = new JaxWsServerFactoryBean();         factoryBean.setAddress(address);        ...
spring配置文件如下: <!-- 定时产看任务状态  -->     <bean id="inTimeJobDetail" class="com.suning.crawler.quartz.InTimeJobDetail">     <property name="taskProcessService" ref="taskProcessService" />     </bean>     <!-- 实时任务  -->     <bean id ...
实例代码在附件中,spring配置文件如下: server端 <bean id="helloService" class="org.springframework.remoting.rmi.RmiServiceExporter"> <property name="service"> <bean class="com.service.impl.HelloServiceImpl"></bean> </property> <propert ...
Global site tag (gtag.js) - Google Analytics