Java Message Service(The Java Messaging Service, referred to as JMS) solves this problem partly by providing a way to interact with Java EE applications or traditional systems.
The universal interface collection of JMS sends or receives messages asynchronously. Receiving messages asynchronously is clearly the best choice for clients that use intermittent network connections, such as mobile phones and PDAs.
Some time ago, I was told by a colleague that there are a lot of message status for receive in the client, which can only be consumed if the JMS server or WebLogic server is fully charged. After investigation, this problem may be a bug in the WebLogic, of course, does not exclude the possibility of the specific environment. Let's take a look at the root cause of the problem, which helps us to understand more about the implementation of WebLogic
The distributed transaction about the Dubbo service framework, although it is not urgent to do, but can be discussed.
I think the management of affairs should not belong to the Dubbo framework,Dubbo can only be managed by the transaction,Like JDBC and JMS are distributed resources that can be managed by transactions.Dubbo as long as the same behavior can be managed by the transaction, such as can be rolled back,The scheduling of other transactions sho
[Code Note] three pictures on the homepage change and three on the homepage of the Code note
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // initialize the background image [self initBackgroundView];} # pragma-mark-funcitons-(void) initBackgroundView {// view1
1016-09-homepage 22-date conversion, 1016-09-homepage 22-
The two nsdates can be compared.
It is easy to compare two dates with NSCalendar.
/**1. This year1> today* Within 1: Just now* 1 minute ~ Within 59 minutes: xx minutes ago* More than 60 Minutes: xx hours ago2> yesterday* Yesterday xx: xx3> others* Xx-xx: xx2. Not this year1> xxxx-xx: xx*/-(NSString *) created_at{// _ Created_at = Thu Oct 16 17:06:25
The background image of the Baidu homepage is always full screen, and the background image of the homepage is full screen.
Use the position: fixed attribute to create a full screen layer and place the background image in this layer. This will not change the background image size as the scroll wheel of the mouse moves.
Main css:
.image_bg{position:fixed;left:0;top:0;width:100%;height:100%;z-index:-1}.image_
Easyui homepage template, easyui HomepageEasyui homepage html code
In easyui, the home page is generally layout. A layout can be divided into multiple parts, and there are middle east, south, left West, and right east. The upper part is generally used to display the logo, user name, logout and other information. The lower part is used to store company information. The left side is the navigation bar, and
How to troubleshoot error messages that occur in the WebSphere Portal server v5.1.x log after security is enabled "The JMS Server Security Service was unable to authenticate UserID: Asdf ".Document #: 1897475j09000
Body:TitleHow to troubleshoot error messages that occur in the WebSphere Portal server v5.1.x log after security is enabled "The JMS Server Security Service was unable to authenticate UserID: Asd
With the rise of mobile Internet, more and more people use mobile phones to access the Internet. Open the uc browser and we can see the home page of uc. Or the 360 or Baidu homepage.
These pages are made in html5. It seems very difficult, but not at all. There are many articles about html5 on the Internet. I will not explain them here. For programmers, the Code is the most practical.
The Code supports terminal devices such as computers, mobile phones,
The two message transmission modes Topic and Queue in the Jms specification are compared as follows ():
Topic
Queue
Summary
Publish Subscribe messaging Publish and Subscribe messages
Point-to-Point
Status or not
Topic data is stateless by default.
By default, Queue data is stored as files on the mq server. For example, Active MQ is generally stored under $ AMQ_HOME/data/kr-store/data. You can also config
The company's technology platform in the docking of IBM MQ message middleware with a broker, messages sent to MQ have more message header information:RHF2, resulting in the reception of the message is not working properly. Record how this problem is handled here.A parameter, targetclient, is provided in IBM MQ that can be used to control whether the message header is enabled in a JMS message. When using JMS
restarts at D2, the publisher sends M6 and M7. Now S'll receive M4, M5 followed by M6 and M7 and all for future messages. i.e. S would receive all messages from M1. M7. This is the difference between durable and non-durable consuming. If S were a non-durable consumer then it would only has received M1, M2, M3 and M6, M7-not M4 and M5. i.e because the subscription is durable, S would receive every message sent to T whether the Subscriber are running or not. For non-durable topics, only messages
Spring Integrated JMS Usage
The JMS full name Java Message Service, which is used to send messages.
1. Advantages1. Relative RPC achieves the decoupling effect: Decoupling from the Service Interface name (changing the interface name in RPC, the client needs to make modifications), decoupling from the service location (RPC needs to configure the service's network location to use the service),
JMS-based Active MQ message storage, jmsmqI. Message Storage Methods
ActiveMQ supports persistent messages and non-persistent messages in JMS specifications.
Persistent messages are usually used to ensure that messages are consumed by consumers regardless of whether the consumers are online or not. After the message is confirmed to be consumed, it will be deleted from the storage.
Non-persistent messages
Use Apache Flume to read the JMS Message Queuing message and write the message to the Hdfs,flume agent configuration as follows:Flume-agent.conf#name the components in this agentagenthdfs.sources = Jms_sourceAgenthdfs.sinks = Hdfs_sinkAgenthdfs.channels = Mem_channel# Describe/configure The sourceAgentHdfs.sources.jms_source.type = JMS# Bind to all interfacesAgentHdfs.sources.jms_source.initialContextFactor
1: ActiveMQ Zookeeper-based master-slave (LevelDB master/slave) construction and Spring-boot use (http://www.cnblogs.com/yshyee/p/7277801. HTML), the following code is used to send the JMS message:@Service Public class Producer { @Autowired private jmsmessagingtemplate jmstemplate; Public void Final String message) { jmstemplate.convertandsend (destination, message);} }After using JMeter for stress testing, it was found that
Select Activemq.
To establish a simple Maven project, the Pom.xml is as follows:
To create a test class:
Package com.gof.jms.test;
Import javax.jms.Connection;
Import Javax.jms.ConnectionFactory;
Import Javax.jms.DeliveryMode;
Import javax.jms.Destination;
Import Javax.jms.Message;
Import Javax.jms.MessageConsumer;
Import Javax.jms.MessageProducer;
Import javax.jms.Session;
Import Javax.jms.TextMessage;
Import Org.apache.activemq.ActiveMQConnectionFactory;
public class Simplemessagesend
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.