随笔分类 -  00.Java & j2ee

摘要:在axis2的\WEB-INF\services目录下,建立文件myWebService.aar,包含以下\META-INF\services.xml\lib法1:以spring bean方式<serviceGroup> <service name="myWebService" > <description>Spring aware</description> <parameter name="ServiceObjectSupplier"> org.apache.axis2.extensions 阅读全文
posted @ 2011-07-31 01:54 庚武 阅读(713) 评论(0) 推荐(0) 编辑
摘要:package wcg.test.jdbc.oracle;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class TestConnOracle { /** * @param args */ public static void main(String[] args) throws Exception { Connection conn = null; 阅读全文
posted @ 2011-07-14 11:00 庚武 阅读(635) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-07-13 18:20 庚武 阅读(1) 评论(0) 推荐(0) 编辑
摘要://java serviceimport java.util.Date;public class SimpleService { public String getGreeting(String name) { return "你好 " + name+",现在时间是:"+new Date(); } public int getPrice() { return new java.util.Random().nextInt(1000); }}放入:%TOMCAT_HOME%\webapps\axis2\WEB-INF\pojo下,若没有pojo,则建立一个p 阅读全文
posted @ 2011-07-13 16:00 庚武 阅读(4616) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-07-13 13:51 庚武 阅读(5) 评论(0) 推荐(0) 编辑
摘要:The following are reserved words in the JSP EL:and eqgttrueinstanceoforneltfalseemptynotifgenulldivmodExpression-Language Implicit ObjectsapplicationScopecookieheaderheaderValuesinitParampageContextpageScopeparamparamValuesrequestScopesessionScopeCustom Tag:BodyTag interface-------JDBBC: Java Databa 阅读全文
posted @ 2011-07-09 17:23 庚武 阅读(913) 评论(0) 推荐(0) 编辑
摘要:http://apps.hi.baidu.com/share/detail/16268377pl/sql develop的使用 阅读全文
posted @ 2011-07-07 12:10 庚武 阅读(425) 评论(0) 推荐(0) 编辑
摘要:jdbc thin,oci:Oracle提供的两套Java访问Oracle数据库的方法 thin就是纯粹用Java完成访问数据库的所有方法,优点是不用安装客户端 oci就是使用Java来调用本机的Oracle客户端然后再访问数据库,优点是速度快但是需要安装和配置数据库请问jdbc:oracle:thin:@192.168.3.98:1521:orcl是什么意思?jdbc:oracle:thin:@192.168.3.98:1521:orcljdbc:表示采用jdbc方式连接数据库oracle:表示连接的是oracle数据库thin:表示连接时采用thin模式(oracle中有两中模式)jdbc 阅读全文
posted @ 2011-07-07 01:47 庚武 阅读(393) 评论(0) 推荐(0) 编辑
摘要:from:http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.htmlOracle Database 10gRelease 2 JDBC DriversYou must accept theOTN Development and Distribution License Agreementto download this software.AcceptLicense Agreement|DeclineLicense AgreementOracle Database 10gRelease 阅读全文
posted @ 2011-07-07 01:40 庚武 阅读(418) 评论(0) 推荐(0) 编辑
摘要:http://sourceforge.net/projects/appgen/AppGen eclipse plugin generate full java web application source codes based on Spring and iBatis. You can set the XML configuration mapping file from a database schema quickly by conventions, and can edit it easily. (requires java 1.5 or higher) 阅读全文
posted @ 2011-06-29 14:36 庚武 阅读(300) 评论(0) 推荐(0) 编辑
摘要:http://www.redhat.com/magazine/021jul06/features/apache_axis2/Web services is gaining momentum and many large vendors now offer web services stacks as part of their solution portfolios. The open source world has played a key role in web services by providing some excellent web services stacks that a 阅读全文
posted @ 2011-06-19 11:01 庚武 阅读(304) 评论(0) 推荐(0) 编辑
摘要:Spring: Data access using JDBCThere are a number of options for selecting an approach to form the basis for your JDBC datababse. There are three flavors of the JdbcTemplate, a new "SimpleJdbc" approach takingadvantage of data metadata.1.JdbcTemplate2.NamedParameterJdbcTemplate wraps a Jdbc 阅读全文
posted @ 2011-06-17 17:27 庚武 阅读(367) 评论(0) 推荐(0) 编辑
摘要:1.java代码://Foo.javapackage x.y.service;public class Foo { private int id; private String name; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }}//FooService.javapackage x.y.se 阅读全文
posted @ 2011-06-16 18:28 庚武 阅读(858) 评论(0) 推荐(0) 编辑
摘要:http://geronimo.apache.org/index.htmlThe goal of the Geronimo project is to produce a server runtime framework that pulls together the best Open Source alternatives to create runtimes that meet the needs of developers and system administrators. Our most popular distribution is a fully certified Java 阅读全文
posted @ 2011-06-15 14:25 庚武 阅读(320) 评论(0) 推荐(0) 编辑
摘要:http://files.cnblogs.com/wucg/tomcatPluginV33.ziphttp://www.eclipsetotale.com/tomcatPlugin.htmlInstallationThis plugin does not contain Tomcat.(Download and install Tomcat before using this plugin).This is a design choice not to include Tomcat in the plugin distribution, this way the same plugin ver 阅读全文
posted @ 2011-06-15 10:57 庚武 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-06-14 17:25 庚武 阅读(122) 评论(0) 推荐(0) 编辑
摘要:-startupplugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize256M-showsplashorg.eclipse.platform--launcher.XXMax 阅读全文
posted @ 2011-06-14 00:32 庚武 阅读(184) 评论(0) 推荐(0) 编辑
摘要:queryForObject()queryForList()queryForMap()Mapped statement typesselectinsertupdatedeleteprocedurestatementsqlincludesql:select ... where city like '%$values$%'this form is easy sql injection 阅读全文
posted @ 2011-06-13 23:31 庚武 阅读(161) 评论(0) 推荐(0) 编辑
摘要:1.maven建立一个web app2.D:\Tomcat6_0\conf\tomcat-users.xml 查看users.<tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="123" roles="admin,manager"/></tomcat-users>3.settings.xml 阅读全文
posted @ 2011-06-13 00:10 庚武 阅读(1293) 评论(1) 推荐(1) 编辑
摘要:环境:windows Server2003, Eclipse helios, MS SqlServer 2008step 1: SQL:Create table Person(id_1 bigint identity primary key,firstName_1 varchar(20),lastName_1 varchar(20),weightInKilograms_1 decimal,heightInMeters_1 decimal)step 2: dbConfig.xml<?xml version="1.0" encoding="UTF-8" 阅读全文
posted @ 2011-06-11 11:15 庚武 阅读(224) 评论(0) 推荐(0) 编辑