Erp
Thinking of implementing ERP in domestic enterprises
Three years, a paragraph is not long, said a short time. I have been in the field of ERP for three years, in a product for three years. Although the distance to become an expert in this field is still far away, but three years, I continue to summarize, and constantly reflect on the project's success and failure. Here, I would like to discuss with you some key points in the development and imple
ACTIVEMQ Study notes (iv)http://my.oschina.net/xiaoxishan/blog/380446 the use of native methods to send and receive messages from ACTIVEMQ. As you can see, every time you send and receive messages, you write a lot of repetitive code, and spring provides a much more convenient way for us, which is spring JMS. Let's start with an example. Includes the queue, the send and receive related spring configuration of the subject message, the code, the test. In
For the enterprise station, corporate website as the enterprise in another image of the Internet, enterprises can through the corporate web site in the Internet to promote the image of the enterprise, products, services and other information, so corporate web site has attracted the attention of enterprises. At present, many business owners are reflected in such a problem, corporate web site is always baffle
Messagecreator callback to create a text message from a supported session object. Jmstemplate is built by passing connectionfactory references. Optionally, a default constructor and ConnectionFactory are provided and can be used to build instances of the JavaBean type (using a beanfactory or Pojo). Also, consider the base class provided by spring's Jmsgatewaysupport, which provides pre-built bean properties for the JMS configuration.
The Send (Strin
listener =New Pubsublistener ("Client_one",new Jedis ( "127.0.0.1")); Subclient subclient = new subclient ( "127.0.0.1", listener); Thread T1 = new Thread (new Runnable () { @Override public void run () {//at the API level, this is a polling operation and will not return unsubscribe until Subclient.sub is called ( Channel); } }); T1.setdaemon (true); T1.start (); int i = 0; while (i 2) {Pubclient.publish (channel, " "Message" +i); i++; Thread.Sleep (1000);}}
1
2
3
This article is a simple integration method for spring and activemq. It is only used for reference learning and focuses on understanding concepts.
1: JMS is a set of standard APIs developed by Sun to access message-oriented middleware (MOM). The mom component used in this article is activemq. You can go to [url] routing,
It is very simple to use, extract and directly run the activemq. BAT file under the D:/activemq-4.1.1/bin directory, you can start t
In the development of message-oriented middleware, it is often necessary to generate a unique message identifier. You can add a corresponding prefix to the server deployed in the project, and then the timestamp is too long based on the system timestamp, it can be converted into a 36-digit string to form the unique identifier of the message:
import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class MsgIDUtil {private static fi
Jar hell III: the issue and solution of log4j 1.2.15 in m2eclipse
The version 1.3 of log4j is still in the Alibaba Cloud version. Version 1.2 is up to version 1.2.15, but maven2 has an issue in eclipse.
After installing Maven clean, the maven package will build failure, with the following warning information:[Warning] invalid Pom for javax. JMS: jar: 1.1, transitive dependencies (if any) will not be available, enable debug logging for more details[W
As mentioned earlier, JMSCorrelationID is mainly used to associate multiple messages. For example, when a Message needs to be repliedSet JMSCorrelationID to the ID of the original message. In the following example, three message producers A, B, C and three message consumers A, B, and C are created. Producer A sends A message to consumer A, and consumer A needs to send A message to consumer. B and C are similar to.The diagram is as follows:Producer A ----- send ----> consumer A ----- reply ------
JMS message persistence: Persistence of ActiveMQ messages to mySql database ActiveMQ5.8.0 uses kahadb as the default message persistence mode. By using the default persistence mechanism, we cannot directly see how the message persists. The JDBC persistence mechanism provided by ActiveMQ can store persistent information to the database. By viewing the table structure and stored data generated by ActiveMQ in the database, we can better understand the me
When developing JMS in jboss5.1 today, call the followingCodeError:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Queueconnectionfactory Factory=(Queueconnectionfactory) CTX. Lookup ("Queueconnectionfactory");
Error exception information:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Javax. Naming. namenotfoundexception: queueconnecti
If javax. Naming. namenotfoundexception: JMS not bound appears during running,Because JBoss does not create a queue object, you need to manually configure the queue object. You can create a xxx-service.xml file in the
For tomcat to use the JMS collection configuration, you need to add subsequent configuration parameters. In this example, start the configuration in Tomcat under eclipse.Add:-DCOM. Sun. Management. jmxremote. Port = 9089-DCOM. Sun. Management. jmxremote. SSL = false-DCOM. Sun. Management. jmxremote. Authenticate = falseYou can also add the preceding configuration to the bin/Catalina. BAT file in the tomcat installation directory. You can also view the
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/14353251N-0.jpg "title =" slide into jpg" alt = "182606887.jpg"/>
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1435325Q2-1.jpg "title =" slide 21.JPG" alt = "182631115.jpg"/>
First, we will briefly introduce ActiveMQ. ActiveMQ is an open-source free Message Server provided by the Apache Software Foundation. Its current version is 5.8.0.
ActiveMQ has the following features
= "Com.activemqtest.serviceImpl.TopicProvider" > the - - the theclass= "Com.activemqtest.serviceImpl.TopicMessageListener"/> the the - class= "Org.springframework.jms.listener.DefaultMessageListenerContainer" > the the the94 the theView CodeDispactcherservlet.xml123Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"4xmlns:context= "Http://www.springframework.org/schema/context"5Xmlns:mvc= "Http://www.springframework.org/schema/mvc"6xsi:schemalocation= "Http://www.springframework.
The last blog introduced the ACTIVEMQ based on JMS point-to-point messaging mechanism implementation, here is another publish/subscribe method implementation.
Publish subscription model
It's like subscribing to a newspaper. We can choose one or more newspapers, for example: Beijing daily, People's daily. These newspapers are equivalent to topic in the release subscription model. If a lot of people subscribe to the same newspaper, we are registered in
1, the difference between the communication platformJMS: Only allow communication between the Java-based implementation of the messaging platformAMQP: Allows multiple message protocols to communicate, such as Ruby's Storm and Java JMS can communicate on AMQP.Conclusion: AMQP allows multiple techniques for simultaneous protocol communication
2, the difference of communication mechanismJMS: Message producers and message consumers must know each other's
JMS Security
Some topic and queues require the appropriate permissions to operate.
Topic and queue permissions can be set in
Name = "Jboss.messaging.destination:service=topic,name=testtopic"XMBEAN-DD = "Xmdesc/topic-xmbean.xml" >
If security is not set, use
If you want to operate a security queue or topic, you can use spring's usercredentialsconnectionfactoryadapter. The settings in spring are as follows:
Jndi-name = "ConnectionFactory" >Java.n
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.