Monday, October 25, 2010

WiMax to Japan side length



When the U.S. mobile communications company Sprint Corporation (Sprint) recently announced plans to launch in Boston and other three cities when WiMax services, Ericsson (Ericsson) but reverse the line, publicly closed the WiMax R & D center, switching and competitive WCDMA WiMax wireless technology. Ericsson's "lack of market demand," the reason is that the status of the U.S. WiMax market precarious realism.

Recently in the background, research institutions, telecom consultancy Analysys International and the U.S. IT market research firm Yankee Group (Yankee Group) jointly introduced the WiMAX World Conference in China, Analysys International also made an interesting analysis: WiMAX development, the main contributing factor is the growth of mobile data users, particularly in low income and educational background in higher user growth.

In fact, rule out the individual user level because of cultural and economic development with the United States is different from the needs of enterprise customers for WiMax in the United States the difference between the basic convergence: on the one hand is the temptation - in the roof On a receiver, enterprises equivalent to have a flexible broadband access "channel", without laying expensive fiber optic cable; the other hand, business users have to this temptation and a nascent disruptive technology to the enterprise of "insecurity," trade-off between .

Uncertain future

As a disruptive technology, WiMax advantage of self-evident: beyond the wired network access speeds, compared to Wi-Fi, its coverage is also more - much to the range of several tens of kilometers around the base station. However, IT staff need more is a need to worry about technology. In an interview with "InformationWeek" interview, mobile storage manufacturer ATP, director of the company's IT system, Robert 鈥?Neil (Robert Neill) said: "What we need is through a single account and network operators a steady connection, which requires different technology among operators how to better cooperate in providing mobile phone or BlackBerry as it is now the service. "

In addition, different from ordinary consumers, enterprises are interested in wireless broadband access in addition to "ubiquitous coverage", "high speed" and "cheap", there are more pressing question: When can access the service ? After all, broadband network services, whether it is born out of the mobile operator's data services, or as a wireless extension of Internet IP WiMax, are the government, operators, equipment suppliers top-down support. These, in China are not very clear, even if there are two serious telecommunications and IT research firm in Beijing keen to guide and publicity.

"Dream" into reality according to

Ambiguous attitude toward the parties and under debate, WiMax initial and key players in the Intel Corporation (Intel) continue to push forward the development of the technology, but this time than before, obviously a lot more realistic. Intel Developer Forum in the most recent information (IDF) said, in the upcoming code-named "Montevina" mobile processor provide the first integrated Wi-Fi/WiMax features that make Wi-Fi, WiMax complement allow users to move quickly to retain high-definition video and download large data files possible.

Intel's intent is: the "Centrino" chip successfully copied to the WiMax body - in a short time so that mobile equipment vendors supporting the product, and then to other attitude "ambiguous," the parties to better support the reason.

Intel, as the most upstream suppliers is so unshaken, or because the user has actually long been on the wireless applications and "everywhere" concept of moving the heart. WiMax Summit in Beijing, the first day of the two Yankee Group analyst described in detail in the WiMax platform, how will the user experience in the subversion of the individual, and gradually infiltrated into enterprise applications, thereby automatically achieve "ubiquitous enterprise applications "(Anywhere Enterprise).

In the fixed WiMax, some American businesses have started using TowerStream offers WiMax-based broadband, as broadband backup or alternative to T1. According to "InformationWeek" report, TowerStream provided is based on fixed WiMax (Fixed WiMax) on IP-based voice technology (VoIP), the service covers Boston, Chicago, Los Angeles and New York and other large cities. In addition, once the darling of WiMax, Sprint, now is the ClearWire companies than medium-sized cities and in a number of WiMax wireless broadband service related.

Wireless WiMax in the applications, the technology embodied as an extension of fixed and Wi-Fi high value. "InformationWeek" the report said Japan's Okinawa islands began to use Alvarion's WiMax technology to cover Tokashiki Island (Tokashiki), Zamami Island (Zamami Island) and Aka Island (Aka) and so on. As the typhoon in Okinawa often "walk" the channel, and the local not only scattered islands, but also have hilly terrain, fixed-line broadband has already been proved impossible to implement. WiMax becomes the only possibility.

