??xml version="1.0" encoding="utf-8" standalone="yes"?>
启动Eclipse,选择window->Preferences->MyEclipse->Application Servers->Weblogic 8
启用WebLogic服务器,配置如下Q?/span>
(1) BEA home directoryQ?/span>C:\BEA。假?/span>WebLogic安装?/span>C:\BEA文g夹中?/span>
(2)WebLogic installation directoryQ?/span>C:\BEA\weblogic81?/span>
(3)Admin usernameQ用户名?/span>
(4)Admin passwordQ密码?/span>
(5)Execution domain rootQ安装后Q启动服务的路径?/span>
(6)Execution domain nameQ?/span>mydomain?/span>
(7)Execution server nameQ?/span>myserver?/span>
(8)Hostname:PortNumberQ?/span>localhost:7001?/span>
(9)Security policy fileQ?/span>D:\BEA\weblogic81\server\lib\weblogic.policy?/span>
(10)JAAS login configuration fileQ省略?/span>
以上配置Ҏ安装情况不同而不同?br />
接着展开WebLogic 8l点Q?/span>JDK,在右边的WLS JDK name出选择WebLogic 8默认?/span>JDK?/span>
之前选择单独安装JREQ单?/span>Add按钮Q?/span>弹出WebLogic > Add JVM对话框,?/span>JRE名称处随便输入一个名字,?/span> jre
之后q要在下面的Optional Java VM argumentsQ如-ms
最后点?/span>PathsQ在双?/span>Prepend to classpath列表框中Q通过Add JAR/ZIP按钮Q加?/span>C:\BEA\weblogic81\server\lib\weblogic.jar?/span>C:\BEA\weblogic81\server\lib\webservices.jar。如果用到数据库Q还需把数据库的驱动类库加q来Q这里我们用WebLogic自带?/span>SQL Server数据库驱动库C:\BEA\weblogic81\server\lib\mssqlserver4v65.jar?/span>
云计:x存储于个人电脑、移动电话和其他讑֤上的大量信息和处理器资源集中在一P协同工作?br />
IBM正在装的云计算软g名ؓHsdoopQ运行在Linux操作pȝ上。HadoopZ名ؓNutch的开源搜索项目以及Google的MapReduceQ映化QY?br />
随时随地上网处理数据 “云计?#8221;实现信息通存通取
Web2.0 :搜烦Q社区化|络Q网l媒体(音乐Q视频等Q,内容聚合和聚集(RSSQ,
mashups(一U交互式Web 应用E序)Q?/p>
}
}
#include "btpcomm.h"
#include "btpcmmcr.h"
#include "sqlenv.h"
main()
{
EXEC SQL INCLUDE SQLCA;
EXEC SQL BEGIN DECLARE SECTION ;
char txnbrh[12+1];
char txndt[10+1];
long txncnt;
EXEC SQL END DECLARE SECTION;
EXEC SQL update gcdgbnk set devlogrrn=0 where 1=1;
if ((sqlca.sqlcode != 0 ) && (sqlca.sqlcode != 100))
{
sprintf( cGlbWk, "update gcdgbnk err %d", sqlca.sqlcode );
BtpApDisp( cPrgID, cGlbWk );
BtpBatReturn(BATPROCDRUNERR, "数据库操作失?);
return(-1);
}
EXEC SQL INSERT INTO nmgtact SELECT brhid, :txndt, count(*), sum(txnamt)
FROM gctact
WHERE txndate = :txndt
AND mchtype = '6050'
AND revcd = '0'
GROUP BY brhid;
if ((sqlca.sqlcode != 0 ) && (sqlca.sqlcode != 100))
{
sprintf( cGlbWk, "insert into nmgtact err %d", sqlca.sqlcode );
BtpApDisp( cPrgID, cGlbWk );
BtpBatReturn(BATPROCDRUNERR, "数据库操作失?);
return(-1);
}
BtpBatReturn(BATPROCDRUNOK, "");
return;
}
静态嵌入SQL语句的应用程序:
1Qinclude语句定义q描叙了SQLCA的结构。SQLCA用于应用E序和数据库之间的通讯Q其中SQLCODEq回SQL语句执行后的l果状态?br />
2Q在BEGIN DECLARE SECTION和END DECLARE SECTION之间定义了宿d量。宿d量可被SQL语句引用Q也可以被C语言语句引用。它用于程序中的数据通过SQL语句传给数据库管理器Q或从数据库理器接收查询的l果。在SQL语句中,d量前均有“Q?#8221;标志以示区别
3Q在gctact中选择brhid,插入nmgtact表;
解压后的目录l构如下图,通过执行build.bat可以~译出完整的Eclipse-sdk-3.3.1.1q行包,和我们网上下载的一栗但是这个过E可能需要一个小时左右的旉Q要有耐性哦。所有的插g工程目录在plugins中,我们只需要导入现有工E即可把plugins下所有工E导入?br />
EclipseRCPEclipse RCP
Source InsightProject
EclipseEclipse1exeeclipse.exeEclipsestartup.jarEclipseeclipse-sourceBuild-srcIncluded-3.3.1.1"plugins"org.eclipse.platform"launchersrc.zipwin32win32build.batC2javaEclipse 3.3.1.1eclipsestartup.jarorg.eclipse.equinox.launcher.Main.maineclipsestartup.jarEclipse 3.3.1.1javajava -jar startup.jarEclipseorg.eclipse.core.launcher.Mainorg.eclipse.equinox.launcher.Main.mainorg.eclipse.equinox.launcherMain.javaeclipse-sourceBuild-srcIncluded-3.3.1.1"plugins"org.eclipse.platform"launchersrc.zipeclipse.c我们?/span>mainbasicRun
protectedvoid basicRun(String[] args) throws Exception { System.getProperties().put("eclipse.startTime", Long.toString(System.currentTimeMillis())); //$NON-NLS-1$ commands = args; String[] passThruArgs = processCommandLine(args); if (!debug) // debug can be specified as system property as well debug = System.getProperty(PROP_DEBUG) != null; setupVMProperties(); //VM processConfiguration(); //configuration/config.ini // need to ensure that getInstallLocation is called at least once to initialize the value. // Do this AFTER processing the configuration to allow the configuration to set // the install location. getInstallLocation(); // locate boot plugin (may return -dev mode variations) URL[] bootPath = getBootPath(bootLocation); //Set up the JNI bridge. We need to know the install location to find the shared library setupJNI(bootPath); //ensure minimum Java version, do this after JNI is set up so that we can write an error message //with exitdata if we fail. if (!checkVersion(System.getProperty("java.version"), System.getProperty(PROP_REQUIRED_JAVA_VERSION))) //$NON-NLS-1$ return; setSecurityPolicy(bootPath); // // splash handling is done here, because the default case needs to know // the location of the boot plugin we are going to use handleSplash(bootPath); beforeFwkInvocation(); invokeFramework(passThruArgs, bootPath); //Eclipse }