- 浏览: 98799 次
- 性别:
- 来自: 南京
最新评论
-
wzwahl36:
Json在线转Javabean工具 http://www.at ...
Map、JavaBean、JSON的相互转换 -
vit:
哎呀。。2楼说的对啊。。。
Map、JavaBean、JSON的相互转换 -
brightfox:
value = jsonObject.getString(ke ...
Map、JavaBean、JSON的相互转换 -
wyyl1:
谢谢,bean转Map的方法不错,但是在使用过程中,发现不能获 ...
Map、JavaBean、JSON的相互转换 -
shuishoujushi:
楼主确定这个配置能收发消息吗,JmsTemplate得改成10 ...
WebSphere MQ简单实例(发送消息)
文章列表
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 ...
jms实例(spring整合)
- 博客分类:
- 系统整合
消息发送:
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 ...