"Gold mine" is hard to dig

In the Chinese market, the voices against WiMax is not small. Market research firm In-Stat analyst with Li Minti some negative point of view: the user difficult to distinguish between WiMax and cellular networks, the distinction should be obscured from the difference between technologies is not very easy, will worsen the user experience; In addition, for mobile operators, while WiMax can match the third-generation mobile communication technology (3G), but operating a cellular network is a great project, with such a WiMAX network, operators will result in resources decentralized, domestic and foreign carriers operating two networks in the two networks rarely have success.

Indeed, not ClearWire company operating two networks such as start-ups can only large carriers such as Sprint, with 5,300 million existing users, all over the base station, a lot of cash and good relations with vendors, and even start and Intel other firms to establish the underlying R & D cooperation, to try to have emboldened the gold mining WiMax.







相关链接:



Guide Casino And GAMBLING



ECLIPSE to improve productivity



"EXTREMELY Tiger" to get angry, "Stealth Cat" minimal harm



DDOS DDOS Tracking The Introduction And



Good Terminal And Telnet Clients



What the recent DVD-ROM to buy a good Brand?



Hot Clipboard Tools



Red ALERT: Watch your ADSL password cat



ASF to MPG



DivX to iPod



Chen Mei: The change in self-perfection



Should Give Priority To Social Identity Verification



OGM to AVI



Christmas Gifts Of 10 Cute 3d Screensavers



Monday, October 18, 2010

8 questions with 6 way



China Xin Xi personnel for the current training Mianlin of Wen Ti, the author focuses on the following eight Ren Wei Mao Dun:

First, the training of more information while the brand has less gold content of the training. Opened and IT-related newspapers, magazines, shops and a variety of training, but can really bring to the effectiveness of management training programs are not many, but have little training brand, therefore, training quite a mixed bag, but also objective extent affected the normal order of the training market.

Second, the market for information technology personnel and training needs of the relative lack of a strong contradiction between. The one hand, experts predict, the next 10 years, the talent gap in China's e-commerce will reach more than 200 million people. Shortage of those able to integrate modern information technology to business management, but also has the practical ability of the compound talents. Harm to not pursue the accuracy of the experts predict, on the other hand, our training programs can choose small, stereotyped, demand and supply do not match.

Third, improve the theoretical knowledge and enhance the ability of the contradiction between the practical operation. The current training programs, often face the dilemma of choice: a stress theory of information literacy professionals to improve or focus on information technology to enhance human resources capacity of practical operation? Of course, to achieve the unity of the two combined is the best model, however, in reality, the organic integration of the two easy to do! Theory and practice of information mismatch become the training needs across the chasm.

Fourth, differences in business conditions and the unity of the contradictions between the material. As we all know, corporate diversity, industry to industry, the interior of each is different, so many of the management staff to put together training, the training market itself Jiumei You right Jinxing market segmentation, can be imagined, even if the level of the speaker Jiaoshou high, difficult to reach, the effect of training will certainly be discounted.

Fifth, the formal education and vocational training, the contradictions between. Now, the advantage is to provide a formal tertiary education, enterprises need more vocational training. Formal education tend to have strict qualifications of academic Yao Qiu, and with various courses of She Ji, Zhou Qi bit longer if yes MBA Xiangmuyeyao 2 Nian or so, while vocational training has Mingque 浼佷笟 the Zhuanyeqingxiang, Xi Wang practical work problems encountered, exploit any tiny opening, similar to the "get rich quick." So, how to deal with formal education, "distant water" and business vocational training "thirst" relationship, become institutions and enterprises have to consider.

Sixth, teachers teaching diversity and unity between the conflicts. Currently, participation in information technology training for teachers both universities, research institutes professors and researchers, but also from business executives, professionals and even some intermediaries, their cultural background, have the advantage of expertise The difference, saying that everybody's strengths into a unified co-ordination is very difficult material. Even if the editor of a scholarly research, the scholars in the co-ordinating the different styles, writing specifications, are very difficult to imagine such a large span of co-ordination of a unified training materials, the more difficult.

