Based on WebSphere MQ transceiver news program
Abstract: This paper summarized in the following several aspects of the company's commercial communications IBM WebSphere MQ middleware, first of all, to explain the news, Queue and Queue Management for the significance of this icon adopted on the basis of the WebSphere MQ expounded by conducting communications using communication mechanisms, as well as the communication mechanism of the communication and the relationship between the applications. Followed by an example to illustrate the use of Java in the preparation process, how to write news queue. Finally a brief introduction to the advantage of MQ and development prospects.
Key words: communication middleware, queue, queue management, MQ
WebSphere MQ (hereinafter referred to MQ) is IBM's prestigious commercial communications middleware. It is a worldwide widely used in many large enterprises. It provides an industry-standard, secure, reliable messaging system. MQ from a basic messaging system and an application interface. MQ applications using the API (Message Queue Interface MQI) function and Queue Management (MQ run time of the procedure) communications. Queue Manager at work, it needs to use objects such as queues and access. At the same time, Queue Manager is an object. Figure 1 shows the MQ application in the run-time icon. 
Figure 1 run time of MQ1
News is an information unit, which was composed of two parts: a process to another process, the application data as well as news or information described at first.
Descriptors used to identify news sources (message ID), it also includes some control information, such as source type, time expired news, news priority, and so on.
The maximum length of a message for the 100 MB, the biggest news default length of 4 MB. News depends on the maximum length MQ version. MQ support for the fifth edition of the news maximum length of 100 MB.
Queue is a safe storage news, information storage is generally sequential. Because the information stored in the queue, so applications can be at different speeds at different times, different locations and independent operations.
Message Queue communication between applications is a way of communication. Specific applications in the absence of physical connections or connect circumstances, can be passed into the queue to read out information or communication, that is, not through mutual process between calls, but through the queue to send data communication. In this communication mode, the application does not need a complicated. For asynchronous messaging, procedures do not specifically sent to the back-awaited updates, but can be dealt with under an event. Correspondingly is synchronous communication in dealing with the news of an event before it has been waiting for the return updates. For users, the underlying agreement is transparent. Users only need to consider conversation or data entry procedures.
JBuilder2005 unit testing bundled with a number of cases
We only Subsection category generated a test case in this section, in accordance with the aforementioned method, Test Case for the wizard to create a test case StringUtils category code framework and the preparation of test methods, and then tied up the two Test Case In combination with a test suite in the operation.
StringUtils categories selected through File-> New ..-> Test, double-click the icon for the Test Case StringUtils category string2Array () method to create test cases, test cases to accept the default category of TestStringUtils.
Test Case Generation Wizard in the framework of the code to delete the test firmware (because it is the static method, there is no need to use firmware), the deletion of the member variables StringUtils statement setUp () and tearDown () method. And the definition of a category isArrayEquals (), delete the wizard generated testString2Array () method of testing the content of the preparation of their own testing code, with the ultimate code as follows:
Code wrong list! Documents do not specify the format of text. TestStringUtils: StringUtils kind of test case
1. Package chapter25;
2. Import junit.framework .*;
3. Public class TestStringUtils extends TestCase
4. (
5. Public void testString2Array () (
6. String str1 = null, str2 = "" str3 = "a" str4 = "a, b, c," str5 = ", a, b,";
7. Arr1 String [] = null, arr2 = {""}, arr3 = ( "a"), (arr4 = "a" and "b" and "c"),
8. Arr5 = ( "", "a" and "b", ""), (trimArr5 = "a" and "b");
9.
10. AssertNull (StringUtils.string2Array (str1, ',', false));
11. AssertTrue (isArrayEquals (arr1, StringUtils.string2Array (str1, ',', false)));
12. AssertTrue (isArrayEquals (arr2, StringUtils.string2Array (str2, ',', false)));
13. AssertTrue (isArrayEquals (arr3, StringUtils.string2Array (str3, ',', false)));
14. AssertTrue (isArrayEquals (arr4, StringUtils.string2Array (str4, ',', false)));
15. AssertTrue (isArrayEquals (arr5, StringUtils.string2Array (str5, ',', false)));
16. AssertTrue (isArrayEquals (trimArr5, StringUtils.string2Array (str5, ',', true)));
17. AssertFalse (isArrayEquals (StringUtils.string2Array (str5, ',', false),
18. StringUtils.string2Array (str5, ',', true)));
19.)
20.
21 / / array judge whether the same two characters
22. Private boolean isArrayEquals (String [] arr1, arr2 String []) (
23. If (arr1 == null | | arr2 == null) (
24. If (arr1 == null & arr2 == null) (
25. Return true;
26.) Else (
27. Return false;
28.)
29.) Else if (arr1.length! = Arr2.length) (
30. Return false;
31.) Else (
32. For (int i = 0; i <arr1.length; i + +) (
33. If (! Arr1 [i]. Equals (arr2 [i])) (
34. Return false;
35.)
36.)
37. Return true;
38.)
39.)
40.)
Although the JUnit framework for a number of assertEquals () Heavy methods, but there is no reference to the two string array assertEquals () override, we need to judge their own definition of a string array is the same method: isArrayEquals (), such as section 22 ~ 39 firms indicated.
In testString2Array () method, we provide the most coverage of the string test (special string conversion and its target), as in the 6-8 trip indicated. After calling assertXxx () testing rules. You can also, as a test case in the same TestSubsection run it.
NOTE:
If you file in the content pane TestStringUtils Right-click on the label, found only in the pop-up menu Run Test using "TestSubsection", in the Project-> Project Properties …-> Run-> Run settings page in the cancellation TestSubsection Operation Context Menu settings of the options, otherwise it will run the original TestSubsection test case.
Includes only about 10 categories of small projects may not use the test suite, the only run through the test case individually to complete the test can be, but contains more of a test case for the project, you can take the test suite to great convenience, it is bundled with a number of test cases run to a 100 call and should be a batch-processing effects.
Java garbage collection for the use of skills
Refuse collection (Garbage Collector, GC) is a modern virtual machine software technology an important component of its design in the virtual machine running on a great impact on application performance. Java Virtual Machine (JVM). Net framework has been providing this function. Below we briefly talk about Java Virtual Machine in the refuse collection Principle.
Java memory management actually is the object management, including the distribution and release objects.
For programmers, the object using the new keyword distribution; release object, as long as the object of all quoted assignment will be null. For GC, when programmers to create objects, GC began monitoring the address of this object, the size and use. Normally, a directed graph GC way to record and manage the reactor (heap), all objects. In this way identify the object is "up", which object is "not up to." When GC identify targets for "up to", it is incumbent upon the recovery of these GC memory space.
GC in the JVM is usually by one or a group of the process to achieve, and it is also the same as occupiers and users heap space occupied when running CPU. When running GC process, the application to stop running. Therefore, when GC longer running time, the user can feel Java programs standstill, the other hand, if the GC running time is too short, it may be targets of the recovery is too low, which means that there are a lot of recovery should not be the object of recovery, still occupy large amounts of memory. Therefore, in the design of the GC time, we must pause and recovery time between weigh.
According to the working principle of GC, we can pass some techniques and ways to GC operation more efficient, more in line with application requirements.
The following are some of the procedures designed some suggestions.
1. Is the most basic recommendations as soon as possible the release of useless object.
Most programmers in the use of temporary variables, the variables are used to withdraw from activities in the domain (scope), automatically set to null.
2. Minimise use finalize function. Finalize function is provided to the Java programmers to release a target of opportunity or resources. However, it would increase the workload of GC, and therefore minimize the use of resources finalize modalities recovery.
3. If you need the use of regular use of picture, you can use the soft application types. It can be preserved as far as possible picture in memory for the procedure call, without incurring OutOfMemory.
4. Attention to the aggregate data types, including arrays, trees, maps, data structures such as linked list for such objects, GC recovery generally less efficient. If the program permits, as soon as possible without the application of object Fu null. This will speed up the GC work. Therefore, if necessary, procedures used in the data structure must be as easy as possible.
5. When the wait for certain procedures, programmers can manually System.gc (), notify the GC running, but does not guarantee that the Java language specification will be the implementation of GC.
Java multi-threaded programming combat essence of the restrictions priority
Restrictions thread priorities and scheduling
Java threading model involving dynamic changes can thread priority. Essentially, the priority of threads from 1-10 among a number, the larger the number that the task becomes more urgent. JVM standard first call of high-priority threads, before calling a lower priority thread. However, the standards have the same priority thread processing is random. How to deal with these threads depends on the grass-roots level operating system strategy. In some cases, the priority the same time of the threads running in the other cases, the thread will always run to the end. Remember, Java support 10 priority, grass-roots support for the operating system may have to be the priority of much smaller, it would cause some confusion. Therefore, priority will be only as a very rough instrument. Finally control through wise use of yield () function to complete. Under normal circumstances, please do not rely on the thread priority to control the thread state.
Summary
This article illustrates the process of how the use of Java threads. Thread like whether we should use this more important issue in the very process depends on the application at hand. Decide whether or not the application of the use of multi-threading method is, it is estimated that the code can be run in parallel. And remember the following points:
Multithreading will not increase the use of CPU capacity. However, if the use of local JVM thread fulfilled, the threads can be different in different processors running at the same time (multi-CPU machines), so that multi-CPU machines are fully utilized.
If your application is compute-intensive, and the function of the CPU constraints, the only multi-CPU machines from the more threads can benefit.
When the application must wait for the slow resources (such as network connections or database connection), or when the application of non-interactive, multi-threading is usually beneficial.
Internet-based software is necessary is a multi-thread, otherwise, users will be feeling applications reflect slow. For example, when a large number of customers to support the development of the server, multi-threaded programming can more easily. In such circumstances, each thread can be for different customers or customer group, so as to shorten the response time.
Some programmers may be in C and other languages used in the thread, the thread in those languages have no language support. These programmers may usually be on the threads do lose confidence.
Java Servlet Programming and Application of seven
天æžIT information SMS services small computer skills
Java keyword navigation network J2ME mobile phone games JavaCard Struts JAAS EJB JavaMail game Analyzer J2EE Design Pattern
Server-side includes (Server-Side Includes) is a Web page design in a commonly used technology, in a lot of web output systems, often have some of the components of the Web page over at the same time. Server-Side Includes Java Server architecture is a high-level features, it can be embedded in HTML documents servlet so you can use one or more servlet component to the final HTML document, which contains a special output Servlet HTML tag and the extension of documents. shtml said.
Servlet marked script:
<Servlet_name code servlet name = = = Servlet.class codebase path name of a parameter value = 1
Name 2 = parameter values 2
……..
Name parameter values n = n>
<A name = param name = value parameter values 1
2 param name = name = value parameter value 2
……..
Param name = name n value of parameters n =>
</ Servlet>
Programming ideas and skills: Below is a complete server contains simple (SSI) example, the entire shtml pages from two Servlet component, a Servlet is Header.java, on behalf of the first page, the main function is to Title Information is the first two Servlet Footer.java behalf footer, the main function is to show footer copyright information; Together.shtml is to combine two Servlet display server contains, it should file from the root directory (such as wwwroot) loading.
Header.java standard of the first page of the source code as follows:
Import javax.servlet .*;
Import java.io. *;
Public class Header extends GenericServlet
(
Public void service (ServletRequest req, ServletResponse resp)
Throws ServletException, IOException
(
Res.setContentType ( "text / html; charset = gb2312");
PrintWriter out = res.getWriter ();
/ / Get the title of the page. Set to empty string if
/ / No title parameter was given
String titles [] = req.getParameterValues ( "title");
String title = "";
If (titles! = Null) (
If (titles.length> 0) (
Title = titles [0];
)
)
/ / Format the standard header
Out.println ( "<head> <title> welcome your arrival </ title> </ head>");
Out.println ( "<H1 align='center'> welcome your arrival *** *** </ H1> <hr>");
/ / Wrap up
Out.flush ();
Out.close ();
)
/ **
* <p> Returns information about this servlet
* /
Public String getServletInfo () (
Return "Header";
)
Public void init (ServletConfig cfg)
Throws ServletException
(
Super.init (cfg);
)
Public void destroy ()
(
Super.destroy ();
)
)
Standard footer Footer.java the source code as follows:
Import javax.servlet .*;
Import java.io. *;
Public class Footer extends GenericServlet
(
Public void service (ServletRequest req, ServletResponse resp)
Throws ServletException, IOException
(
Res.setContentType ( "text / html; charset = gb2312");
PrintWriter out = res.getWriter ();
/ / Format the standard header
Out.println ( "<hr>");
Out.println ( "<p align='center'> <i> Copyright Company </ i> </ p>");
/ / Wrap up
Out.flush ();
Out.close ();
)
/ **
* <p> Returns information about this servlet
* /
Public String getServletInfo () (
Return "Footer";
)
Public void init (ServletConfig cfg)
Throws ServletException
(
Super.init (cfg);
)
Public void destroy ()
(
Super.destroy ();
)
)
Together.shtml server contains the source code as follows:
<html>
<servlet Code=Header>
<param Name="title" value="GOOD">
</ Servlet>
<body>
<dir>
This a study programmer!; <br>
Are you Interested in?; <br>
Let's go Research. <br>
</ Dir>
<servlet Code=Footer>
</ Servlet>
</ Body>
</ Html>
Java Applet based on the data entry type
Java language is similar to the C language and the data-processing capability that its data types and different kinds of computing a more complete definition, Java internal data types can be divided into four categories: integer, float, character, Boolean type. Integer and floating-point one two categories according to the different length and accuracy, can be further divided into byte, int, short, long, float, double, and a few specific types. Concrete can be found in the table below:
The basic data types Java
Data type keyword occupied bit numerical range default Boolean boolean 8 true, false false character byte 8 -128 - 127 0 integer type char 16 0 - 65535 '\ u0' short integer short 16 -32768 — 32767 0 integer int 32 -2147483648 - 2147483647 0-long 64-9.22E18 cosmetic - 9.22E18 0 floating-point-type float 32 1.4013E-45 - 3.4028E +38 0.0F-double and double-precision 64 2.22551 E-208 - 1.7977E +308 0.0D
1. Boolean
Boolean there can be only two true and false values, representing Boolean logic of the "true" and "false."
2. Integer and character
Integer is the integer mathematics, and character is the characters'0 'and' a ', are all characters. We should pay attention to two points:
1) the use of integer variables when attention should be paid to its maximum and minimum ranges, if the actual value exceeds the scope, there will be overflow error. Especially in the time to do factorial attention. If the machinery is not very good, but also save resources machines, the only type int, not long-use.
2) the value of character variables can be used character constants (in single quotes from the width of the individual characters), it is also possible integer constant. For example, the following two sentences identical to the role:
Char char_A = 'A';
Char char_A = 65;
This is a mechanism for the computer problem, as it rounded characters of the preserve. Because it more convenient.
3. Floating-point type
Float and double data types are floating-point, the process of using them to represent the minority. The computer used to calculate decimal floating-point, called floating-point data types. Because of this reason, the computer calculated the decimal point after the n-bit (depending on the specific case may be), and the actual numerical there will always be some error. It will only to try to close it, the more the median about precision. Float is 32, it should be enough, and if not, it will only use double, but also conserve resources.
Procedures in the scientific notation that is. For example: 3.14 E3 said that 3140, and 3.14 E-2 said that 0.0314. If there is a constant behind the 'd' or 'D', then that is double-. Pay site, should be written like this:
Float f1 = 3.14f;
Double f2 = 3.14d;
4. Type conversion
Java programs, constant or variable data type conversion from one to another data type, called type conversion. It has two, one is from the low to high as the default type conversion. For example, from the char to int type of conversion from the conversion to long-int type, are machines can be directly implemented. For example:
Int i = 5;
Long j = i;
If high into low, there will be a problem. Understand this truth, how do? When necessary, for example, to float into int type, it is only through the mandatory conversion type. For example:
Float f = 3.14f;
Int i = (int) f;
Long j = 5;
Int i2 = (int) j;
Of course we should pay attention to is high time into position, the scope of data to the status of, for example, can not be a major transformation of char type integer 30000 because it exceeded the scope. Results will mistake!
Well, look at one example:
Import java.awt .*;
Import java.applet.Applet;
Public class Leixing extends Applet
(
Boolean b1 = true;
Int x = 10;
Char c = 65;
Float f = 3.14f;
Public void paint (Graphics g)
(
G.drawString ( "Boolean:" + b1, 2,20);
G.drawString ( "integer:" + x, 2,40);
G.drawString ( "character" + c, 2,60);
G.drawString ( "floating-point data types:" + f, 2,80);
)
)
Windows2003 integrated IIS6 and Tomcat5
First start with my system, Windows 2003 Server Chinese version IIS6 + + Tomcat5.0.14, JDK 1.4.2 install directory is C: \ JDK, Tomcat install directory is C: \ Tomcat, and the environment variable JAVA_HOME TOMCAT_HOME have set up good and at their respective installation directory. (Note that all the documents involved in the next tomcat path to please amend their own path for their own Tomcat)
Tomcat5 installation and IIS6 I do not say, a lot of on-line documents, on the assumption that at this time we have installed a Tomcat5 and IIS6 and can operate independently, the two sites are at the default C: \ web directory.
Now we have to do is to http://apache.linuxforum.net/dist/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.2-win32-IIS.zip to download JK2, from the IIS and Tomcat JK2 responsible for the communication, isapi_redirector2.dll get untied, I put it in the C: \ tomcat \ iis under (directory casually).
Next Tomcat installation directory in the conf directory to build a workers2.properties file, copy the following into this NEE preservation. =".." Attention of the file path should use the "/" Oh!
[Shm]
File = c: / Tomcat/logs/jk2.log
Size = 1048576
# Practical use at all the localhost 8009 and replaced by your own IP and port
[Channel.socket: localhost: 8009]
Port = 8009
Host = localhost
# Define the worker
[Ajp13: localhost: 8009]
Channel = channel.socket: localhost: 8009
# Uri mapping
[Uri: / *. jsp]
[Uri: / web / *]
= Ajp13 worker: localhost: 8009
# Define the worker
[Status: status]
# Uri mapping
[Uri: / jkstatus / *]
= Worker status: status
After jk2.properties edit documents, which confirm whether there is such a:
Request.tomcatAuthentication = false
Next to edit the registry directly to build a iis.reg documents, the following paragraph and then double-click on the preservation of residences into iis.reg the information into the registry. (Note to the Tomcat path into the path of your Tomcat)
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Apache Software Foundation \ Jakarta Isapi Redirector \ 2.0]
"ServerRoot" = "c: \ \ Tomcat"
"ExtensionUri" = "/ jakarta/isapi_redirector2.dll"
"WorkersFile" = "c: \ \ Tomcat \ \ conf \ \ workers2.properties"
"LogLevel" = "INFO"
Then open the "My Computer -> Control Panel -> Management Tools -> Internet Information Services Management," and inside select "Web site" in the default Web site (the default Web site, I assume at the C: \ web), in its last point Right-election "attributes" in the pop-up box on page select "ISAPI filter," points "add", the name filters fill jakarta, the executable file in your isapi_redirector2.dll fill the absolute path. "OK" after the point of "OK" Close attribute page. Again in the "default site" on the right button and select "New" -> "virtual directory", alias fill jakarta, the next step, the path chosen your isapi_redirector2.dll storage directory, my C: \ tomcat \ iis, Next, remember that the authority of the "executive" that the check, well, complete.
If you are using an IIS5 so, we can conclude here, but not IIS6 End to.
"Internet Information Services Manager," "Web sites" in the "Web services expansion" right on point choose "Add a new Web service to be extended," the pop-up box filled Tomcat extension (in fact, do not matter), " requested documents "choose" Add "and then find your isapi_redirector2.dll after" determine. " "Settings allow for the expansion of the state"打上勾determined.
Well, the end configuration. Now we start Tomcat5 and net start w3svc start IIS6. Http://localhost:8080/hello.jsp type (I of this paper is on the c: \ web under) and see us! Http://localhost/hello.jsp then see if the results of the implementation of both the same, congratulate you, the successful integration!
But perhaps this is not enough, then you confirm the following points:
1. Your "Internet Information Services Manager" -> "Site" -> "default site" -> "attributes" -> "ISAPI filter" in jakarta whether the upward green arrow? If it is red, check before you do have fewer configuration or wrong and what re-configured again
2. Confirm your Tomcat installation directory under the common \ lib directory tools.jar whether there is a document (Tomcat5 seems to be some, but is not Tomcat4, online documentation rarely mentioned the matter, which I have repeatedly allocation failure), if not from the JDK lib a copy of the past.
3.IIS directory at the best and Tomcat at the same directory, or will happen images and other resources could not find documentation. (This does not affect the implementation, huh!)
4. English document also referred to IIS6 should be set to IIS5 isolation mode "Internet Information Services Manager" -> "Site" -> "attributes" -> "service" and "isolation mode of operation to IIS5.0 WWW service "打上勾. However, I can not check normal use, if you can be configured unsuccessful try this.
Is not enough? Good, we are relentless, open the case, remove hard drive, thrown to the ground, I hit, hit, hit! I dare you to look at the top (to open a joke, but before I do configuration after many failures some frustration and regret)
CORBA object life cycle of the life cycle assessment
Assessment criteria
We have already discussed the CORBA object to the life cycle, including life-cycle events, in the early and late binding discussion, and the general realization of CORBA object classification. Clearly, the ORB users want applications to support all these CORBA object life cycle of different aspects of the effective realization. ORB the object adapter (OA) to provide such support. Below definition of a series of assessment criteria, these criteria can be passed on the target adapter involving CORBA object life cycle support of the analysis. Then users to adopt these different assessment criteria, and their application to the BOA and the POA and the object adapters.
Adapter structure - is the most important aspect of the general structure of adapter.
Object identifier - CORBA Object Identification System is not a small problem, we must carefully test how specific ORB and CORBA object support for the concept of object identifier.
Early binding - users need to test different ORB and support early binding approach. Here it is worth noting that bind and create inter-servo object to what extent the association.
Binding late - different ORB for late binding mechanisms must be provided by the test, especially with regard to support Persistent Object Application of the usefulness of the procedure.
No state servo target - the user wants to test ORB took the realization of a state servo being targeted for their support. The idea is no state servo object, users do not really need each CORBA object on behalf of a servo instance - a separate servo target number of CORBA object can be used as transient capsule, and in each set on the basis of the request CORBA object of a special logo.
Servo a state object - As discussed earlier, a state of the servo target, ensuring that users do not have to re-activate these requests each servo objects, and object activation servo not exceed a certain threshold, which is usually very important.
EJB Technology Tour (c)
天æžIT information SMS services small computer skills
Description: the fine start, the hard Qiao. Titans and the difference between the rookie is: what experts know, the rookie know that some. Small collection of the latest computer skills Peculiar Tricks Campaign lets you easily set foot on the road master. (First month free)
EJB common pattern of development
This paper WebLogic application server as an example to other server process almost.
In the platform based on J2EE, EJB development is most important. This paper tried from several aspects about the development of a common model and methods. Both to the beginner or experienced friends have a certain reference value.
As we all know, EJB for beginners, is a headache for both development and release, testing, especially Entity Beans more headaches, this paper introduces some for the design, development, testing methods for reference .
WebLogic platform, the industry as excellent products, a lot of their own to provide excellent tools to develop, publish J2EE applications. In addition, and other integrated development environment, such as JBuilder, VisualCafe and support for the entire software development process Together ControlCenter. With industry support for such an approach, the application makes WebLogic platform more widely.
The first approach:
With the general software development EJB, for example, JCreator, EditPlus can. For beginners, this way better, to the mechanism of the EJB a more in-depth understanding. Preparation of the latter, all the EJB source files placed in a src directory, and in the current directory (src directory and parallel) to establish a directory of deployment, and written description of the configuration file ejb-jar.xml and weblogic - ejb-jar.xml deployment copy directory under. Then you can copy the following batch file src directory to the parent directory, then run the batch file. (Of course, you need to set up classpath before this and related variables, following their scrutiny will know)
/ / Compiler package for the batch file compilejar.bat EJB:
Mkdir classes
Mkdir lib
Mkdir classes \ META-INF
Copy deployment \ *. xml classes \ META-INF
Javac-d classes src \ *. java
Cd classes
Jar cf .. \ lib \ temp.jar *
Cd ..
Cd lib
Java weblogic.ejbc-keepgenerated temp.jar xxxEJB.jar
Del temp.jar
Cd ..
/ / Finally, we have a XXXEJB.jar, that is, can be used directly in WebLogic in the document issued by the jar
EJB compiler which we used weblogic.ejbc old version of the WebLogic use the weblogic.ejbc20. (Note: WebLogic EJB compiler is in the pre-compiler, that is to say will generate EJB the goal of all necessary documents, but some application server that is not the case, for example, through the use JBoss reflex mechanism in the operation of dynamically generated!)
We thus have been xxxEJB.jar issued to WebLogic. If we do not help other tools, only WebLogic their own tools, then there are two ways to choose. First, through Console Desk, this way the most simple, you should know how to make a whole. Second, the adoption of the WebLogic startWLBuilder.cmd tools. To start after the first connected to the WebLogic, in Figure 1 (abbreviated) indicated. Step is the main menu -> Tools-> Connect to Server.
Then connected to the server, open to deploy the EJB or Web Application. Then you can issued. Both approaches can be. Of course, individuals like the second, because it can check whether your EJB packaging meets the requirements, at the same time you need to revise the allocation of EJB descriptor very simple, graphical interface of this operation is very convenient, and greatly enhance the success deploy rate.
The second approach:
Adoption of a way, I think you understand a lot of things. Certainly, we would like to, this is a way of comparison trouble, at least two tools need to be replaced, uncomfortable. Well, the next we introduce second approach. And the IDE integration. JBuilder Enterprise provided by the integration of the more intelligent we can complete the work. WebLogic on JBuilder and the integration process, Borland website. Http://bdn.borland.com/, there are two introduced WebLogic JBuilder 6 + + 6.1 and WebLogic 7.0 JBuilder 7 of the White Paper.
The introduction of this approach, making J2EE application development, publishing and testing are in a unified environment with, and can greatly improve the efficiency of production and enables developers can focus on the software itself.
The third method:
Now development tools, integrated development environment to slowly and software pre-needs analysis, system modeling link, which is also the difficulties faced by the IDE. For example, JBuilder provides a limited number of UML plans to support the development of software products. As Together ControlCenter, because its software engineering support for the whole process of high, so slowly popular.
Together ControlCenter the built-in BEA WebLogic Application Server PlugIn enables the support modeling, development, deployment J2EE application tool was developed in WebLogic platform software developers of all ages. Figure 2 (abbreviated) indicated.
The platform supports developers in the development phase of the conversion application server, whether it is the different versions of the same server or different servers.
In summary, this paper introduces three kinds of EJB development, and it is also in the practical application of the model used, developers can according to their own preferences to choose different models.
Use Java Applet broadcast sound files
Applet use of audio takes first definition AudioClip object, GetAudioClip method can give voice AudioClip object, if only want to sound player again, should call AudioClip category of play, if you want to cycle to sound clips, should use the loop method of AudioClip .
(1) of audio files
Various image formats, such as BMP, GIF and JPEG. The same sound files, WAV and AU is the most commonly used two sound files. Java supports only the current AU document, but the Windows environment it is the common WAV file, it's best to have a WAV file can be converted to AU document tools.
* The audio category AudioClip
AudioClip type used in the Java Applet audio, such java.Applet package in a definition.
Below demonstration of how to use voice AudioClip class player.
Packed in a paper entitled Sample.Au voice and audio (SoundDemo.java)
/ / Source list
Import java.awt .*;
Import java.applet .*
Public class SoundDemo extends Applet
(
Public void paint (Graphics g)
(
AudioClip audioClip = getAudioClip (getCodeBase (), "Sample.AU");
/ / Create and use objects AudioClip / / getAudioClip its initialization method.
G.drawstring ( "Sound Demo!", 5, 15);
AudioClip.loop ();// AudioClip use the loop method of recycling players)
)
To the following statements Add SoundDemo.HTML HTML document for the operation to prepare for the Applet.
<HTML>
<TITLE> SoundDemo Applet </ TITLE>
<APPLET CODE="SoundDemo.class" WIDTH=300 HEIGHT=200>
</ APPLET>
</ HTML>
Compile and run the Applet, the screen will show a Applet window and accompanied by music. Applet closed when music termination.