Skip to content

Instantly share code, notes, and snippets.

@awgtek
Created April 10, 2017 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awgtek/fa6241219b085799574cf3d4f80ea3e9 to your computer and use it in GitHub Desktop.
Save awgtek/fa6241219b085799574cf3d4f80ea3e9 to your computer and use it in GitHub Desktop.
Diffs when changing the simpapp (from WTC Samples) to point to TOLOWER
$ diff ../simpapp/build.xml build.xml
6c6
< <property file="../../../../examples.properties"/>
---
> <property file="examples.properties"/>
15,16c15,16
< <property name="ejb.jar" value="wtc_toupper.jar"/>
< <property name="ejb.client.jar" value="wtc_toupper_client.jar"/>
---
> <property name="ejb.jar" value="wtc_wl2wl.jar"/>
> <property name="ejb.client.jar" value="wtc_wl2wl_client.jar"/>
57,58c57
< <available file="${env.TUXDIR}/bin" type="dir" property="tux.present"/>
< <mkdir dir="${build}"/>
---
> <mkdir dir="${build}"/>
61d59
< <delete dir="${appdir}"/>
65,66c63
< <ant antfile="build-run.xml" target="clean"/>
< <delete dir="${build}"/>
---
> <delete dir="${build}"/>
99c96
< <arg line="ToupperBean.java" />
---
> <arg line="Wl2wlBean.java" />
109c106
< includes="ToupperBean.java, gen/*.java"
---
> includes="Wl2wlBean.java, gen/*.java"
121,122c118,119
< <property name="wls_root" value="C:/Oracle/12c/Middleware/Oracle_Home" />
< <property name="wls_home" value="${wls_root}/wlserver" />
---
> <property name="wls_root" value="C:/Oracle/Middleware" />
> <property name="wls_home" value="${wls_root}/wlserver_10.3" />
124c121
< <fileset dir="${wls_home}/modules">
---
> <fileset dir="${wls_home}/server/lib">
147a145
> <echo message="user.dir: ${user.dir}"/>
_____________________________________________________
$ diff ../../../../examples.properties examples.properties
13c13
< wls.port=7001
---
> wls.port=7003
22c22,23
< examples.domain.dir=C:/Oracle/12c/Middleware/Oracle_Home/user_projects/domains/wl_server
---
> #examples.domain.dir=C:/Oracle/12c/Middleware/Oracle_Home/user_projects/domains/wl_server
> examples.domain.dir=C:/Oracle/Middleware/user_projects/domains/base_domain
82,84c83,85
< sourceVersion=1.8
< ant.build.javac.source=1.8
< ant.build.javac.target=1.8
---
> sourceVersion=1.6
> ant.build.javac.source=1.6
> ant.build.javac.target=1.6
_________________________________________________
$ diff ../simpapp/build-run.xml build-run.xml
27c27
< <property name="myurl" value="t3://${myHost}:7001"/>
---
> <property name="myurl" value="t3://${myHost}:7003"/>
_______________________________________________
$ diff ../simpapp/Client.java Client.java
28c28
< private static final String JNDI_NAME = "tuxedo.services.ToupperHome";
---
> private static final String JNDI_NAME = "tuxedo.services.Wl2wlHome";
34c34
< private ToupperHome home;
---
> private Wl2wlHome home;
63c63
< String url = "t3://localhost:7001";
---
> String url = "t3://localhost:7003";
127c127
< Toupper toupper = (Toupper) narrow(home.create(), Toupper.class);
---
> Wl2wl toupper = (Wl2wl) narrow(home.create(), Wl2wl.class);
132c132
< converted = toupper.Toupper(this.to_convert);
---
> converted = toupper.Tolower(this.to_convert);
142c142,146
< }
---
> } catch (Exception e) {
> System.out.println("e gettingm essage" + e.getMessage());
> e.printStackTrace();
>
> }
155c159
< private ToupperHome lookupHome() throws NamingException {
---
> private Wl2wlHome lookupHome() throws NamingException {
163c167
< return (ToupperHome) narrow(home, ToupperHome.class);
---
> return (Wl2wlHome) narrow(home, Wl2wlHome.class);
__________________________________________________________
$ diff ../simpapp/ToupperBean.java Wl2wlBean.java
28,29c28,29
< remoteClassName = "Toupper",
< remoteHomeName = "ToupperHome",
---
> remoteClassName = "Wl2wl",
> remoteHomeName = "Wl2wlHome",
31,32c31,32
< @JarSettings(ejbClientJar = "wtc_toupper_client.jar")
< @JndiName(remote = "tuxedo.services.ToupperHome")
---
> @JarSettings(ejbClientJar = "wtc_wl2wl_client.jar")
> @JndiName(remote = "tuxedo.services.Wl2wlHome")
38,39c38,39
< ejbName = "Toupper")
< public class ToupperBean extends GenericSessionBean {
---
> ejbName = "Wl2wl")
> public class Wl2wlBean extends GenericSessionBean {
54c54
< public String Toupper(String toConvert) throws TPException, TPReplyException {
---
> public String Tolower(String toConvert) throws TPException, TPReplyException {
62c62
< log("toupper called, converting " + toConvert);
---
> log("tolower called, converting " + toConvert);
82c82
< myRtn = myTux.tpcall("TOUPPER", myData, 0);
---
> myRtn = myTux.tpcall("TOLOWER", myData, 0);
__________________________________________________________
new setExamplesenv.cmd:
@ECHO OFF
set JAVA_HOME=C:\PROGRA~1\Java\JDK16~1.0_4
@REM ORACLE_HOME\wl_server\samples\server
set EXAMPLES_HOME=C:\Oracle\12c\Middleware\Oracle_Home\wlserver\samples\server
call C:\Oracle\Middleware\wlserver_10.3\server\bin\setWLSEnv.cmd
@REM SET THE CLASSPATH
set CLASSPATH=%CLASSPATH%;%WEBLOGIC_CLASSPATH%;%DERBY_CLASSPATH%;%EXAMPLES_HOME%\examples\build\clientclasses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment