Recent Notes
Displaying keyword search results 1 - 10
Created by Fang on September 07, 2009 20:44:15
Last update: November 03, 2011 14:43:19
Step 1: Repackage a web app as EAR A Java EE application is a multimodule Maven project. At the very least you'll need to package a WAR and an EAR. To get started, I'll simply re-package the simple webapp as an EAR. Create a directory named javaee-app Copy the webapp from here to javaee-app . Rename struts1app to webapp . Create pom.xml under javaee-app :
<project> <modelVersion>4.0.0</modelVersion>... Create a directory named ear under javaee-app . Create pom.xml under ear : <project> <modelVersion>4.0.0</modelVersion>... Modify pom.xml in the webapp directory so that it looks like this: <project> <modelVersion>4.0.0</modelVersion> ... Build with " mvn package " in the javaee-app directory. You can see that ear-1.0.ear is successfully generated in javaee-app/ear/target . Maven successfully resolves dependencies between the sub-projects....
Created by Dr. Xi on August 11, 2007 15:56:47
Last update: July 19, 2011 08:15:55
Here's a list of common TCP ports. You can find a more complete list here: http://www.gasmi.net/docs/tcp.html . Port Number Service Description 21 FTP File Transfer Protocol 22 SSH Secure Shell 23 Telnet Telnet remote login 25 SMTP Simple Mail Transfer Protocol 70 gopher Gopher 79 finger Finger 80 HTTP Hyper Text Transfer Protocol (WWW) 88 Kerberos Kerberos authentication 94 tivoli Tivoli Object Dispatcher 110 pop3 Post Office Protocol Version 3 123 ntp Network Time Protocol 137 netbios NetBIOS Name Service 138 netbios NetBIOS Datagram 139 netbios NetBIOS Session 143 imap Internet Message Access Protocol 161 snmp Simple Network Management Protocol 162 snmptrap SNMP trap 194 irc Internet Relay Chat Protocol 389 ldap Lightweight Directory Access Protocol 443 https Secure HTTP 445 SMB MS Server Message...
Created by Dr. Xi on February 09, 2010 03:56:11
Last update: February 09, 2010 04:31:07
From Oracle Database JDBC Developer's Guide : The JDBC Thin client is a pure Java, Type IV driver. It is lightweight and easy to install. It provides high performance, comparable to the performance provided by the JDBC Oracle Call Interface (OCI) driver. The JDBC Thin driver is written entirely in Java, and therefore, it is platform-independent. Also, this driver does not require any additional Oracle software on the client-side. From Java Programming with Oracle JDBC : The important thing to notice about the graph is that it's not until about 65 inserts that the PreparedStatement object outperforms the Statement object. 65 inserts! Clearly, the Statement object is more efficient under typical use when using the OCI driver. you'll see that the Thin driver follows the...
Created by Dr. Xi on September 02, 2008 18:55:18
Last update: January 18, 2010 22:36:24
Remember the times when you googled for solutions to your technical problems? How much time did you spend on wading through the zillions of links to find the ones that are of interest to you? Wouldn't you hope that you can find the answer right away the second time around? How many times were you forced to peruse hundreds of pages of documentation for a very specific need? Did you ever need to experiment with various alternatives because the documentation was vague? Wouldn't you prefer that a shortcut is available when the same thing is needed again? Xinotes is here to record your technical findings so that you won't have to go through the same process again when the problem reappears. Experience has taught us...
Created by Dr. Xi on November 21, 2009 02:07:07
Last update: November 21, 2009 02:08:19
This is from Oracle 10g documentation . Data Lock Conversion Versus Lock Escalation [/size] A transaction holds exclusive row locks for all rows inserted, updated, or deleted within the transaction. Because row locks are acquired at the highest degree of restrictiveness, no lock conversion is required or performed. Oracle automatically converts a table lock of lower restrictiveness to one of higher restrictiveness as appropriate. For example, assume that a transaction uses a SELECT statement with the FOR UPDATE clause to lock rows of a table. As a result, it acquires the exclusive row locks and a row share table lock for the table. If the transaction later updates one or more of the locked rows, the row share table lock is automatically converted to a...
Created by Dr. Xi on August 19, 2009 03:37:18
Last update: August 19, 2009 03:37:18
Orafaq states that:
Oracle XE is limited to:
only use one CPU on a system
use up to 1GB of RAM
store up to 4GB of data
The following database features are not supported:
partitioned objects
internal Java virtual machine (JVM)
More info:
http://forums.oracle.com/forums/thread.jspa?messageID=2190391
http://forums.oracle.com/forums/thread.jspa?messageID=1648531
Created by Dr. Xi on August 19, 2009 03:21:43
Last update: August 19, 2009 03:30:14
Writing Java stored procedure in Oracle requires that an embedded JVM is available in the Oracle server. Select from dba_registry to see if JVM is installed:
SQL> select comp_id from dba_registry;
COMP...
Or:
SQL> describe dbms_java
More information available here:
http://www.idevelopment.info/data/Oracle/DBA_tips/Java/JAVA_10.shtml
Created by Dr. Xi on October 30, 2008 03:39:50
Last update: October 30, 2008 03:40:51
-- define types
CREATE OR REPLACE TYPE pers...
Created by Dr. Xi on October 23, 2008 23:17:06
Last update: October 23, 2008 23:18:38
Oracle 10g introduced DBMS_SCHEDULER , which replaces DBMS_JOB in previous versions. The old DBMS_JOB is kept only for backwards compatibility.
The new Oracle Scheduler offers far more functionality than the DBMS_JOB package.
Link to Oracle® Database PL/SQL Packages and Types Reference 11g Release 1 (11.1) :
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sched.htm
Created by Dr. Xi on October 08, 2008 19:33:21
Last update: October 08, 2008 20:17:42
In sqlnet.ora , there's a parameter named NAMES.DEFAULT_DOMAIN that usually contains the value world . If you remove this parameter then you don't need to append .world . My sqlnet.ora contains three lines:
# sqlnet.ora Network Configuration File: C:\wo...
To force a lookup without NAMES.DEFAULT_DOMAIN appended, append a dot to the tnsname:
tnsping unqualified_tnsname_name.