Seventh, the diversification of training staff motivation and training institutions, unified standards and accreditation between contradiction. We know that training of the staff there are various motives, some want to enter the IT field, "licenses", and some from the career development and future promotion consideration, and some promising IT industry, Zhu Yu cross-investment, hope right the whole understand the industry, so many motives, often difficult to adopt "uniform standards" for certification. Fish in the structure must be certified undermined the credibility of training institutions, training personnel dampened enthusiasm.

Eighth, training fees and training institutions contradiction between the level of profitability. Can not be denied, despite all the training institutions say they are non-profit or a small profit, but to imply that there is profiteering phenomena in many training programs, and even some training to become a "Jiaoqian - Certification" of simple labor .

How to Solve the above contradictions, the author recommends that:

First, the training institutions should establish a training goal of build quality, long term and overcome the short-term profit-making behavior. Need to develop medium and long term training plan, overall progress, step by step, constantly sum up experience.

Second, starting from the market demand, for enterprises to solve practical problems, rather than from training institutions ability was, and certainly not from a government departments to complete some training the tasks. Because the training is excellent through the market testing, business training program is approved, is the touchstone of the success of training programs.

Third, strengthen the training of teachers. The level of teacher training programs directly related to the success or failure, but the exchange between teachers, assessment, common understanding, to improve teaching skills are very necessary. Currently we often neglect the training of the teachers themselves, which is very deadly.

Fourth, for different companies to carry out different elements of training. In other words, must be training for different types of enterprise market segments, for different target customers, to provide different training.

Fifth, strictly control the scale of training courses to enhance the training threshold, to eliminate the phenomenon of cohabitation. Quality training does not depend on the number of heads to win but to win by quality. Of course, this also requires a good balance between training institutions in short-term gains and long-term relationship between income and avoid profit-oriented behavior.

Sixth, and most importantly, pay attention to theoretical guidance, the promotion module training, strengthening the case study. Now, many managers lack of theoretical knowledge in the internationalization and the dual impact of information technology, enterprises can not be bigger and stronger, therefore, training programs must provide the necessary theoretical knowledge, while, through modular training, you can avoid " unified model "of the monotonous rigidity, while the case studies can greatly enrich the background of actual combat training, encourage students to participate in the discussion of traditional education to prevent the" mouthpiece "of the phenomenon.







相关链接:



3GPP to WMV



Ma: opportunities have begun to take shape



XviD to iPhone



TOD converter



Recommend Inventory And Barcoding



Netac flash news Huaqi patent dispute settlement reached in equal



Expert Gallery And Cataloging Tools



Under the iceberg



Whataya want from me ringtone adam lambert



Reference Tools brief



ESSO card from the city To look into the need for integration



Decrypt the World Trade Center's first building built on the ruins Of



Private hospital, why are white Fujian Youyizuozhuang 80 per?



ASP test two simple functions external to submit



Tuesday, October 12, 2010

DB2 pureXML a portfolio of dynamic programming: iBatis + BeanUtils + JiBX



DB2 pureXML-based application development model

This paper describes the development model to be the main variable for the needs of application development, using a variety of tools and techniques to enhance the flexibility of the framework. With the XML description of the capacity and flexibility to be a growing recognition that many XML-related technologies emerged, more and more applications using XML technology. An XML-based application development often can be divided into several levels: data storage layer, data access layer, business logic and interface presentation layer.

DB2 pureXML technology to mature for these XML-based application development provides a strong support. pureXML technology provides efficient XML storage options, while supporting standard for XML Query Language, allows application programs can easily and effectively organize XML data in the data provided Linghuo Xing Cun Chuceng. The pureXML technology in order to better integrate into the entire application development, the need to examine other aspects of support to technology.

