Hi, I tried to find the answer in the archives, but no luck.

I am investigating a directory-dependency issue and need to know if there is
a way to resolve this. When building a set of EJBjars, there exist multiple
xml which have reference to a dtd. In this reference, our source has
hard-coded a path dependency, such as in the included file. Is there some
way to remove this so we can have multiple builds, or so that developers are
not locked into a source-dependent build environment? I tried building with
the path replaced by an ANT-defined variable but the XML parser croaked on
that. I also found that there exists at sun.com a reference to this file
(http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd,) but occasionally our
network fails to locate this during the build and the build will fail.

----------------
Mark Jaffe
Release Engineer
Eturn Communications Inc.,
408-331-0863
<?xml version="1.0" encoding="Cp1252"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'file:///d:/cvswork/YukonUS/Yukon/externaldtds/ejb-jar_1_1.dtd'>

<ejb-jar>
  <enterprise-beans>
    <entity>
      <ejb-name>AccessLogBean</ejb-name>
      <home>com.eturn.ejb.entity.accesslog.AccessLogHome</home>
      <remote>com.eturn.ejb.entity.accesslog.AccessLog</remote>
      <ejb-class>com.eturn.ejb.entity.accesslog.AccessLogBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>com.eturn.ejb.entity.accesslog.AccessLogPK</prim-key-class>
      <reentrant>False</reentrant>
      <cmp-field>
	<field-name>id</field-name>
      </cmp-field>
      <cmp-field>
	<field-name>memberId</field-name>
      </cmp-field>
      <cmp-field>
	<field-name>loginTime</field-name>
      </cmp-field>
      <resource-ref>
	<res-ref-name>jdbc/etPool</res-ref-name>
	<res-type>javax.sql.DataSource</res-type>
	<res-auth>Container</res-auth>
      </resource-ref>
    </entity>
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
	<ejb-name>AccessLogBean</ejb-name>
	<method-intf>Remote</method-intf>
	<method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>

Reply via email to