- This topic has 2 replies, 2 voices, and was last updated 19 years, 2 months ago by peterharris.
-
AuthorPosts
-
peterharrisMemberI hope this is posted to the correct location.
I have just built my first entity bean (after following the session bean tuorials).
Xdoclet generates three xml files:
jaws.xml
JBoss.xml
jbosscmp-jdbc.xmlThe DOCTYPE statement for all these files refers to dtd files that are available when I am connected to the web (which is not often on dial up) but give a “No Route To Host” error when I am not connected.
Help please. How do I get rid of this?
Thanks
GregMemberCan you post the content of these 3 xml files to the forums? Use the
switch will help with the formatting.
peterharrisMember@support-greg wrote:
Can you post the content of these 3 xml files to the forums? Use the
switch will help with the formatting.
Thanks Gregg. listed below as requested.
I should point out that I am using Eclipse 3.1 and MyEclipse 4.0 Milestone 2
jboss.xml
===================<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> <jboss> <enterprise-beans> <!-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jboss-beans.xml that contains the <session></session>, <entity></entity> and <message-driven></message-driven> markup for those beans. --> <entity> <ejb-name>myEntity</ejb-name> <jndi-name>ejb/myEntity</jndi-name> <local-jndi-name>myEntityLocal</local-jndi-name> <method-attributes> </method-attributes> </entity> </enterprise-beans> <resource-managers> </resource-managers> <!-- | for container settings, you can merge in jboss-container.xml | this can contain <invoker-proxy-bindings/> and <container-configurations/> --> </jboss> {code] jbosscmp-jdb.xml ===================
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd"> <jbosscmp-jdbc> <defaults> <datasource>java:/MySQLDB</datasource> <datasource-mapping>mySQL</datasource-mapping> </defaults> <enterprise-beans> <!-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml that contains the <entity></entity> markup for those beans. --> <entity> <ejb-name>myEntity</ejb-name> <table-name>mos_users</table-name> <cmp-field> <field-name>id</field-name> <column-name>id</column-name> </cmp-field> <cmp-field> <field-name>name</field-name> <column-name>name</column-name> </cmp-field> <!-- jboss 3.2 features --> <!-- optimistic locking does not express the exclusions needed --> </entity> </enterprise-beans> </jbosscmp-jdbc> {code]
-
AuthorPosts