DB2 pure XML-based application development, data access layer using iBatis would be very appropriate. iBatis is an open source persistence framework, which supports POJO class and the mapping between database tables for the application of upper provides data access abstraction. Compared to other ORM framework, iBatis DB2 pure XML-based application development has its own advantages. First of all, iBatis mapping provides a flexible definition of way, developers can use SQL / XQUERY statements describe the logical organization of database data, XML data, with the introduction of the definition and implementation of such a mapping system to show a good applicability, and XQUERY other ORM framework support is not very good. Secondly, iBatis mapping file allows the development SQL / XQUERY statement, to provide developers greater flexibility, you can use efficient SQL / XQUERY statements to access data.

In the business logic layer, using JiBX and BeanUtils, JiBX provides support for data binding, DeanUtils was provided to support dynamic class.

Complex business logic, first of all necessary documents to complete POJO and XML data binding. JiBX is a data binding framework that can achieve the XML data binding between Java objects, to meet the application installed between the two exchange (Marshal / Unmarshal) requirements. Comparison of other data binding frameworks, JiBX uses byte code enhancement, and XPP (XML Pull Parsing) technology, with excellent performance (see References [5]). DB2 pure XML-based application development, for more frequent data and Java objects into XML, JiBX is a good choice.

As used in business logic POJO corresponding XML data representation, and the need to dynamically change the POJO to adapt to change. BeanUtils tools to support dynamic changes to Java Bean, you can dynamically POJO, have adapted to meet the needs of some of the data structure changes. Provide the tools to use BeanUtils Another advantage is that you can improve development efficiency, developers can easily use less code to achieve some of the operations of the Bean.

Displayed in the interface layer, the introduction of XSLT technology. XSLT is a transformation language based on XML document can be defined XML style sheet in accordance with the conversion. XSLT allows XML data to its form of decoupling, the same XML data, you can apply a different style sheet, so as to achieve different forms. Changes in demand for the show floor, you can just modify the style sheet. This form of XML data and their loose coupling between the front-end for the XML application development lead to higher scalability, improved the flexibility of XML application development.

The layers of the test, DB2 pureXML-based application development provides a useful model. This article will briefly introduce the next development in the technology tools they need to give readers a better understanding of this development model.

Background

pureXML

XML is self-descriptive (comprehensibility), flexibility, platform independence and the advantages of standardization, the best technology is widely applied to various fields. DB2 9 provides a good for the XML data storage and management mechanisms, IBM will be the technology known as "pureXML". XML for DB2 V9 on the original ecology of efficient storage, and supports SQL and XQuery query methods. Moreover, all the relational mode of operation and database tools can be used on XML, such as indexing mechanism, import and export, related queries, high-speed bulk loading, system optimization and so on. PureXML features in the support, DB2 V9 as a support both relational data and also supports XML-primitive twin-engine database worthy of the name. With the strong support of the XML data, DB2 pureXML in the enterprise value is also increasingly widespread attention.

iBatis

IBatis is a "semi-automatic" in the ORM framework. Here, "semi-automatic" is a relative Hibernate provides a comprehensive database such as encapsulation mechanism of "fully automated" ORM implementation, the programmer is often simply defined the POJO mapping to the database table, SQL can automatically generate and implement , through Hibernate or OJB provides the procedure for the persistence operation. The iBatis's focus, then lies between POJO and SQL mapping. In other words, iBatis and programmers will not automatically generated at run SQL / XQuery implementation of the specific SQL / XQuery require programmers to write, and then through the mapping configuration file, the SQL / XQuery required parameters, and return the results field is mapped to the specified POJO. This semi-automatic into the developer to provide some space for free play.

The following work on the machine on the iBatis make a brief introduction, the reader can provide reference for further access to this article.

IBatis design patterns is a core part of the SQL Map, it needs to provide an XML file to get the database connection and simple Java bean mapping with the SQL statement. And not just a SQL Map XML file that actually a design pattern. In the implementation of the mapping statement, SQL Map will create a JDBC PreparedStatement instance of using the objects described in XML as a PreparedStatement instance parameters, the implementation of PreparedStatement and the results from the Result object is created, the implementation of the process in Figure 1, said:

Figure 1. iBatis implementation of the flowchart






JiBX

JiBX is a very good framework for XML data binding, JiBX conversion efficiency is a lot of open source projects can not be compared. It is bound by a flexible mapping of data objects and file conversion between XML documents, the text block is the connection between XML data and Java objects bridge.

A simple example of binding shown in Figure 2:

Figure 2. The definition of a simple binding






In this case, JiBX binding file defined in the XML sub-elements and members of the mapping Java classes to XML elements to Java object properties with the corresponding link. JiBX binding definitions provide a very flexible, interested readers can learn more from the Resources.

Using JiBX binding XML documents and Java objects are divided into two steps:

The first step is to compile the bindings, that is your definition of practical completion of the binding compiler into class files. JiBX provides a binding for this purpose compiler. Can run the compiler, one or more binding definition file path as an argument to run org.jibx.binding.Compile program. For example: If the JiBX installation path C:, you can define the binding path where the file binding.xml run the following command:

java-jar C: jibxjibx-bind.jar binding.xml

If you use the Ant build tool to compile the work completed, some details see References [4].

The second step is running bind, XML documents and to achieve the mutual conversion between Java instances, use the JiBX runtime to the document data marshalling (marshal) and data compiled from (unmarshal). Data marshalling Java objects generated by the process of XML text block, the data compiled from the text based XML Java object the establishment of the process block.

BeanUtils

Apache Jakarta Commons BeanUtils project is a powerful component. Mainly focused on Java reflection and introspection API, package, its aim is to use reflection on the JavaBean properties for processing. BeanUtils advantage is the ability to achieve a dynamic Bean, that is not pre-define a standard JavaBean class, but based on business need to add properties dynamically at any time and can be used as a JavaBean, which can operate with the BeanUtils methods other JavaBean operate the same.

BeanUtils was divided into four packages:

org.apache.commons.beanutils

org.apache.commons.beanutils.converters

org.apache.commons.beanutils.locale

org.apache.commons.beanutils.locale.converters

The first two of which are BeanUtils the default implementation, it does not have any treatment for localized, this can improve the efficiency. But if your application for the localization of a requirement, then it is safer to use the latter two packages.

Here are some typical BeanUtils methods:

(1) LazyDynaBean: it implements a dynamic Bean, directly entered, and joined the property, and the same use as a JavaBean. For example:

/ * Used here LazyDynaMap, it is a lightweight implementation LazyBean backup / bin / conf / data / log / maint / svn / tmp /

LazyDynaMap dynaBean = new LazyDynaMap ();

dynaBean.set ("name", "Jone"); / / set simple type

dynaBean.set ("address", "stress", "HaiDian"); / / set map type

dynaBean.set ("phone", 0, "82502987"); / / set index type

Map myMap = dynaBean.getMap (); / / retrieve the Map

(2) copies of property: the method can clone directly between Bean (clone), such as:

BeanUtils.copyProperties (c1, c2);

But this copy is shallow copy, copy and two Bean may have the same object reference to be careful when using this.

XSLT

XSLT is an XML document will be converted to other forms of documentation of the language, is the W3C's recommendation. Have mentioned that XSLT XSL (eXtensible Stylesheet Language), can Extensible Stylesheet Language, is also the recommendation of W3C standards. XSL is the XML style sheet, it is similar as the HTML style sheet CSS, but it is also much more complex than CSS, it actually consists of three languages: the language XML transformation XSLT, XML part of the definition of the language or mode of XPath, display the definition of XML languages - XSL formatting objects.

XSLT is the XSL standard, the most important part, it used to be an XML document into another XML document or another type of document. The XML into HTML is one of the main functions of XSLT. XSLT can be added to the output file a new element, or remove some elements. It can be re-arranged to classify these elements and elements to test and determine which elements and so on show.

Describe the conversion process of a common argument is: XSL with XSLT to an XML source tree into another XML result tree (or an XML source document into another XML result document), Figure 3 shows that the process:

Figure 3. XSLT input and output of the tree structure






Scenarios and solutions

