1 id> EMPLOYEE> department> ◎ can be declared for namespace ◎ DTD You can check the file ◎ # pcdata is the text type, you can define in DTD ◎ declaration empty mark ◎ No end tag is empty element ◎ The first line in the DTD should first Is the root element ◎ DTD, can have multiple times ,? 0 or 1 time ◎ ANY is any type ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ --------------- -------------------------------------------------- ------- End-xml: --------------------------------------- -------------------------------------------------- -------------------------------------------------- ----- Servlet: ------------------------------------------- -----------------------------
◎ JBoss supports hot config, no need to restart ◎ servlet runs in the container ◎ Use -D to specify the Package ◎ Servlet is closed after the container is turned off, and after the entire server is turned off, the resources in the memory in the memory are released ◎ Servlet Config ◎ Servlet Context is the running environment of servlet ◎ Servlet's parameter can be used to transfer the location of the log log file ◎ Javac -d target path source path ◎ You can use JAR tools to generate WAR Archive files such as: jar -cvf Helloservlet .war web-infc: Represents to create a V: indicating the display f: Representation file ◎ Web.xml program released descriptor ◎ Declaration Web.xml is based on what to publish: ◎ servlet-name in web-app_2_3.dtd, (servlet- Class | ◎ JBoss's default port number 8080 ◎ Execute the setContentType method to set the file type ◎ You can modify C: /JBoss-3.2.2/server/default/deploy/jbossweb-tomcat41.sar/meta-inf/jboss-service. XML files to modify the port number ◎ to display the file list ◎ Connection is closed, ROWSET is not available, and RowSet is saved in the client side ◎ getParameter () is used to return strings Value ◎ Value of all parameters enumeration enum = req.getParameterName (); while (enum.hasmoreElements ()) {Object item = enum.nextelement (); string value = req.getParameter (ITE m.toString ());
}
◎ getContextPath () shows the path of biscuits may be produced ◎ cookieCookie cookie = new Cookie by using addcookie httpservletResponse to perform session tracking ◎ by the following method ( "client-id", new Integer (counter )); resp.addCookie (cookie) ◎ can be submitted to session tracking as follows:
◎ You can store the user's query results in the user's session through setAttribute (), and then the user's query only needs to obtain data from the memory in the server, so there is no need to query from the database, speed up the speed ◎ GetSession (TRUE); If the user doesn't log in, you will create a session. If you log in again, you don't build ◎ invalidate () shows the clear session ◎ servlet If you have already printed, you can't make a transfer ◎ servlet context like ◎ servlet execution environment to enable the httpservlet by each attribute httprequest ◎ to share data and can be servlet servlet classes and new methods HttpServletRequest.getHeaderNames ◎ contact communication by url (); HttpServletRequest.getSession (); HttpServletRequest .getHeaders (); Enumeration.hasMoreElement (); Enumeration.nextElement (); HttpServletResponse.setContentType () HttpServletResponse.getWriter (); session.getId (); HttpServletRequest.getProtocol (); HttpServletRequest.getServerName (); HttpServletRequest.getContextPath ( ); HttpServletRequest.getPathInfo (); HttpServletRequest.getQueryString (); HttpServletResponse.encodeURL (); ◎ servletcontext context = httpservlet.getservletcontext, where the context is valid in a webapp, he terminates in a closed browser (testable), If you open two Browser, the value in the two Browser will not be the same (you can test whether the value remains unchanged in the current page), the value remains the same. Is saving sessionid to cookies To distinguish whether the Browser ID is the same. ◎ httpsession releases an httpession ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ --------------- -------------------------------------------------- ------- End-servlet: --------------------------------------- -------------------------------------------------- -------------------------------------------------- ----- JSP: ----------------------------------------- ---------------------------- ◎ ◎ The * indicates that there can be multiple values ◎ input statement <% @ Page Import = "package1, package2"%> ◎ Servlet's session default is activated, while JSP is activated by default ◎ JSP default character set is "text / html; charset = ISO-8859-1 ◎ JSP default threadsafe = True, JSP assumes that you open Thread is thread security, it is not necessary to synchronize, if you set to false, JSP will help you synchronize, so performance is reduced ◎ Include can only be included once, grammar rules: <% @ Include file = "URL"%> ◎ All JSP files are placed in a web directory ◎ JSP size sensitive ◎ INCLUDE can only be included in static files, not promptly display on the page after file modification (JBoss INCLUDE is similar to jsp: include) and JSP: Include tags can be dynamically included, will be displayed in time to display ◎ <%! declaration_state%> EXAMPLE: <%! int counter;%> ◎ for instance variables Synchronization: <% synchronized (page) {counter ;}%> // can replace PAGE to this
◎ Static content adopt statement Dynamic content adopt statement ◎ Convert to the next JSP or Servlet ◎ JSP's implicit objects include request, response, out, session, pageContext (PageContext is produced from Factory) PageContext to share information throughout the environment, and request, response, and session can only be Currency Current Application ◎ JavaBean must require a parameter-free constructor ◎ EXTERNALIZABLE is a subclass of Serializble ◎ The properties in the JavaBean must match the rules must be set / get prefix methods such as: Property string ID; method: SETID ), getId () ◎ <%! Declare_Statement%> Use this Chinese method to declare the variables ◎ ServletContext in the servlet is different from the variables of the variables declared in the JSP, which seems to be similar to Global variables but both have significant differences. When the former is accessed in multiple Browser, the access is not a thing, and the variable defined by <%!%> Is shared by multiple Browser, why the latter is a class variable ( DISCUSS is required, ◎ tab is used to convert a jsp1.jsp page to jsp2.jsp and any output statement in JSP1 will not be executed, and the subsequent code statement is also Will not be executed. ◎ If you want to output a web page to another web page as an exception handling page, you need to add <% @ page isrrorpage = "true"%> ◎ Joining JSP files can be added directly in the root directory of the webApp, You can also use the method of servlet to perform URL mapping (Method and Servlet) ◎ ◎ Javabean's effective use range: Page: Only in the current page, it is valid, invalid in forward to other pages, return information to browser, then JavaBean invalid, Refresh this page, the JavaBean failed request: current page, and forward, including the page valid, the failure is invalid when all the pages including the JavaBean are closed, refresh the page, JavaBean invalid session, the whole webapp, only when the Browser is closed Then JavaBean is closed, refreshed this page, and JavaBean still exists, and JavaBean between different browsers is different. Application: His effective range is entirely web, other Browser calls the Javabean that is still valid, multiple Browser Access JavaBean is the same Javabean
◎ In the same page, if Submit, then they share the same httprequest ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ -------------------------------------------------- ---------------------- END-JSP: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------- Javabean: -------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------ ◎ Set the properties of Bean Can be consistent with the properties of the bean, you can use param to make a corresponding as: The name of the text box for submitting the form is Code, This corresponds to the PARAM. ◎ If the value is set, when setting the javabean property, it will not perform Conversion ◎ How to define a custom label, as follows: develop Custom Tag Handler (Sign Processor) Define Tag LibraryDefine JSP Tag ◎ PageContext is a variable that is inherited by tagsupport ◎ The extension of the label library must be TLD ◎ Skip_body does not show any label, etc. () Method ◎ Applet must be PUBLIC ◎ panel is FlowGrid
◎
◎ getParameter () method You can get the parameters set by Applet runtime ◎ --------------------------------- ------------------------------------- End-javabean: --------- -------------------------------------------------- -------------------------------------------------- --------------------------------------- -------------------------------------------------- -------- ◎ Applet often uses URL URL = New URL () frequently with the URL; connection conn = url.getConnection (); showdocument (new url ()) Displays the page referred to as URL; showdocument (URL , String) Displays the specified specified in the URL ◎ You can use JavaScript to call Applet such as: Document.Applets [0] .appletMethod ◎ Make a secure applet access program 1.Download applet from Website2.Applet Ask for a session key from servlet3.user keys in user / password4.Use Applet to encrypt password sessionKy -> binary key5.base4 encoder to encoder to encode binary key -> text key6.send text key to login servlet, which performs validation ◎ encounter Go to the SQL statement instead of the query field to use the statement: strsql = "select * from Dangan where xingming = '" name "" "; ◎ Get the name of the data field and Type Private Void getTableColumnName (ResultSetMetadata RS) md) {Hashtable [] columnHt = null; try {int columnCount = rsmd.getColumnCount (); columnHt = new Hashtable [columnCount]; for (int i = 0; i
Context.showdocument (URL, "Right");
Java.awt.checkboxcheckbox (String Label) getState ()
Layout (New GridLayout (3, 1)); CheckboxGroup CBG = New CheckboxGroup (); Add ("One", CBG, TRUE); Add (New Checkbox ("Two", CBG, FALSE); add (New Checkbox ("Three", CBG, FALSE)); ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ----------------------------------- ------------------------------------- End-applet: --------- -------------------------------------------------- -------------------------------------------------- ------------------------------------- Ant: ----------- -------------------------------------------------- ------------ ◎ FileSet's path is relative to Basedir, files in the fileset must have the property of wildcard FileSet, and there is a difference between its sub-elements, the former can have Multiple files, the latter, each element can only have a file with an incrude, or an Exclude, the reason is that there is wildcard in the include, you can use Exclude to exclude files in wildcard ** / *. Java Can you ** all files in the current directory ** current directory and all files in the lower level directory? One character included in the string is the same file name as the specified character
◎ Javac Task can use include to specify the file specified by the INCLUDE in the src directory to compile, the default SRC is the current directory of the current directory in the lower subdirectory all files ◎ can be published in the ANT to the remote server, Www.savarese.org/oro/downloadsunzip to get netcomponents.jar Copy to lib Directory ◎ Touch default will be current system time ◎ time 搓 only used in compiling files, ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ----------------------------------------- --------------------------------- End-Ant: ------------- -------------------------------------------------- -------------------------------------------------- --------------------------------------- -------------------------------------------------- ------ ◎ Locale is used to localize ◎ an internationalized example: This example forms the current country, language, time Import java.util. *; Import java.text. *;
public class TestLocale {public static void main (String args []) {Locale ln = new Locale ( "zh", "cn"); NumberFormat nf = NumberFormat.getCurrencyInstance (ln); NumberFormat cf = NumberFormat.getIntegerInstance (ln); Double Num = 9000.00; string s = nf.format (NUM); string c = cf.format (num); system.out.println (s); system.out.println (c); DateFormat DF = DateFormat.getdateInstance DateFormat.short, LN); Date Date = new date (); string sd = df.format (date); system.out.println (sd); DateFormat DF2 = DateFormat.gettimeInstance (); Date Date2 = new date () ; String sd2 = df2.format (date2); System.out.println (sd2);}} ◎ ResouceBundle need to define resouce_language_country_variable resource_language_country resource_language resource class names are defined ◎ ResourceBundle of the properties file format above, resourceBoundle will automatically go to find This file, ◎ ResouceBundle's class file, and Properties files to be all stored in the web-inf / class directory ◎ Server side is using ISO-8859-1 Decoding ◎ Charset conversion Byte [] b = request.getParameter () .getbyte ("ISO-8859-1"); string value = new string (Bytes, "UTF-8"); ◎ String deposited using UTF-8 In the database, the data in the database is unaaches to recommend ISO-8859-1, but when reading the page, it is necessary to convert, the way the conversion uses the previous way ◎ Internationalization uses UTF- 8 ◎ Localization can use GBK ◎ ◎ ◎
-------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ----------------------- RMI: ------------------------- -------------------------------------------------- ◎ Load balancing is implemented by EJB, the client of the EJB container must have the same protocol in EJB communication, if the TCP / IP cannot achieve the same effect, and the RMI can (surface understand, need to understand in-depth understanding) ◎ RMI server Relative to the EJB server, the performance is poor, does not support transactions, entity beans, etc., the RMI can be loaded with dynamic objects, and the remote object can be transferred to the local call ◎ The stub in the RMI is similar to the ORB in CORBA, orb is used for objects The inter-mail communication stub is an Escouver, and the functional parameters of the SkeletionStub existing in the load server are sent to the Request Accepting response anti-parameters. RemoteException ◎ All objects in RMI must implement the default port of Serializable ◎ RMI 1099, can be changed in the Server side ◎ RMIC is only in 1.
The 2 version will only produce STUB, the previous version will generate at least three classes in the STUB and SKELETONCLIENT: Client: Client.javaremote: Remote.javaStub: HelloIMPL_STUBSERVER Terminally has the second class Remote: RemoteImplement: HelloImplstub: HelloIMPL_STUB ◎ JUnitJava Unit Automatic Test Tool ◎ -D Defining System Variable ◎ The registration service is running on the server, you need to start the registration service first, then you can run your server, otherwise the TCP error ◎ Transmission must pass the object in RMI, Because you can't quote delivery, you must clone, you must Serializable, ◎ Static objects need to be defined on the client, the server, must implement the remote interface (no need to copy the server's implementation Class to the client) ◎ Dynamic object needs to be in the customer The machine, the server is jointly defined, and the specific implementation is determined when running. In this way, the server modifies the actual operation of the object, or adds an attribute, no need to modify the client, but the server, the client interface Must be consistent (with static objects, just only interface synchronization) ◎ That's the object is also imports remote, then the returned Stub object is the object of the remote side COPY, and the reference object does not need to inherit the Remote interface, then in the customer Operation This object is like an operation remote object, which consumes a lot of network resources. It is actually a reference ◎ Inheriting the object of the Remote interface, the object being passed back, is an object's COPY ◎ StringClass test {public static void pass (String S1) {system.out.println ("Pass Before:" S1); S1 = "HuangH"; System.out.Println ("PassAfter:" S1);} public static void main (string args ]) {String S2 = New String ("Hello"); Test.Pass (S2); System.out.Println (S2);
} ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ---------------------------- ------------------------------------------------ END- RMI: ---------------------------------------------- ---------------------------
-------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------- ◎ Struct app JSP USING STRUCTS CUSTOM TAGS (View) Actionform ActionServlet (Servlet) STRUCTS-Config.xml ◎ Sequence diagram can be converted to COLLABORATION DIAGRAM ◎ When submitting a form, it will automatically fill the JavaBean properties, as long as the form is The name is consistent with the properties of JavaBean, ◎ You can directly implement business logic through ActionFrom, or you can submit an action through ActionForm to perform business logic ◎ The JAR file you need to use must be added to the classpath to use ◎ escape through ActionServlet Follow the DO extension files All mapping is called ActionServlet ◎ Action is called directly to call an action method Execute. So when writing an action (rewritten) ◎ Action generally corresponds to multiple actions ◎ Action can be made, such as: Verifying Business Logic Transfer (Javabean) Find Mapping (Servlet) ◎ Action use mapping to map ◎ Try to use local variables in Action, it will generate synchronization synchronization: Private INT i; public actionforward execute (...) {synchronized (this) {i ;}} ◎ Using ActionForward must be in struts-config.xml Define an action tag, as follows: action> In Path, other resources such as servlet can also be specified.
◎ Global Forward can be composed of multiple Forward ◎ ActionServlet usually use Apache's own ActionServlet, developers mainly make actionform, Action Writing ◎ Action can have multiple Forward ◎ Defined in the global-forward tag for global forward Forward Forward for local forward ◎ HTML with struct's Taglib must first actsRVlet-> Generate Actionform-> Hand to Action-> In JSP Display Actionform ◎ ActionForm In the first display, it will submit RESET ◎ By defining a to specify the read The value of the Properties file, the value ◎ a web.xml can contain several Struts-Config.xml to implement modularization, but only "Struts-config.xml can only contain ◎ = ◎ tag for comparison ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ---------------------------- ---------------------------------------- JAXP: ------ -------------------------------------------------- ------------ ◎ DOM is used to generate a Document Tree, used to generate all nodes ◎ SAX generated Event, only the required nodes, not all, and the processing logic is relatively simple. You can use SAX ◎
Public void ejbload () {string SQL = "SELECT * from Device ...";
// // preparestatement // resultset name = rs.getstring (); description = rs.getstring () invoiceID = rs.getstring ()
Context ctx = new context () invicelocalHome IHOME = (InvoicelocalHome) CTX.lookup ("..."); invicelocalInvoice = iHOME.FindByPrimaryKey (InvoiceDID)} Due to one-to-one associated relationship causes insertion record, delete record The case where interlock is generated, then the Cascade delete can be operated by cascading.
The relationship between the other entity beans in the entity bean has been implemented by the above statement. It must be set first in the sessionBean because the entity bean is not exposed to the user: public class devicemangerbean imports sessionBean {Private DeviceLocalhome DeviceHome; Private Invoicelocalhome invoiceHome; public voic saveDeviceWithInvoice (deviceVO deviceVO, invoiceVO invoiceVO) {try {DeviceLocal device = deviceHome.create (deviceVO.name, deviceVO.description); InvocieLocal invoice = invoiceHome.create (invoiceVO.invoiceID, invoiceVO.amount); device.setInvoice (Invoice); Invoice.SetDevice (Device);} catch () {}
}
} CMP can be used to construct a one-to-one relationship with the following method: Public Abstract Class DeviceBean Implements EntityBean {Public Abstract Invoicelocal GetInvoice (); Public Abstract Void SetInvoice (InvoiceElocal i);
.....
◎ ◎ One-to-many relationship representing a pair of relationships of the department and equipment PUBLIC CLASS DepartmentBeans EntityBean {public void ejbload () {}} ◎ Can I be a physical bean when it is associated, and another entity bean Is CMP? ◎ You can simulate a one-to-one relationship into one-on-one relationship. By adding a new bean, the specific implementation method is as follows: When designing the data sheet, because there may be many more relationships, then The third sheet must be used to abstract a pair of relationships, thereby describing many-to-many relationships.
◎ Multi-to-many relationship If one party does not define the domain, do not write GET / SET, then generate unilaterality ◎ If you want to maintain the same table, the container will generate another table maintenance relationship ◎ Call in the associated GET / SET association table name, is inert load ◎ Call GET method will automatically call ejbload ◎ The aggregation association is better than me and my book, but I am still, so I am still here. The association is like a order and order entry, the order is lost, and the order entry should also not exist. There is meaningless, the order entry depends on the order ◎ BMP's Cascading delete is the collection of associated beans in the REMOVE method, Iterate the collection of EJBOBJECT to call its REMOVE method to delete CMP is relatively simple, as long as it is deployed, define tag ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ -------------------------------------------------- ---------------------------- {◎ One-on-one relationship, how to solve this problem due to the interlocks of both sides ◎ About multi-to-many relationships need to be familiar with ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
} ------------------------------------- ---------------- JMS: ---------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------- ◎ JMS After issuing a message, the server will immediately ring the user request ◎ JMS can Putting locally, you can also put it in remote other servers ◎ Multiple recipients, multiple senders ◎ The so-called binding is that your server side must tell the other party to communicate ◎ Targeting the definition of the formation and interface ◎ Loosen no need to define the setup and interface, directly use JMS, pass the JMS to link middleware ◎ MOM-Messaging Oriented Middleware, Producers and consumers to link ◎ MOM products IBM MQSerials ◎ loose customization is through middleware ◎ ReceiveD uses synchronization communication ◎ Using MessageListener is asynchronous communication, only need setmelistener listner (MessageListener Listener) OK ◎ You can use durable persistence to save JMS messages ◎ Adding queue and topic ◎ lasting Subscriber and storage forwarding will only be effective, otherwise, when the case occurs, it will not be sent to the client, but the persistent subscriber will receive the email, this is the difference between the two ◎ JMS can set priority Level 9, level 4 is default ◎ JMS can set the message ◎ MDB EJBCREATE is mainly used to access SessionBean, you can add related findings InitialContext ◎ Do not add systemic systemic for Throwejbexception in MDB onMessage Abnormal, this will lead to poison news, because the system will think that you have a first-system level exception, then the system will roll back to the current operation, so the destination will think that Bean is not accepted, so it will continue, bean this Continuous Callback, this will lead to the production of poisonous messages
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ -------------------------------- --------------------------------- WebService: -------------- -------------------------------------------------- - ◎ In the binding-, you must define the statement related to Encoding ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ -------------------------------------------------- ------------- Basic: ----------------------------------- ------------------------------ ◎ The difference between Collection and Collections is that the former is a class of all inherited interfaces. Collectes example and the latter is a framework, integrated all collection classes ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ --- -------------------------------------------------- --------------------------- {◎ There is DurableSubscriber in Topic, which can reach the system crash by storage forwarding, and the same client can receive a message. That is, then there is also the same durable in Queue. If you don't solve this problem, ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
-------------------------------------------------- ------------------------- Question: ----------------------- -------------------------------------------------- - {◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
}
{servlet: EJB: J2EE: ◎ What is the difference between BMP ◎ session bean and entitiy bean? ◎ How Servlet generates XML file ◎ Whether the so-called stand-alone servlet container is a single process program, he is a web server ◎ SERVLET container in the process, maybe a web server, then open a process is the child process to run JVM Create a servlet process? ◎ Why in MySQL creates a good user, the database cannot be connected ◎ How to connect the structure type in the database to correspond to the type corresponding to Java ◎ If the query statement taken from the HTML form is set to set the setString when prepreg stating is set (reprint) ◎ Custom mark How to hide the details of JDBC ◎ How to use JSTL, what role ◎ In the servlet to return the return to the user in HTML, but so embedding is too trouble, what is good method ◎ servlet What information does config present? ◎ Subclass inherits the construction method of the parent class ◎ How to use the index to make the field of the lookup table faster
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎
-------------------------------------------------- ----------- JSP:
◎ Why will I put a cache in the JSP will be wrong? ◎ <% @ Page ContentType = "text / html"; charset = "ISO-8859-1"%> There is also a fault ◎ PageContext and Application is whether servletContext is different · ◎ How to use cookies, commercial code view ◎ How to use Hide fields Conversation tracking ◎ No need to configure the connection pool in MySQL, DataSource, as long as WebApp is configured by configuring server.xml and web.xml to get the effect of the connection from the connection pool through DataSource? ◎ Find about context (ie Context API Description) ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ---------------- -------------------------------------------------- --------- End-questions: ------------------------------------- -------------------------------------- ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ---------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------- Ant: ◎ How to use ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎ ◎