Java decentralized service discovery
Java web message real-time push can use goeasy platform
The operation is as follows:-
register an account on goeasy official website and create an application. After the application is created, the system will generate two keys for it by default: publish key and subscribe key P>
front end real-time subscription and reception: you need to introce goeasy.js, then call goeasy's subscribe method to subscribe to a channel, and subscribe to publish key or subscribe key. Through the callback function of the parameter onmessage of subscribe, the message can be received in real time P>
front stage real-time push: you need to introce goeasy.js (if the page has been introced, or not introced), then call the publish method of goeasy to push the message to the subscribed channel, and only use publish key when pushing. p>
-
background real-time push: call goeasy restful API and access it by post http://goeasy.io/goeasy/publish At the same time, it also needs to bring three necessary parameters:
appkey: publish key
Channel: channel you subscribe to
content: push content
-
goeasy's implementation principle is very simple, that is, one end of the push message is only responsible for pushing, The pages that need to be received need to be pre subscribed. What to subscribe to? Subscribe to channel. Push messages to a channel, and the client will subscribe to the same channel, so as to ensure accurate reception. Through the channel, we can specify which pages or users can receive messages pushed from the channel< br />
from the perspective of beginners, using JDK to develop java programs can quickly understand the relationship between the various parts of the code, which is concive to understanding the java object-oriented design ideas. Another prominent feature of JDK is that it is upgraded with the upgrade of Java (J2EE, J2SE and J2ME). But its disadvantage is also very obvious, that is, it is very difficult to engage in large-scale enterprise Java application development. It can not carry out complex Java software development, and it is not concive to group collaborative development
2. Java workshop
3. NetBeans and Sun Java Studio 5
NetBeans are open source Java integrated development environment (IDE), suitable for all kinds of client and web applications
Sun Java studio is the latest commercial full-function Java ide released by Sun company. It supports Solaris, Linux and windows platforms and is suitable for enterprise developers who create and deploy 2-tier Java Web applications and n-tier J2EE applications. NetBeans is the instry's first open source ide to support innovative java development. Developers can use powerful development tools to build desktop, web or mobile applications. At the same time, through the molar structure of NetBeans and open API, the third party can easily extend or integrate the NetBeans platform. Netbeans3.5.1 is mainly for developers of general Java software, while JavaOne Studio 5 is mainly for developers of enterprise network services and other applications. Sun will soon launch projectrave, which aims to help enterprise developers develop software. Compared with other development tools, the biggest difference of NetBeans 3.5.1 is that it can not only develop various desktop applications, but also can be used to develop network service applications, and can develop applications on mobile devices based on J2ME. On the basis of netbeans3.5.1, sun has developed Java one studio 5, which provides users with a more advanced enterprise programming environment. In the new Java one studio 5, there is an application framework. Developers can use these moles to quickly develop their own applications in network services
4. Borland's JBuilder
has entered the realm of Java integrated development environment, which meets many applications, especially for server and EJB developers. The following is a brief introction to the characteristics of JBuilder:
1) JBuilder supports the latest Java technologies, including applets, JSP / servlets, JavaBeans and EJB (Enterprise JavaBeans) applications< In addition, it supports CORBA, and the corresponding wizard helps users to manage IDL (interface definition language) and control remote objects
3) JBuilder supports various application servers. JBuilder is closely integrated with inprise application server, supports WebLogic Server, ejb1.1 and ejb2.0, and can quickly develop e-commerce applications of J2EE< 4) JBuilder can use servlet and JSP to develop and debug dynamic web applications
5) using JBuilder, pure Java2 applications can be created (without proprietary code and tags). Because JBuilder is written in pure java language, its code does not contain any exclusive code and tags, it supports the latest Java standards
6) JBuilder has a professional graphical debugging interface, supports remote debugging and multithreading debugging, and the debugger supports various JDK versions, including J2ME / J2SE / J2EE. JBuilder is a pure java development environment, which is suitable for enterprise's J2EE development; The disadvantage is that it is often difficult to grasp the relationship between the various parts of the whole program at the beginning. People have higher requirements for the hardware of the machine and eat more memory. At this time, the running speed is slow< Oracle's jddeveloper (version 9.0, latest 10g) provides a fully integrated development environment for building complex, multi tier Java applications with J2EE functions, XML and web services. It provides special functions and enhanced performance for developers using Oracle9i Database and application server. In addition, it is also qualified as a powerful tool for multi-purpose java development< The main features of oracle9ij developer are as follows:
① it has UML (Unified Modeling Language) modeling function. Business objects and e-business applications can be modeled
② it is equipped with high-speed Java debugger, built-in profiling tool and codecoach to improve code quality< (3) support soap (Simple Object Access Protocol), UDDI (Universal Description, discovery and integration),
, WSDL () "web service description language" and other web service standards. Jddeveloper is not only a good java programming tool, but also an extension of Oracle Web services. It supports Apache soap and 9ias. Extensible environment is closely related to XML and WSDL. Oracle9ij developer is fully written in Java, which is compatible with previous Oracle server software and other manufacturers' application server procts that support J2EE. Moreover, it focuses on Oracle9i ring design, which can seamlessly develop cross platform applications, providing the instry's first complete development environment integrating J2EE and XML, It allows developers to quickly develop web services and transaction applications that can be accessed through web, wireless devices and voice interfaces. In the past, only by combining the traditional Java programming skills with the latest molar methods into a single integrated development environment can J2EE application development lifecycle management be completed, which has fundamentally changed. The disadvantage is that it is more complex and difficult for beginners
6. IBM's VisualAge for Java
VisualAge for Java is a very mature development tool. Its features are very useful for it developers and amateur Java programmers. It provides a wide range of support for visual programming, supports the connection of genetic mainframe applications by using CICS, supports the development and application of EJB, supports the integrated development with WebSphere, convenient bean creation, good rapid application development (RAD) support and file free file processing<
the visual
agefor Java professional edition software launched by IBM for the construction of Web sites has been completely turned to Java as the center. In this way, Java developers may feel much better about the full set of tools of WebSphere. The tools provided by studio include: Web site management, quick development of JDBC Page Wizard, HTML editor and HTML syntax check. This is really a good HTML site page editing environment. Studio and VisualAge are highly integrated, and the menu provides the option to quickly move code between the two packages. This allows web page designers using studio and Java programmers using VisualAge
to exchange files and work together. Visual age for Java supports team development. The built-in code base can automatically modify the program code according to the user's changes, so that it is convenient to compare the current code with the previous version. WebSphere studio, which is closely combined with VisualAge, does not provide the support of source code and version management. It only includes a built-in file locking system, which can prevent others from modifying these files when editing projects. The software also supports a third-party source code control system such as Microsoft Visual SourceSafe. Visual age for Java fully object-oriented programming ideas make the development program very fast and efficient. You can design a typical application framework without writing any code. As one of the procts of IBM e-commerce solution, VisualAge for Java can seamlessly integrate with other IBM procts, such as WebSphere and DB2, and quickly complete the whole process from design, development to application deployment. Visual age for Java's unique way of managing files makes it very difficult to integrate external tools. You can't make visual age for Java develop applications with other tools
7. BEA's Weblogic workshop is a unified, simplified and extensible development environment, which enables all developers to build standards based enterprise applications on bea Weblogic enterprise platform, so as to improve the proctivity level of development department and accelerate the realization of value. In addition to providing convenient web services, Weblogic workshop can be used to create more kinds of applications. As the development environment of beaweblogic platform. Whether it is creating portal applications, writing workflow, or creating web applications, workshop 8.1 can help developers to complete them faster and better. The main features of Weblogic workshop are as follows:
① make J2EE development feasible and improve development efficiency
beaweblogic workshop enables developers to stay away from the inherent complexity of J2EE, concentrate on business logic, and do not have to worry about tedious infrastructure code. This innovation means that the powerful functions of J2EE, which has been verified by enterprises, are finally mastered by most application developers who are not familiar with Java and J2EE, thus improving the work efficiency of IT department by an order of magnitude. Visual designer and intuitive concepts, such as events, properties and controls, realize event based development. The simplified programming model of workshop makes it unnecessary for developers to master complex J2EE API and object-oriented programming principles. All developers, including J2EE experts and application developers with visual and proceral language skills, can work together on beaweblogic enterprise platform. In the visual development environment of workshop, standard java files with code comments are created to illustrate the enterprise requirements implemented by the runtime framework. J2EE and other senior developers can access java source code with the help of powerful code editing function, which makes up for the deficiency of visual designer
② building enterprise applications
by implementing various applications on a scalable, safe and reliable enterprise architecture, beaweblogic workshop greatly reces the development risk. Moreover, all applications are created using standard J2EE components, which not only protects your technology investment, but also maintains the maximum flexibility. BEA Weblogic workshop running framework is the convergence layer of unifying the whole architecture, which extends the single and simplified programming model to all bea Weblogic enterprise platform application types. By explaining the annotation code created at design time, the runtime framework can implement the necessary J2EE components and extract all the underlying details related to J2EE application development
③ rece the complexity of it. Beaweblogicworkshop provides various Java Controls, making it easier to connect with it resources. In addition, in the application of building any beaweblogic platform, Java controls are not only extensible but also identical. This powerful and effective method can: rece the complexity of IT technology, optimize information
First of all, what do you learn to position yourself for? For example, in order to get a high salary, to buy a car or a house, how much is the monthly salary in a few years. In other words, I like programs very much and feel that writing software has a sense of accomplishment. Anyway, we should know what we study for, not for learning, otherwise why do people give up in the middle of the way
Secondly, can we persist? Because Java itself is not integrated into learning, it is very boring, no one likes boring1. Understand all the things to learn in Java, learn the basic grammar well, and understand the characteristics of Java
2. Choose the right books, such as "thinking in Java", "Java core technology", "Java from introction to Mastery"
3. Choose the right teaching video books for learning, such as: webpage links
4, or participate in training classes for professional guidance, which can better solve the problems you encounter in learning
no matter you are learning javase, Database, Java Web, and framework knowledge, you should remember that in the process of learning programming, the only embodiment of smart people is the understanding of knowledge points. The rest is the same. How much time you spend on hands-on practice determines how far you can go. Learning this is a sea tactic in any instry, and programming is even more so. In addition to writing more code, There is no other shortcut. Sorting is not easy
we also attach our learning roadmap, hoping to help you
1. Android applications
many Android applications are developed by Java programmers. Although Android uses different JVMs and different encapsulation methods, the code is written in Java language. A considerable number of mobile phones support Java games, which makes many non programmers know Java
2. The server program applied in the financial instry is widely used in the financial service instry. Many third-party trading systems, banks and financial institutions choose to use Java for development, because Java is relatively safe. Large multinational investment banks use java to write electronic trading system, settlement and confirmation system, data processing project and other projects
3, website
java occupies a certain position in the field of e-commerce and website development. Developers can use many different frameworks to create web projects, spring MVC, struts 2.0 and frameworks
4. Embedded field
java has a great development space in embedded field. On this platform, only 130kb is needed to use Java Technology (on smart cards or sensors)
5, big data technology
Hadoop and many other big data processing technologies use Java, such as Apache's Java based HBase, accumulo and elastic searchas
6, high frequency trading space
java platform improves the characteristics of this platform and even if it is compiled, it can also transfer data like C + +. It is for this reason that Java has become the language for programmers to write trading platform, because although the performance is not better than C + +, developers can avoid the problems of security, portability and maintainability
7, scientific application
java is a good choice in scientific application, including natural language processing. The main reason is that Java is better than C + + or other languages in security, portability, maintainability and concurrency of other high-level languages
extended materials:
java has numerous uses, and has incomparable ability. In addition, it can save time and development costs. Programmers can freely use the existing hardware and software system platform with the help of Java language, because Java is independent of any platform. Specific application areas are summarized as follows:
the first area is desktop application system development
The second area is embedded system development The third area is e-commerce system developmentthe fourth area, enterprise application development
The fifth area is interactive system developmentthe sixth area, multimedia system development
The seventh area is distributed system developmentthe eighth area, web application system development
Network Java
1. Java website construction
in recent years, the website construction business has been rising rapidly, and the instry market is growing. The application of new technology will make enterprise website construction more attractive. Java programming language will also make the website structure closer, access more fluent, more able to adapt to new requirements. But according to the current market analysis, the cost of Java website is too high, and the hardware requirements are relatively high. Most small and medium-sized enterprises choose to use PHP language for development, but large enterprises like Java technology
2. Java enterprise application development
at present, Java is widely used in enterprise information application in many instries, such as OA, email, stock, finance, examination, logistics, medical treatment, mining and other information systems. This direction is closely related to the instry, so it is an empirical development direction. Java developers also have a great demand in this area, and the salary is quite good. The salary level is similar to that of Java Internet. It's easy to get employment in some large enterprises
3. Java game development
java itself can be used to write game scripts. At present, there are script languages such as BeanShell groovy that can interact with Java seamlessly, which greatly facilitates java game programming. There has been a gap in the demand for domestic game professionals
4. Java big data development
big data is undoubtedly one of the most popular hot words in IT field. Although the writing of big data framework supports many development languages, Java has great advantages in big data development. At present, most of the popular big data Hadoop framework and map rec framework are written in open source java language, So Java has great advantages in big data!
In recent years, Java has been "dead" and "resurrected" so many times, and it is still strong and alive, which shows that its influence can not be underestimated. Why is the employment prospect of Java still very good? What is the main application and employment direction of Java? Today, Xiaobian will answer for you one by one
why is java still alive
first, has a long history, which means it has more time to wait for developers to establish tools for writing, maintaining and debugging code. For the new programming languages, unless someone has written ide extensions in the existing IDE, it is impossible to compare with Java
Second, java is a bridge to connect the future. There are numerous popular Java based languages, such as groovy, clojure, Jython and scala
thirdly, although Java is not as trendy as go, it's harmless. In jaxenter's annual programming language report, Java is still the number one, while swift, go and kotlin are not in the top five
What is the main employment direction ofjava
1. Android development
as the world's largest smartphone operating system, the development speed of Android is very fast, and the main development language of Android application is java development language. Although there are specialized courses for Android development, after learning java development, you can also consider switching to the field of Android development, with diversified development directions
2. Java enterprise application development
e to the high security of Java, many enterprises in many instries choose Java as the development language in application development. In particular, large enterprises attach great importance to Java developers. They not only have a large demand, but also have good treatment. Java development engineers can choose to develop in large enterprises after they have accumulated some experience
3. Java game development
the domestic game instry has developed rapidly in recent years, and there has been a demand gap for professional game talents. At present, there are some game script languages that can interact seamlessly with java development language. Java development language itself can also write game scripts. Therefore, after participating in java development training, you can also choose to become a game developer
Java website developmentalthough the cost of developing website with java development language is high, the security and fluency of website developed with Java are greatly improved e to many characteristics of Java. Therefore, many large enterprises will choose Java as the first choice for website development
judging from the general trend of programming languages, "Java will not be destroyed" is an argument worthy of our belief and affirmation. It is suggested that students choose a good employment direction when they study java. Because according to the different direction of employment, when learning Java, the focus will be slightly different
many Android applications are developed by Java programmers. Although Android uses different JVMs and different encapsulation methods, the code is written in Java language. A considerable number of mobile phones support Java games, which makes many non programmers know Java
2. Server programs applied in the financial instry
java is widely used in the financial services instry, and many third-party trading systems, banks and financial institutions choose to use Java for development, because Java is relatively safe [39]. Large multinational investment banks use java to write electronic trading system, settlement and confirmation system, data processing project and other projects. In most cases, Java is used in server-side development, but most of them do not have any front-end. They usually receive data from one server (upper level) and send it to another processing system (lower level) after processing
3. Website
java occupies a certain position in the field of e-commerce and website development. Developers can use many different frameworks to create web projects, spring MVC, struts 2.0 and frameworks. Even simple servlets, JSPS and struts based websites are often used in government projects. For example, websites of medical aid, insurance, ecation, national defense and other departments are all developed based on Java
4. Embedded domain
java has a large development space in embedded domain. On this platform, only 130kb is needed to use Java Technology (on smart cards or sensors)
5. Big data technology
many of Hadoop and other big data processing technologies use Java, such as Apache's Java based HBase and accumulo and elastic searchas
6. High frequency trading space
java platform improves the features of this platform and even if it is compiled, it can also transfer data like C + +. It is for this reason that Java has become the language for programmers to write trading platform, because although the performance is not better than C + +, developers can avoid the problems of security, portability and maintainability
7. Scientific applications
java is a good choice in scientific applications, including natural language processing. The main reason is that Java is better than C + + or other languages in security, portability, maintainability and concurrency of other high-level languages.
Java is an object-oriented programming language that can write cross platform applications
java technology has excellent versatility, efficiency, platform portability and security, which is widely used in PC, data center, game console, scientific supercomputer, mobile phone and Internet, and has the largest professional community of developers in the world. Java warwolf class, originally named oak, aims to solve the control and communication problems of home appliances such as TV, telephone, alarm clock, toaster and so on. As the market demand for these intelligent appliances is not as high as expected, sun abandoned the plan. Just when oak nearly failed, with the development of the Internet, sun saw the broad application prospects of oak in computer networks, so it transformed oak and officially released it under the name of "Java"
The style ofjava programming language is very close to C and C + +. Java is a pure object-oriented programming language, which inherits the core of object-oriented technology of C + + language. Java abandons the characteristics of pointer (replaced by reference), operator overloading and multiple inheritance (replaced by interface) which are easy to cause errors in C + + language, The function of garbage collector is added to reclaim the memory space occupied by objects that are no longer referenced, so that programmers no longer have to worry about memory management. In Java se 1.5, Java introces some language features, such as generic programming, type safe enumeration, variable length parameters and automatic loading / unpacking
java is different from general compiler execution computer language and interpreter execution computer language. It first compiles the source code into binary bytecode, and then relies on virtual machines on different platforms to interpret and execute the bytecode, thus realizing the cross platform feature of "compile once, execute everywhere". However, each compilation takes a certain amount of time, which also reces the efficiency of Java programs to a certain extent. But after the release of J2SE 1.4.2, the execution speed of Java has been greatly improved
Different from traditional programs,
SUN company took Java as an open technology when it was launched. Tens of thousands of java development companies around the world are required to design compatible Java software“ Java language relies on the power of the group rather than the power of the company "is one of the slogans of Sun company, and has been recognized by the majority of software developers. This is totally different from the elite oriented and closed model advocated by Microsoft
Sun company's explanation of Java programming language is: Java programming language is a simple, object-oriented, distributed, interpretive, robust, system independent, portable, high-performance, multi-threaded and dynamic languagejava platform is based on Java language. Such a platform is very popular at present, so Microsoft has launched a competing. Net platform and C language imitating Java
java basic syntax
1. Java syntax format, constant and variable, variable scope, method and method overload, operator, program flow control, array and operation array class,
2. Loop traversal of array and common search and sorting algorithm principle for array, finally use Java program for function implementation
the second stage: database technology
1
Oracle background introction, database installation, database user name and password, client login database service sqlplus, database basic overview
2. SQL statement
database creation, table creation, modification, deletion, query, index creation, master-slave table creation, data control, authorization and recycling, transaction control, detailed explanation of query statements and operators, and function use in SQL
the third stage: JDBC technology
JDBC foundation
the use of JDBC connection, statement, Preparedstatement, callablestatement, resultset and other different classes
the fourth stage: Web basic technology (project combat)
1. XML technology
JDOM and Dom4j are used to parse and generate XML documents, as well as the role and usage of XML< br />2.html/css
java master the basic HTML tag format and use, CSS cascading style sheet on the definition of div, realize the basic implementation of the site layout
the fifth classic stage: Web mainstream framework technology (project combat)
Struts2. X
. The working principle and architecture analysis of Struts2 framework, the role of struts-default.xml and default.properties file, struts.