The first part of this article on the pureXML, iBatis, JiBX, BeanUtils, XSLT and other technologies were introduced in detail, then how in the development of practical applications with pureXML storage flexibility, iBatis data access flexibility, BeanUtils and dynamic class JiBX generation, and XSLT to bring the interface to show flexibility in order to achieve a high degree of flexibility in the software framework, which is the focus of this article.

The following application on a specific scenario, for example, a brief introduction to the scene after the business process, will give a detailed program design ideas.

Scenarios

This application scenario is a resource exchange platform to provide resources primarily for users to upload and download capabilities, users can also edit existing resource information, such as adding some descriptive information, resources, links to related resources, or upload . Because the wide variety of different users to upload resources, descriptions quite abundant, resource information using XML as the description is undoubtedly the best choice.

The scenarios of the business process framework shown in Figure 4:

Figure 4. Business Process Framework Chart






If a user uploads a resource of new, which was necessary following the descriptions of new resources are added to enough free space to users, platforms, a dynamic model customization ways to let users define the information input of Mo Ban Xian Huozhexuanze others off the definition of template, and then re-input information based on the template. This benefit is not only the free space left to the user, while enabling the system to capitalize on these rich XML data.

If users want to edit an existing resource descriptions, the platform of the first display of personalized existing descriptions and receive user to add new information, taking into account some of the module interfaces Xuyao to Java objects in the form as a parameter to deal with these descriptions, the platform should can provide the edited information Java object, or directly to the database.

Solutions

This data exchange platform is characterized by the largest data processing flexibility, and with the growing volume of business data have gradually become complex, making the rigid structure of ER model can not adapt to the complexity of data, flexibility, level sex, and individual differences, and since XML is self-describing features, a good deal of information can be complexity, understandability, flexibility and scalability challenges, so using XML as an information carrier understandable.

DB2 V9.5 for pureXML provides efficient management of XML data, features, and for the application to provide simple and convenient access method, the programmer just follow W3C developed XML / SQL standard can easily operate on XML data, therefore, choose pureXML no doubt as to the entire back-end database platform to run and lay a solid foundation; Batis allow free allocation XMLQUERY, these XMLQUERY in some cases can be reused, while the results it can be mapped to Java objects, using the framework can simplify application development ; to display personalized consider the use of XML, XSLT transformation where, as a descriptive message each have corresponding template, XML schema, so XSLT can transform XML schema and structure of individual shows; when the user needs have been described Add a new description of the information, you can use BeanUtils get from the interface description of a number of new information added to the JiBX generated by the dynamic JavaBean in the JavaBean can be obtained for other modules to use, or use the marshall JiBX mapping function to XML and stored in the database.

Figure 5. System Architecture






Convenience, this taking the "Edit descriptions" the business process as a case, combined with specific procedures designed to provide readers a clearer understanding of the flexibility of the solution.

First, the user reads the descriptions, and editing. This step requires the sql Map iBatis configuration file to configure the appropriate sql statement and execute, and then will be the descriptions of XML with XSLT personalize the display.

1. Configure sql:

Listing 1. sql Map of the configuration in iBatis

Parameters and query results of which will be mapped to pre-defined types of Java Bean: Description, implementation of the Java Bean is a database table DISCRIPTION the field to a simple Java object property mapping, the specific content of the list 2:

Listing 2. POJO class

/ * Mapping from table DISCRIPTION * /

public class Description (

private int id;

private String info;

public int getId () (

return id;

)

public void setId (int id) (

this.id = id;

)

public String getInfo () (

return info;

)

public void setInfo (String info) (

this.info = info;

)

)

2. Implementation of the query:

Listing 3. Check the description specified

import com.ibatis.common.resources.Resources;

import com.ibatis.sqlmap.client.SqlMapClient;

import com.ibatis.sqlmap.client.SqlMapClientBuilder;

import com.ibm.db.Database;

