WebLogic 6.1 / 7 + + Oracle9i development JBuilder7
Abstract: WebLogic 6.1 / 7 + + Oracle9i development JBuilder7
: WebLogic6.1 in the configuration database
(1) under the directory in BeaHome/weblogic6.1/config/mydomain setenv.cmd CLASSPATH set in the document (set CLASSPATH =….) Plus jdbc drivers, such as: $ ORACLE_HOME90 \ jdbc \ lib \ classes12 . zip.
(2) start Weblogic6.1
(3) configuration connection pool, start Weblogic6.1 console. Click on the left Connection Pools link, and then click on the right of the Configure a new JDBC Connection Pool … connected. An Input:
Thin: (a pure Java that access to the database, do not use the client support)
Name CapPool
URL jdbc: oracle: thin: @ 172.20.54.234:1521: ora9i
Driver Classname oracle.jdbc.driver.OracleDriver
Properties user = msc
Password = msc
Jdriver: (Access database is used to support local Oracle client)
Name CapPool
URL jdbc: weblogic: oracle
Driver Classname weblogic.jdbc.oci.Driver
Properties user = Hillfree
Password = Hillfree
= Server network services (this is their own machines configured Oracle database connection string, each person may be different)
GBK Weblogic.codeset = (Chinese that the problem)
(4) Click Connectios labels
Initial Capacity: 1
Maximum Capacity 10
Capacity Increment 2
Login Delay Seconds: 10
Refresh Period 10
Shrink Period 15
Prepared Statement Cache Size 10
(5) Testing then click on labels
Test Table Name
Dual
At the same time the two selected checklist.
(6) Then click Targets labels
Available from the election to myserver chosen. Select the Apply button.
(7) Create Data Source
Click Data Sources labels left, and then right click on Configure a new JDBC Data Source Link.
[Note]: a new workflow engine needs Tx DataSource, and selected two-phase commit.
Input in the Configuration tab
Name WFDS
JNDI Name WFDS
Pool Name CapPool
Then click Targets labels
Available from the election to myserver chosen. Select the Apply button.
(8) restart Weblogic6.1
NOTE:
1. If activated Weblogic menu, it should be in the computer system path variable system inside with a $ WL_HOME \ bin \ oci901_8; (here may not be the same letter.) To support Oracle Driver
2. If Jbuilder to start Weblogic, should be amended in the Project -> Project Properties -> Run-> Ejb the value of the VM parameters, which should be revised as part of java.library.path: java.library.path = $ WL_HOME / bin / oci901_8; E: / BeaHome/wlserver6.1/bin remaining unchanged. (Note letter)!
Can be set up in the Config Server
JBuilder7 in the desired configuration
(1) installed Jbuilder7.0 and Weblogic6.1
(2) In the Tools menu, select Configure Server, WebLogic 6.x labels choose to fill out the forms inside that WebLogic Server 6.x installed at those parameters. Pages bottom of the Use external compller would not have chosen to determine the return.
(3) In the Tools menu, select Configure Libraries, select New button, the pop-up dialog Name input Oracle (casually name), choose the Add button, the installation of the jdbc Oralce Client \ lib directory classes12 choice. zip. Back to choose ok.
(4) In the Tools menu, choose Enterprise Setup, select Database Drivers labels, and then select the Add button, select Step built lib (Oracle).
(5) in the Project menu, select Default Project Properties, select Servers labels, and then choose… button, select Weblogic Application Server 6.x, select ok to return.
(6) can be followed on the EJB development. Proposed development with EJB2.0.
(7) database is currently installed in the 172.20.54.234, service monitoring fracture reservations default 1521, SID is ora9i, hillfree user name, password is hillfree.
NOTE:
Write EJB, if compiler error, it is possible for the system is variable TMP, TEMP, classpath expressed by the path containing spaces. Contain spaces removed from the path, the compiler may be normal.
JB use when developing Web Services for attention if we are to the development of Web Services, and the possible need to jBuilder7/lib/jaxrpc.jar on classpath forefront, it is because Borland to quickly introduce new versions of a large number of integrated third-party components , the lack of testing on the WebLogic environment, causing Chongming conflict, in accordance with the principle of classpath the first match, is likely to result in procedural errors.
Bill-switched from: csdn Java, java, J2SE, j2se, J2EE, j2ee, J2ME, j2me, ejb, ejb3, JBOSS, jboss, spring, hibernate, jdo, struts, webwork, ajax, AJAX, mysql, MySQL, Oracle, Weblogic, Websphere, scjp, scjd
↑ Back
JBuilder5 + Weblogic 6.0 installation configuration Destination
Abstract: JBuilder5 + Weblogic 6.0 installation configuration Destination
2, launched Jbuilder5, you will find not start, then you go to jbuilder5 injbuilder.config document "mainclass com.borland.jbuilder.JBuilder" This will add "#" in front of them, then start Jbuilder5, on Jbuilder5 will be on a wrong Below jbuilder5 injbuilder.config once again revised document, the "# mainclass.borland.jbuilder.JBuilder" in this line of "#", delete, start again Jbuilder5, OK
(Hp.q Note: This is not correct, in fact I am blind to the coincidence of the change, but my analysis is that we installed vss reasons, as long as vss remove the two lines on it.
)
3, Jbuilder Password: xa52-? Npkv-gcqzw
M69-tet
Second, the installation configuration Weblogic (Bob% 26acute; s Home Page available)
BEA WebLogic Server 6.0 Final
Bea_wls60final_crack.zip
(Please download their own search)
Usage: For example, I will WebLogic Server 6.0 Final installed in the C: directory ea will be above bea_wls60final_crack.zip; untied, copies of which cr_wls60f.jar C: eawlserver6.0lib directory, copies will be license.bea C: ea directory (mainly to expiration = "never" units = "unlimited" can be a), C: eawlserver6.0configmydomain directory of the document startWebLogic.cmd
Set CLASSPATH =.;. Libweblogic_sp.jar;. Libweblogic.jar
His read:
Set CLASSPATH =. libcr_wls60f.jar;.;. Libweblogic_sp.jar;. Libweblogic.jar
Then run. StartWebLogic.cmd. To confirm the server is running, visit http://127.0.0.1:7001/console/index.jsp. Enjoy!
NOTE: here mydomain / myserver is in the default installation option names, please use the actual names corresponding to replace.
Above bea_wls60final_crack.zip <; http://go.163.com/ ~ bob0215/bea_wls60final_crack.zip>; also provided examples% 26amp; petstore the corresponding startup files for reference.
3, configuration Jbuilder5 (Wei-qi provided)
1, tools-> enterprise setup
IAS4.1 must be assigned (if BAS4.5 with BAS4.5 better) otherwise EJB Chubulai!
Weblogic6.0 with Weblogic6.0 as long as the good path can be established.
2, project-> default project properties
Configuration run panel: VM parameters of value "- ms64m-mx64m" add "-classpath. Libcr_wls60f.jar;.;. Libweblogic_sp.jar;. Libweblogic.jar"
In a Jbuilder5 Calling Weblogic6.0 authority when there will be no problem!
Configuration servers panel: weblogic6.0 choice for application servers, the proposed elections "application server is web server" items, such jsp on weblogic6.0 also used to debug the (rather than tomcat)
3, other jbuilder4 + weblogic5.1 configuration and the allocation of the same Act.
Above configuration on the machine uptime!
↑ Back
ORACLE WEBLOGIC + + JBUILDER LINUX
Abstract: ORACLE WEBLOGIC + + JBUILDER LINUX
A few years ago abroad spent so much time, people have heard that the software is too LOW LEVEL level, but on this Forum found that the biggest, not LOW, but the lack of resources and materials, and provide a few links, as we all use pirated software, which is ridiculous to say, wallet Chen Shui-bian, of course, with piracy. So, let your first one Shuang
Http://bingle.pku.edu.cn
Http://freshmet.net
In particular, a Web site, Shuang turned to you, what have, complete set of source download crack +
First, what about buying some of the most important companies are SUN JAVA2 published two volumes of core technologies and Volume II
This was followed by the publication of the company WROX J2EE Programming been thrown, and the WROX publishing company EJB Programming Guide (written mainly Indians)
These two books when I read the post, completed a master's thesis
Well, what is required is a software and EJB what EJB
With C / S structure out of the middle layer and multi-platform distribution becoming more popular, with domestic Ran go with Microsoft, is the most famous Shanghai Electronic Equipment Co., Ltd. Shanghai Ruixing in charge of investigations Haidong, he is a Microsoft hardliners, they used to write DELPHI WINDOWS DNA, the supermarket cash register to buy a small company in 2003, has become a billion households, a Shanghai Hualian, Lianhua, the supermarket giant software customization, of course, in 2001 they made a wrong choice to begin with. NET Needless to say, we all know that. NET how rotten, imagine such a project WINDOWS2000 SERVER SQL SERVER + + or VB programming DELPHI, the cost is how much, if changed LINUX EJB + + + MYSQL JSP (front) cost of, for example, a cost is 20 million (much more), a cost of 10 yuan, I CALL! ! ! If all reported 500,000, the difference between the profits
Well, the benefits of EJB know, we should know in JAVA initially developed under UNIX, and should not be under WINDOWS programming, it is not a WINDOWS, does not belong UNIX, it is a free, but the proposed development in the UNIX or LINUX, why, the above example has been said very clearly, and now again, for school use to those EJB knowledge and software, software how Lane, I have been to your Web site, Web site outside the 90% most are false , this Web site is true, can always when, after you do not want to go to the other sites
1, first of all, people do a good job of the ASP intention of JSP
Second, cooked smelting operation LINUX REDHAT7. Two or MANDRAKE LINUX8. Above 0
Third, I WINNT ORACLE8 or 9 edition version or LINUX
Fourth, multi-platform installation package JBUILDER6
5. WEBLOGIC6. Above a multi-platform installation package
6, J2EE and multi-platform installation package JDK
7. JBOSS3 0 and JBOSS ENTERPRISE WIZARD (JBUILDER under a visualization of the patch installed)
8. BCAUSE BEAN-COM BRIDGER (one of the COM EJB to be used in the V-Series software)
9. XML SPY4. Above 2
ORACLE configure in the WINDOWS:
(Not teach themselves SETUP or INSTALL will be a) Zhuangkuan, with a REPOSITORY (with ENTERPRISE CONFIG ASSISTANT) restart again after first launching AGENT Kai LISTENER, ORACLESERVICE and MANAGERMENT SERVICE changed manually, after the restart, AGENT first opened, another LSTENER, another ORACLESERVICE, another ORACLE MANAGERMENT it and the poor will die ORACLESERVICE process is Qibulai, then CTRL + ALT + DEL, switching to the TAB process, the two ORA leader kill a process (not recommended with XP installed WIN2000, because sometimes under some WIN2000 can not kill the process, LINUX does not exist under this issue because it is green), OK, these are a few up, and using the mouse (Microsoft's next inseparable from the stupid NEE) ENTERPRISE MANAGER starter, you fill in the HOST ORACLE mainframe installed, the default user name is SYSMAN, PASSWD is OEM_TEMP, lowercase capital I forgot, are due to the lowercase , did not touch WINDOWS 2001, OK, OK on the up, and if up to the need DATABASE into account and password, the first since before the ENTERPRISE MANAGER DBA STUDIO, use SYSTEM / MANAGER can you DATABASE opened, in the SECURE options you want to enter a user name, it escalated into ROLE for the DBA, in the SYSTEM and SYSORER SYSDBA to it on the end, then start ENTERPRISE MANAGER you just used the account can be set up in ENTERPRISE MANAGER Progressive DATABASE in it and will not die of the process (in the Microsoft system is not the way things), installed a ORACLE8I ready to drive more than 2 G, 9 to 4 G I drive around.
Installation of the LINUX:
Clean REDHAT7. 2 or 7.3 installed, OK, as with ROOT landing, open a SHELL TERMINAL what,
I ORACLE heavy SKYDATA is the REPOSITORY
I use the user name YMK
Installed in the directory / opt/oracle/oracle9i
Installed before the first JDK1. 3.1 or later installed, you can be like a loaded J2EE1. 3.0 or later
Rpm-iv j2sdk1.4.0-fcs-linux.rpm
Tar-zxvf j2sdkee1.3.tar.gz-C / usr / local
The first step, groupadd -400 dba (build a)
The second step, useradd 400-c-u "Oracle Owner"-d / home / ymk-g "dba"-m-s / bin / bash ymk
The third step, passwd ymk
Users enter two passwords
OK,
Assigned to the kernel woven?
The first step
Cd / etc
Gedit profile
ORACLE_HOME = / opt/oracle/oracle9i
Export ORACLE_HOME
ORACLE_SID = skydata
Export ORACLE_SID
ORACLE_TERM = xterm
Export ORACLE_TERM
ORACLE_OWNER = ymk
Export ORACLE_OWNER
TNS_ADMIN = / home/oracle/config/9.0.1
Export TNS_ADMIN
CLASSPATH = $ ORACLE_HOME/jdbc/lib/classes111.zip
LD_LIBRARY_PATH = $ ORACLE_HOME / lib; export LD_LIBRARY_PATH
Export JAVA_HOME = / usr/java/j2sdk1.4.0
Export JSDK_HOME = / usr/local/j2sdk1.4.0
CLASSPATH = $ CLASSPATH: $ JAVA_HOME / lib: $ JSDK_HOME / lib / jsdk.jar
Export CLASSPATH
Ok
Finished first step kernel configuration
Open a terminal or SHELL
Cd / opt
Mkdir oracle
Chown ymk: dba oracle
Chmod 777 oracle
These are to be installed in your home directory ORACLE authority given to you just use useradd built users
With the USER MANAGER LINUX USER CONFIG not to look at, because I use the UID 400, it is possible in the grass Mandela 8.2 or later, a UID400 has been called the QMAILUSER spent, it's UID change can be 500 or 600, will be with you. Anyway, the users of the ORACLE guarantee UID 400, if you do not change happen? (98% will be loaded to mistakes REPOSITORY configuration do not have access reload, miserable bar) ymk at the same time to return to the root apache admin group,
Ok
LINUX system restart with just set up accounts landing YMK
In KDE or GNOME under way to open a SHELL
Typing su
ROOT password to your type
Then, the final configuration of the kernel
Cd / proc / sys / kernel
Echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value> sem
Echo 100 32000 100100> sem
Echo 2147483648> shmmax
Echo 4096> shmmni
Echo 2097152> shmall
Echo 65536> / proc / sys / fs / file-max
Ulimit-n 65536
Cat / proc / sys / fs / file-max
Echo 1024 65000> / proc/sys/net/ipv4/ip_local_port_range
Ulimit-u 16384
All the above applies to the current allocation of the more popular outside the turbo linux redhat7.2 mandrake8.2 all versions
Outside there are also many online configuration guide, but they are directed at any particular platform, I put all these configuration files LINUX platform in accordance with the EC by doing a set.
ORACLE type your installation disk path and run the command / mnt/win_c/oracle9linux/disk1/runInstaller
Interface to complete the installation in accordance with the bar ↑ Back
WEBLOGIC PORTAL rules engines used in the dynamic business logic
Abstract: WEBLOGIC PORTAL rules engine to achieve dynamic business logic
<tr> <td>
Introduction
Always demand business applications with the trend of changes in business environment of constant change. Decision-making is rarely static, and competitive pressure for business logic in the design and realization of flexibility to quickly adapt to changing needs. Usually, the business logic of the changes must be completed by the developer, and then conducted a number of thorough testing, and this will be a very time-consuming process. Changes in the application procedures are completed, the need to be re-deployed to the server, the need to stay in a scheduled downtime, to prevent the user application can not be used.
In this regard, a better solution is through the application of a set of rules to achieve certain business decisions. These rules have not been compiled into applications, but in the run-time reader and application. In this way, without code changes or stop the running application can change these rules.
WebLogic Portal includes a basic rule engine for the WebLogic Platform applications benefit from the rules. Although the engine is not fully functional product, but we will demonstrate how its WebLogic Integration Business Processes (JPDs) used for business logic to provide a flexible and dynamic Implementation Mechanism, thus eliminating the need to amend the rules and only re-deploy applications procedures.
First, we will look at in the text of the examples of the use of applications, and on how the rules will be injected into the engine WLI process in order to achieve business logic. Then, we would carefully study the rules themselves, and how to define business logic of these rules will ultimately be described in the operation of the system changes in the business rules used by the mechanism.
Examples of applications
We will develop an example application transactions in the business process as rules for the use of examples. The transaction application is a financial transaction processes simplified version of the process using the engine rules call JPD business processes and building. The sample application using different sets of portfolio transactions, and in accordance with a group from the definition of business rules will be the formation of the sub-block for the implementation, perhaps in order to reduce commission. Of course, here is the application is incomplete, but it is sufficient to demonstrate how the application in the real world the use of rules engines. There are complete source code available for download on the readme file which provides construction and operation of the application note.
In explaining how to develop such applications, we first go through the door on some of the rules of the engine briefly summarized to understand their working methods. Readers familiar with the general assumption here that the rules of technology.
Rules engine and its working methods
Figure 1 illustrates the basic rules engine situation. The engine in accordance with a set of rules to deal with the initial set of facts, and these rules from the engines obtained from the outside. Initial fact-filled engine for the working memory. By the rules of the facts in the working memory assessment, if it satisfies the conditions of a rule, will be the implementation of response actions. Normally, a rule of action will add a new memory of the facts and repeat the process until all the applications End rules. Then optional filters to select a specific category of objects to the call to return to the side. Controls can interface access rules engine, it also can be used to set attributes (such as the location of the rules set document).
Figure 1: The rules engine is a component of EJB packaging. Repository repeatedly applied to the rules to the facts in the working memory in order to obtain new facts. Reasoning can not be carried out to the circumstances, the working memory filtered to return to the items of interest.
WLI call from the process rules engine
Let us realize from the transaction for the JPD business processes, to see how we can add to the rules engine call. In the process of adding WLI rules WebLogic Portal can be used as part of the Rules Executor Control (rules for the implementation of controls). For this example, we only use the controls provided in the method and characteristics of a subset. Controls on the rules of the annotated documents can be found in some reference materials.
Here assumed that developers use WebLogic Workshop integrated development environment to create new processes applications. Then in the application process in the creation of a project. Because the default portal under control in the process of the project, and therefore the need for these controls and rules engines imported into the EJB applications. Then, the control input and output to insert in the JPD. WLI process in the use of the portal rules engine basic steps are as follows:
Import rules engines to applications:
- In the application contains rules engines.
- P13n_controls library will be added to the application.
Dealing with input and output:
- To add input variables and the outcome.
- Create a Rules Executor control.
- In the process of adding a WLI Control Send With Return nodes.
- Initial data preparation for the creation of Java code.
- Add a node to process the results iteration.
- Create rule sets.
Later we will be more detailed discussion of each of these steps.
In the application contains rules engine
Rules engine included in the following documents:
/ Weblogic81/p13n/lib/p13n_ejb.jar
To the application contains the engine Right click Workshop integrated development environment in the Modules folder, and choose Add Module. Navigate to the jar file, and choose Open.
P13n_controls library will be added to the application
To make rules gateway controls can be used in the application process, please right-click Workshop integrated development environment in the Libraries folder, and choose Add Library. The controls at:
Navigation of this document, click the Open button.
To add input and variable results
Used here Rules Executor control requires an object array as input and returns a result of iterators. In the Workshop integrated development environment to create value for these variables, so that we can in the next step through a graphical user interface to create controls. To accomplish this task, please Data Palette for the variable click the Add button, type the name of the input variables, and type Java type java.lang.Object []. Use the same method to create Java types java.util.Iterator output variables.
The creation of a Control Rules Executor
To create a control rules, click Control Data Palette in the Add button. From the menu, select Portal Controls -> Rules Executor. Type a name for the controls, and press Create button.
In the process of adding a WLI Control Send With Return node
Will just drag and drop controls to create the process to create a control node to the actual transfer rules engines. In the examples, we will use the controls of evaluateRuleSet () method. Send Data from the panel, the method of choice for the front of the input parameters and the creation of the input variables. The use of panels choose to return to Receive Data variables to obtain the results of the implementation of the rules. In the Property Editor window controls for the corresponding type attribute values.
Initial data preparation for the creation of Java code
In the creation of the input variables, we also did not assign it, so it is necessary to write code to accomplish this task. This variable is a Java Object array, which provides input to the initial conditions of the rules of the facts. Can create a new Perform node to initialize the array, or through the use of the Source View Control Send node add the code to set the value of the variable.
Add a node to process the results iterative
Rules Executor controls every calculation method will return a result of iterators. Write code, the use of the value of achieving the results of the implementation of the rules iteration. If there is no designated filter categories, this iteration of the rules engine will return to the memory of all the work value. Including the original input, as well as to meet any conditions in the implementation of the rules of action when added to the value of memory. Adding to the target of iterators return a Result of the targets of such getObject () method can return to action in the rules of the content of the actual object.
Create rules set
Using XML Editor, in / META-INF/data create a directory of extensions. Rls document. Rules are usually added to the subdirectory in the rulesets.
Business logic rules
We have just demonstrated how the business processes into rules engines. Let us now look at how to use the rules engine, as well as how to prepare mapped to the business rules of rules.
Rules consists of two parts: the application of the rules must be really conditions, and when the conditions will be met implementation of the action. Therefore, we must use in the application of the rules of procedure, designers must first define what objects and attributes in the test conditions of the rules of the rules writers is visible. Rules allowing the engine in a condition called arbitrary number of measures. This structure definition JavaBean as a way to facilitate the initial composition of the facts set of targets, rules engines use these facts to carry out the initial reasoning. Bean can use the method to get access to the value of testing conditions.
Rules quoted by the Java objects need to create it from the WLI processes and rules engine itself are visible. This avoids the JPD these objects and processes in the same package, more precisely, they should be established in the same application procedures as part of the Java projects. Then, the target can be package.class markers in the rules file (. Rls) and the application process JPD.
In our example of the transaction, the transaction will be different groups so that we can implement a block. To achieve this goal, we define that two bean related to the object. The first is the Trade bean, it said individual trading orders. This bean attributes that the share of transactions, as well as the number of shares desired price. Any decision to block the transaction, which may be useful to the value of this should be considered as a method of the public get bean properties, in order to be able to use it in the rules. The second is the Block bean bean, which can store all attribute set according to a coming together of different transactions. This bean attributes include any of the rules can be used to determine big enough orders to information. These attributes can be average price of the transaction or the total dollar share of the total number, and so on.
To our applications achieve functional block, the first to use rules to define whether a transaction only on the need to implement its own sufficient (that is, it is only a single transaction includes the block), or if this is not the case, then What attributes should be used with other transactions will be gathered in order to form a block. Gathered in a transaction to the appropriate block, will be the second call rules engine to determine whether the block completed. For example, suppose we want to have such a rule:
- Rule 1: No more than 5,000 stocks and the single transaction as a block and should be implemented.
- Rule 2: by the same investment managers have the same markings ordered the transaction should be together.
- Rule 3: total value of more than, 000 block should be implemented.
Call rules and conditions associated with the object of the method is easy, as in the following example shows, this is a rule of the conditions:
In this example, if the fact that we have a Trade object, the rules engine will then call its getQuantity () method and the results compared with 5000 integer. If it is greater than or equal to 5000, while the condition is true.
The second part of the rules to meet the conditions for the implementation of the action when the list. The most common moves are: the creation of a new object, it added to the rules engine to assess conditions on the facts. Rules engines continue to rule iteration until drawn from the facts can not be more reasoning; to add new object moves will lead to another round of the conditions assessment cycle. As we will see, you can create any type of object, and the definition of applications with a specific significance of the various types. Here skills, the application designers can define a group of rich enough action to include those who may be called to the rules of writers meet the business needs of the mission.
In our sample application transactions, all movements will be created by the rules will be added to the engine used on the work of the new object. Set some rules to add a simple String object. Said that the target from the original interpreting facts in the middle of the fact that they can be in the rules engine further reasoning, but the process JPD will not explain in any form. Other rules will create Beans.Action category of object. These included rules when conditions will be met implementation of the actual process orders. JPD processes will be implemented and support category known movements gathered order to block the implementation of transactions and transactions. In this simple example, there are only two known in the order: Creating (and implementation) orders, the use of the designated properties gathered a transaction. Rule 2 in front of the action and the use of attributes symbol aggregation manager for the action are as follows:
Response to the movement, and support the process of JPD for the current trading and investment manager for symbol, a symbol to identify with the same investment manager and the non-implementation of the transaction, and these transactions gathered to the same block.
Complete a transaction in the gathering, the second Rules Executor will once again call control rules engine to assess the rules, should decide whether or not to block the implementation of the transaction. 3 based on business rules, the rules are as follows:
This time, our analysis Beans.Block object, and access to property and the amount threshold for comparison. If the condition is met, the use of concentrated work to create an order to add a Beans.Action object, which is the implementation of the notification process orders block the signal.
Let us take a closer analysis process JPD. There are calls for the rules engine Control Send node code. As we can see, the Rules Executor node using a control to assess the rule set, the control returns a iterators. Through its attributes (not given), the controls will filter results, only to return to the subject of Beans.Action category. Through these objects, the code will be extracted action orders and execution of the request for action. As previously mentioned, if the movement is gathering the transaction, the process will be used to update the block as an input on the rules engine start the second call. Through the implementation of appropriate action on the results of the second iteration cycle.
Public void rulesExecutorControlEvaluateRuleSet () throws Exception (/ / Execute the Rules using facts as the input / / # START: CODE GENERATED - PROTECTED SECTION - you can safely / / Add code above this comment in this method. # / / / / Input transform / / Return method call this.results = rulesExecutorControl.evaluateRuleSet (this.facts); / / Output transform / / Output assignments / / # END: CODE GENERATED - PROTECTED SECTION - you can safely / / Add code below this comment in this method . # / / / * Iterate over the results of rules execution. This assumes that results are filtered to return only items of the Beans.Action class. The command property from the Action is expected to be either the string "create," in which case a Block trade can be executed from the single discrete Trade, or it is expected to be a list of attributes describing the Block that this Trade should be incorporated into * / while (results.hasNext ()) (String action = (( Action) results.next ()). getCommand (); if (action.equals ( "create")) (new Block (trade)). execute (); / / single-trade else (/ / Aggregate trade into an intermediate Block trade.aggregate (blockStorage, action); / * Call the rules engine a second time, this time using the resulting Block as the only input. This is to determine if the resulting Block now meets the criteria to execute the order. Again, results are assumed to be filtered by the control to return only the Actions * / Block block = trade.getBlock (); Object blockFacts = new Object [] [1]; blockFacts [0] = block; Iterator blockResults = blockRulesCntl.evaluateRuleSet (blockFacts); while (blockResults.hasNext ()) (action = ((Action) blockResults.next ()). getCommand (); if (action.equals ( "create")) block.execute ();))) )
Dynamic Rules
WebLogic Portal is one of the characteristics of Datasync function, which can be revised after the redeployment to the data in the cluster portal applications. Because the rules engine portal from Datasync storage area was in its rules document, the application's business rules can be in the running to make changes in the system, without the need to stop the application. Datasync and for the update on the data Datasync Web applications of other information, please refer to WebLogic Portal documents.
By default, Datasync Web applications will be deployed in the conventional portal applications. However, our sample application is a WLI process applications, which must be manually included in the Datasync. In the Workshop integrated development environment work in the completion of these Right click Modules folder, and choose Add Module. Then, select the following documentation:
/ Weblogic81/p13n/lib/datasync.war
In the cluster, the application procedure should only Datasync deployed to the management server.
In order to clarify how the operation of the application changes in the rules, including examples of the application of two different rules document, the two documents will be included in the transaction for the poly Manifold optional rules. As already described the default rule (as defined in traderules.rls document), the second set (altrules.rls) definition of the rules are as follows:
- Will be marked in accordance with all the transactions Poly Manifold.
- Implementation includes 3,000 shares or more blocks.
Dynamic to see the implementation of these rules, the first to use the test data provided by the examples of applications running. No need to stop or re-deploy server applications directly to the preservation of the original rules of a new document, and replace documents from the rules:
/ META-INF/data/rulesets/altrules.rls
Copy to:
/ META-INF/data/rulesets/traderules.rls
Examples of data running again, then find a different orders.
Note that the example does not need to run the domain Datasync Web application to update the rules. This is because the sample domain platform to develop model runs. In this mode, automatic polling Datasync / META-INF/data directory and its subdirectories to search changes, the files can be changed automatically re-deployed to the application. In the production domain, the need to use the Web application to the redeployment of data. Recommended steps are, first of all, for all the documents that had been updated to create a jar file, the jar file should be in the root directory data. Then, Datasync Web applications using the Bootstrap Data features include a redeployment to the new rules jar files.
Download
You can download examples of the use of this program's source code: SampleApp.zip (2MB)
Concluding remarks
WLI processes with applications when used together, achieve Portal Rules Engine is a powerful tool business logic. It is very easy to WLI merger process, and can be used to assess the JavaBean rules conditions, or as an extension of the implementation of rules to assess the outcome of the action. Finally, Datasync provided by the characteristics of the dynamic update capability makes business logic more flexible, and can not change under the premise of Java code to adapt to changing needs, so there is no need to deploy applications.
</ Td> </ tr> </ table>↑ Back
Weblogic application under Struts configuration occurs when the wrong solution tag
Abstract: Weblogic application under Struts configuration occurs when the wrong solution tag
<tr> <td>
Error message:
Webloigc Struts configuration in the application errors often arise Below, and in no other Web server under:
Parsing of JSP File '/ index.jsp' failed:
———————————————— –
/ Index.jsp (3): Error in using tag library uri = '/ WEB-INF/struts-html.tld' prefix = 'html': The Tag class' org.apache.struts.taglib.html.FormTag 'has no setter method corresponding to TLD declared attribute 'name', (JSP spec 1.1, 5.4.1)
Probably occurred due to an error in / index.jsp line 3:
<% @ Taglib uri = "/ WEB-INF/struts-html.tld" prefix = "html"%>
Reasons:
This is because the tag weblogic very strict requirements
Solution:
Open struts.jar can see org and META-INF directory of the two, in the META-INF directory is verified by the tld document, in fact we only have this META-INF directory can be deleted. Struts can download the source code, and then re-generate new jar file, consisting only of java class files, documents do not contain tld
</ Td> </ tr> </ table>↑ Back
Weblogic Platfrom JBuilder9 + 8.1 + Oracle 9i installation and configuration
Abstract: Weblogic Platfrom JBuilder9 + 8.1 + Oracle 9i installation and configuration
<table Width="100%" height="92%" border="0" cellpadding="6" cellspacing="0"> <tr> <td height = "623" align = "left" valign = "top" class = "content"> JBuilder9 + 8.1 + Weblogic Platfrom Oracle 9i installation and configuration
Weblogic Platfrom on JBuilder9 + 8.1 + Oracle 9i installation and configuration methods one. Software acquisition
First of all want to say is that if, as a software developer can not attach importance to software copyright issues, it is really sad the software industry, strongly recommends the use of genuine software.
Indeed, the price of legitimate software for individual users is indeed a problem, now Fortunately, the software vendors have begun selling services rather than just selling software, therefore, poor public also can try the taste of a sumptuous feast.
â… . Jbuilder9 to Borland can be downloaded to a company official website Enterprise Trial 30-day trial version or Personal version.
Download Address: http://www.borland.com/products/downloads/download_jbuilder.html
â…¡. WebLogic Platform 8.1 can to BEA's official website Sign up for free access to the trial.
Download Address: http://commerce.bea.com/index.jsp
â…¢. Oracle 9i to Oracle can register a company official website free account and then download.
Download Address: http://otn.oracle.com/software/index.html
2. Software installation and configuration
â… . Weblogic 8.1 Installation and Configuration
1. Click on the installation file to start the installation, first of all, "Next" Ã selected "Yes", click the "Next" Ã create directory, use the default here, and direct "Next" Ã team of "Next" until the beginning of the installation.
2. Step by step, the installation has been completed, we want to configure their own domain, click the "Start / Programs / BEA WebLogic Platform8.1 / Configuration Wizard" (Fig. 1), select "Create a new Weblogic configuration," "Nextà Basic Weblogic Server Domainà Nextà Expressà Next "imported" Name * Password * Description "(2) modify the lower right corner Nextà then" Configuration Name: à Create "(Figure 3) has been the progress of 100% Done completed.
3. Mydomain now we can start to see whether they can be normal use.
Click on the "Start / Programs / BEA WebLogic Platform 8.1/User Projects / mydomain / Start Server" will pop up as (4) the DOS pop-up window, and have been maintained, without abnormal error, it would like to congratulate you, your Weblogic has launched a normal, Weblogic the basic installation and configuration even completed.
Figure 1
Figure 2
Figure 3
Figure 4 â…¡. Oracle9i installation and configuration
(1). Installation
1. Will be available to the 92,010 NT_Disk1.zip, 92010NT_Disk2.zip, 92010NT_Disk3.zip and their client 92,010 NT_CLT.zip extract.
2. Disk1 run in the setup.exe file, the Oracle Universal Installer will guide you complete Oracle product installation and configuration.
3. Oracle9i the initial installation is complete, we will be the next "oracleora92 etworkadminsqlnet.ora" Open, which will be the "NTS" to "NONE."
4. Click on the "Start / Programs / Oracle - OraHome92/Configuration and Migration Tools / Database Configuration Assistant," add the database:
Figure 5
Step 1. Create database
Step 2. New Database
Step 3. Overall database name and SID
Step 4. Database features
Step 5. Choose hope that the database using the default mode of operation
Step 6. Initialization parameters
Step 7. Database storage
Step 8. Create the database, completed
Oracle9i installation is completed here.
(2). With the user
1. Click on the "Start / Programs / Oracle - OraHome92 / Application Development / SQL Plus";
2. "[U] user name:" and "Password [P]:" input system user name and password, and the default system manager (at the time of installation or set their own passwords), after determining accurate You will see the following the interface.
Chart 6
3 Create Table space "TEST", size 100 M:
CREATE TABLESPACE "TEST";
LOGGING;
DATAFILE 'D: ORACLEORADATATESTHAIG.ora' SIZE 100M;
4. Create user "TEST", the default table space, "TEST";
CREATE USER "TEST" PROFILE "DEFAULT" IDENTIFIED BY "TEST";
DEFAULT;
TABLESPACE "TEST" ACCOUNT UNLOCK;
5. Granted its three functions: UNLIMITED TABLESPACE, CONNECT, RESOURCE;
GRANT UNLIMITED TABLESPACE, CONNECT, RESOURCE TO "TEST";
6. "TEST" user;
CONNECT TEST / TEST;
Normal that "connected" Okay.
(3). Sample database created
1. Built table;
CREATE TABLE count
(Num1 NUMBER (4,2)
Num2 NUMBER (5,2)
Result NUMBER (6,2));
2. Inserted in the data;
INSERT INTO count (num1, num2, result) VALUES (1,1,2);
INSERT INTO count (num1, num2, result) VALUES (1,1,1);
INSERT INTO count (num1, num2, result) VALUES (2,8,10);
INSERT INTO count (num1, num2, result) VALUES (68,90158);
3. Submit data;
COMMIT;
The establishment of the new scale, data insertion success.
â…¢. Jbuilder9 installation and configuration
Jbuilder9 very convenient installation, operation ent_trial_install.exe, InstallAnywhere will extract the installation, you need to do is next & install.
Jbuilder9 installed, normal operation can be, then we can configure Weblogic Jbuilder, click the "Start / Programs / Enterprise Trial Borland JBuilder 9 / Borland JBuilder 9 Enterprise Trial" in the menu bar click Jbuilder9Ã in the "Tools / Configure Servers. .. "Ã pop-up" Configure Servers "window on the left User Home directory, select" WebLogic Platform Server 8.x, "selected the right of the" Enable server "items, all right when the item was originally grey has changed Black can be used in the state. First, in the "General" page of Lieutenant General Home directory: Set d: / bea/weblogic81/server (Note: here the d: / bea filled should bea your own installation directory), "Working directory:" set for d: / bea / user_projects / mydomain, if your bea not installed in c: /, then the need to "VM parameters:" properties "- Djava.library.path =" D: D: / bea/weblogic700 / server / bin "," and "-Djava.security.policy ==" D: D: / bea/weblogic700/server/lib/weblogic.policy "" removed a "D:."
Chart 7 next to the "Custom" sub-page, "BEA home directory:" Make d: / bea "JDK installation directory:" Make d: / bea/jdk141_02, "Domain directory:" Make d: / bea / user_projects / mydomain in the "User name:", "Possowrd:" Fill in the installation of WebLogic user name and password, "Listen address:" to "localhost", the election of the "Add an Admin Console item to the tools menu "and" Add a Configuration Wizard item to the tools menu, "and accomplish click" OK. "
Figure 8
Next in the menu bar click on "Project / Default Project Properties…" à pop-up "Default Project Properties" window, "Server" sub-page of the selected "Single server for all services in project", and then the drop-down box below its Select "Weblogic Application Server 8.x," click "OK" identified.
Figure 9 â…£. Configured in Weblogic 8.1 JDBC
JDBC connections there are two, one is a direct connection, and the other is connected pool. Presented here is configured connection pool (Connection Pool) and the data source (DataSource) to achieve pool connected.
First, click the "Start / Programs / BEA WebLogic Platform 8.1/User Projects / mydomain / Start Server" started WebLogic server8.1, then IE's address bar importation http://localhost:7001/console, Enter, there Weblogic Server login page, enter Username: and Password, click Sign In login.
Click on "Services Configurations / JDBC / Connection Pools / Configure a new JDBC Connection Pool…", the establishment of a connection pool, in the Choose database, select Database Type: Oracle, Database Driver: Choose Oracle's Driver (Thin) Versions: 8.17, 9.01,9.20, click Continue in Difine connection properties in settings:
Name: oraclePool
Database Name: test (in the installation of Oracle database, the establishment of the overall situation)
Host Name: localhost
Port: 1521
Database User Name: test (in the installation of Oracle, establishing user name)
Password: test (in the installation of Oracle, establishing user password)
Confire Password: test (repeat password)
Click Continue to continue into the Test database connection page, click Test Driver Configuration, Create an deploy into the pages, if you see is the word green Connection successful, the configuration successful, click Create an deploy establish oraclePool connection pool.
Then we configure data source testTxDataSource, click the left console domain tree JDBC / Data Source node, and then click the right side of the Configure a new JDBC Tx Data Source, entered Configure the data source tab.
Name: testDataSource
JNDI Name: jdbc / testDataSource
Click Continue to the next page of fill
Pool Name: oraclePool
Click Create to create.
At this point, the Oracle JDBC in WebLogic completed the set, restart WebLogic, if there is no error on the allocation of success
</ Td> </ tr> </ table> </ td> </ tr> </ table>
↑ Back
WebLogic Cluster configuration and application procedures issued by the foundation
Abstract: WebLogic Cluster configuration and application procedures issued by the foundation
<table Width="100%" height="92%" border="0" cellpadding="6" cellspacing="0"> <tr> <td height = "623" align = "left" valign = "top" class = "content"> This section describes the WebLogic Server cluster configuration information is how to store and maintain, as well as the allocation method:
- Cluster configuration and config.xml file
- Management Server
- Dynamic Configuration
- Published Application
- Cluster configuration
View the documents in PDF format
I have discussed the issue with the welcome yancheng@sharetop.com </ td> </ tr> </ table> </ td> </ tr> </ table>
↑ Back
WedSphere WebLogic 8 and the installation and basic configuration
Abstract: WedSphere WebLogic 8 and the installation and basic configuration
<table Width="100%" height="92%" border="0" cellpadding="6" cellspacing="0"> <tr> <td height = "623" align = "left" valign = "top" class = "content"> Recently, many of my friends on WebLogic 8 and WedSphere and configuration is not very familiar with, I passed word form some of the basic configuration, and deployment of detailed steps down, we hope to help
Annex: 1134102059240 WebLogic.part1.rar (488K) </ td> </ tr> </ table> </ td> </ tr> </ table>
↑ Back
Continued: WedSphere WebLogic 8 and the installation and basic configuration
Abstract: continued: WedSphere WebLogic 8 and the installation and basic configuration
<table Width="100%" height="92%" border="0" cellpadding="6" cellspacing="0"> <tr> <td height = "623" align = "left" valign = "top" class = "content"> Annex: 1134102380317 WebLogic.part2.rar (430K) Annex: 1134102464814 WebSphere.part1.rar (488K) Annex: 1134102475146 WebSphere.part2.rar (488K) Annex: 1134102482319 WebSphere.part3.rar (30K) </ td> </ tr> </ table> </ td> </ tr> </ table>
↑ Back
Weblogic visited oracle database connection pool configuration method (explain)
Abstract: Weblogic visited oracle database connection pool configuration method (explain)
<table Width="100%" height="92%" border="0" cellpadding="6" cellspacing="0"> <tr> <td height = "623" align = "left" valign = "top" class = "content"> Weblogic visited oracle database connection pool can be used three ways to configure JDBC
In a weblogic console established in accordance with the following configuration connection pool, and modify documents startWeblogic.cmd
1 weblogic way, the use of the jDriver weblogic
Attribute value
URL: jdbc: weblogic: oracle
Driver Classes: weblogic.jdbc.oci.Driver
Properties (key = value): user = xixi
Password = haha
Server = your_tnsname
Need to install the client oracle
Your_tnsname you in the Oracle client server configuration at the oracle of local services
StartWeblogic.cmd joined in the Path variable. Inoci817_8
[Post] [original] Re: Weblogic visited oracle database connection pool configuration method Author: piglets Columbia Show: 0 replies: 0
[Article 6 floor] published on 4/13/2005 23:28:38
2 oracle JDBC methods of thin
Attribute value
URL: jdbc: oracle: thin: @ 193.0.0.5:1521: ora8
Driver Classes: oracle.jdbc.driver.OracleDriver
Properties (key = value): user = xixi
Password = haha
Dll = ocijdbc8
Protocol = thin
Oracle do not need to install the client, ora8 you want to connect to the database SID
StartWeblogic.cmd joined in the Path variable. Inoci817_8, CLASSPATH add $ ORACLE_HOMEjdbclibclasses12.zip or classes111.zip so that it can find the oracle JDBC category.
2 of the Oracle JDBC way OCI8
Attribute value
URL: jdbc: oracle: oci8: @ your_tns
Driver Classes: oracle.jdbc.driver.OracleDriver
Properties (key = value): user = xixi
Password = haha
Dll = ocijdbc8
Protocol = oci8
[Post] [original] Re: Weblogic visited oracle database connection pool configuration method Author: piglets Columbia Show: 0 replies: 0
[Article 5,] published on 4/13/2005 23:28:51
Your_tns for you in the direction of Oracle configuration in the local service oracle server (ie TNS NAME)
(Cancel path in the. / Bin/oci817_8 / (under $ WL_HOME/lib/linux/ora8.1.6_oci8 LINUX) LD_LIBRARY_PATH add $ ORACLE_HOME / lib)
StartWeblogic.cmd in Path variable add $ ORACLE_HOME / bin, pointing to add $ CLASSPATH ORACLE_HOMEjdbclibclasses12.zip or classes111.zip
Oracle need to install the client, the client configuration attention to the oracle oracle good environment variables and ORACLE_HOME NLS_LANG
Unfinished, we can go to their own http://www.weblogic.com.cn look at the Technical Forum! There are many good NEE it ^ _ ^ very good, not exclusive ^ _ ^ </ td> </ tr> </ table> </ td> </ tr> </ table>
↑ Back