diff options
Diffstat (limited to 'tmp/en-US/xml/Common_Content/Program_Listing.xml')
-rw-r--r-- | tmp/en-US/xml/Common_Content/Program_Listing.xml | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tmp/en-US/xml/Common_Content/Program_Listing.xml b/tmp/en-US/xml/Common_Content/Program_Listing.xml deleted file mode 100644 index 32b94f5..0000000 --- a/tmp/en-US/xml/Common_Content/Program_Listing.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version='1.0' encoding='utf-8' ?> -<!DOCTYPE programlisting PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ -<!ENTITY YEAR "2014"> -<!ENTITY HOLDER "| You need to change the HOLDER entity in the en-US/Fedora_Cookbook.ent file |"> -<!ENTITY PRODUCT "Fedora Documentation"> -<!ENTITY BOOKID "cookbook"> -<!ENTITY BZURL "<ulink url='https://bugzilla.redhat.com/enter_bug.cgi?product=&PRODUCT;&component=&BOOKID;'>http://bugzilla.redhat.com/</ulink>"> - -]> - -<programlisting lang="en-US" language="Java">package org.jboss.book.jca.ex1; - -import javax.naming.InitialContext; - -public class ExClient -{ - public static void main(String args[]) - throws Exception - { - InitialContext iniCtx = new InitialContext(); - Object ref = iniCtx.lookup("EchoBean"); - EchoHome home = (EchoHome) ref; - Echo echo = home.create(); - - System.out.println("Created Echo"); - - System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); - } -}</programlisting> - |