public String selectInfoByID (Serializable id) (

try (

reader = Resources.getResourceAsReader (resource);

SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient (reader);

Description param = new Description ();

Description result = new Description ();

param.setId ((Integer) id). intValue ());

result = (Description) sqlMap.queryForObject ("selectInfo", param);

if (result! = null) (

return result.getInfo ();

)

else

return null;

)

catch (Exception e) (

e.printStackTrace ();

)

return null;

)

3. Using XSLT for display:

As the XML document is read out from the meeting a predetermined definition of the template (the template customization technology, refer to the References resources [1]), so, just follow pre-defined template structure Zhan Shi on it, Of course, developing who can model their own characteristics, the preparation of different XSLT transformation style, making a more personal show, given the following XSLT is the most common form:

Listing 4. XSLT

xmlns: xsl = "http://www.w3.org/1999/XSL/Transform"

xmlns: xsd = "http://www.w3.org/2001/XMLSch

Then, the user can display the page description of the information, to edit the descriptions, assuming he chose to add some descriptions and save, then platform can use BeanUtils to the description of newly added dynamically to the original descriptions corresponding Java Bean, its premise is the need to read out the original XML document into Java Bean in the form of JiBX binding framework used here, because here is the dynamically generated Java Bean, in order to achieve this kind of dynamic binding, using the pureXML to manage the JiBX binding documents, namely: a description of each message corresponds to a bound document in the XML document required form and format conversion between Java Bean, and in order to maintain this mapping, when one changes any form, requires the binding simultaneously to change the corresponding file and save to the database. With pureXML support, the management mechanism is very convenient to achieve, given the length of the causes of this article is no longer discussed.

Next, using JiBX will read out the description of the previous XML document into Java Bean, and use BeanUtils to the user to edit the properties of dynamically added to this Java Bean to other modules in use.

4. JiBX will be converted to XML using Java Bean:

Suppose read from the database such as XML document in Listing 5:

Listing 5. Query the database by the XML

Gone With the Wind

Eleven

200MB

It''s so go

Corresponding JiBX binding documents such as Listing 6:

Listing 6 JiBX binding document

This function can be achieved JiBX of Unmarshal Java Bean from XML to the automatic conversion of specific conversion processes such as Listing 7:

Listing 7. The XML document is converted to Java Bean

public Content getClassFromXML (String info) (

try (

InputStream xmlStream = new InputStream (info);

IBindingFactory bfact = BindingDirectory.getFactory (Content.class);

IUnmarshallingContext uctx = bfact.createUnmarshallingContext ();

/ * Unmarshal description infomation selected from database * /

Object bean = uctx.unmarshalDocument (xmlStream, null);

return (Content) bean;

)

catch (JiBXException e) (

e.printStackTrace ();

return null;

)

)

According to JiBX mapping mechanism, the converted Java Bean should have a list of 8 in the form of:

Listing 8. Conversion by the Java Bean JiBX

public class Content (

public String name;

public String section;

public String size;

public String discription;

public String getDiscription () (

return discription;

)

public void setDiscription (String discription) (

this.discription = discription;

)

public String getName () (

return name;

)

public void setName (String name) (

this.name = name;

)

public String getSection () (

return section;

)

public void setSection (String section) (

this.section = section;

)

public String getSize () (

return size;

)

public void setSize (String size) (

this.size = size;

)

public void setSize (String size) (

this.size = size;

)

)

Of course, JiBX mapping mechanism is very flexible, and it not only supports these elements and attributes of one to one mapping, Huan support some map, and the mapping itself great flexibility, developers can 璁捐 based on actual needs.

5. Dynamically add attributes:

Add a description of the user of new information generated dynamically added to the Java Bean, then add the dynamic processes such as the list of 9:

Listing 9. BeanUtils dynamically add attributes

public Content addAttribute (Content content,

HashMap attributeNames, HashMap attributeValues) throws Exception (

try (

BeanUtils.setProperty (content,

(String) attributeNames.get ("URL"), attributeValues.get ("URL"));

BeanUtils.setProperty (content,

(String) attributeNames.get ("Role"), attributeValues.get ("Role"));

) Catch (InvocationTargetException e) (

e.printStackTrace ();

)

return content;

)

Then add the property to be dynamic after the new Java Bean, can follow the demand, using JiBX the Marshal mechanism to convert XML documents stored in pureXML, or for other mold

Summary

The emergence of DB2 pureXML for XML storage and use provide a good support. This paper focuses on how pureXML the popular combination of tools and frameworks, and presents a development model. With pureXML storage flexibility, iBatis data access flexibility, BeanUtils and JiBX dynamic class generation, and XSLT to bring the interface to show flexibility to achieve a high degree of flexibility in the application framework purposes.







相关链接:



VOB To SWF



Easy to use File Compression



best MPEG4 avc to wmv



Photoimpact6 One Big Impression On The Text Easy To Do Special Effects (2)



FLV TO Zune



3GP To MPEG



Wonderful Books Excerpts (6): "Didi" One Instance Of Production



All RAIDERS Athena Sword



Second-hand computers Xi'an China Merchants Plaza, more than 60 illegal businesses operating wit



21st Century Business Herald: reversal eBay



No Trace Of Her It Just So To Find The Original 1000 Baidu



Zhou Hongyi 1 billion investment is not money, is lonely



Best Cataloging



CHARACTERISTICS of GIS



Wednesday, October 6, 2010

Aspect-oriented (AOP) and object-oriented (OOP) [1]



First of all you have to be clear that, AOP and OOP are two different point of view of cognition, not to say that just should not have AOP OOP.AOP concern is that the traditional OOP can not elegant solution. (Programmers often a perfectionist, and when to solve a problem is not elegant, it means not perfect.) following a simple example will illustrate how different they are in the end.

Using OOP for many years as a people, when I heard AOP can solve some OOP has not been able to solve the problem gracefully, I think we should tackling the relay them. Comparison of the two technologies give us the most practical applications provide insights. here I designed an example: a OOP applications, suitable for use in certain aspects of AOP.

This paper presents a simple example. Outset describes the problem domain, and then were given OOP and AOP solutions. Which uses JDK5.0, JUnit, and AspectWerkz. Finally, we illustrate how to write code. After reading this article, I hope you know what AOP in the end, what kind of problems to solve. (because of the examples in the back of AOP used Java5.0 endorsement (Annotation), the reader first understand. - Translator Note).

Problem domain description

A software company hire a programmer, a business unit assigned to him and asked him to keep the manager. When team members accomplish their goals, the manager will give them the corresponding bonus. Companies need the program to be able to add a new employees and current employees to increase the prize money. For convenience, we use the CSV file to store data.



Figure 1 Solution Model

Category Manager (Manager) inherited from the class Employee, contains an additional attribute, Managing Project. A sector may contain a lot of employees. Constitute the company's various departments. Without consideration of the company such a class, because it is outside the problem domain.

Solution Design

The following diagram describes the solution design.




Figure 2, the interaction between objects (add a new employee, assigned to his department and manager)

For simple, this article concerns only the necessary details. Of course you can get what you want in-depth code and other information.

[Link] http://www.devx.com/assets/sourcecode/13172.zip [/ link]

EmployeeServiceTestCase, a JUnit test case to simulate an end user, create new employee records, assigned departments and managers. It gets all of the available data on departments and managers and shows the graphic interface. BusinessUnit domain object to instantiate and Manager, access to records will be passed to the factory class. After passing through a reference to EmployeeService to create an Employee object. EmployeeFactory use this service to create an object class, and pass this object to be persistent EmployeeRepository operation.







Recommended links:



Easy to use System Utilities



Overall bandwidth of Thunder Edge Broadcasting below to see new resolution



Younger's QUICKSTEP



Flash5 ActionScript Advanced Programming Guide (6)



what are the best mini netbooks



Best Converters And Optimizers



Make a IPhunter



Review Search Or Lookup Tools



VOB to Zune



Adobe is Very fragile, then Photoshop it?



Top Registry Tools



Focus DreamWeaver MX 2004



VOB To MPG



ASF converter



The "job" into a "job Search" strategy



Knowledge of equality before the