At 11:29 15/01/2003 +0000, you wrote:

Hi,

I have a problem generating the web-service.xml using the xdoclet+xjavadoc jar files from sourceforge. The process correctly generates all interfaces and deployment descriptor except for the web-service.xml file. I've included the entries from both the Ant build file and Bean source code. Am I missing a tag ????.

Bean
====
/**
*
* @ejb:bean name="Hello"
* jndi-name="Hello"
* type="Stateless"
* view-type="both"
* @ejb:interface generate="local,remote"
*
* @ejb:ejb-ref ejb-name="Hello"
* view-type="local"
* ref-name="Hello"
* @ejb:transaction type="Required"
* @ejb:transaction-type type="Container"
*
* @jboss-net:web-service urn="Hello"
* expose-all="true"
*
*/
ANT
====
<ejbdoclet
sourcepath="${src.dir}/main/src/"
destdir="${generated.java.dir}"
classpath ="${classpath}"
ejbspec="2.0"
force="true">

<fileset dir="${src.dir}/main/src/">
<include name="org/jboss/net/sample/hello/ejb/*.java" />
</fileset>

<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<remoteinterface destdir="${generated.java.dir}"/>
<localinterface destdir="${generated.java.dir}"/>
<homeinterface destdir="${generated.java.dir}"/>
<localhomeinterface destdir="${generated.java.dir}"/>
<deploymentdescriptor destdir="${generated.java.dir}/ejb/META-INF"/>

<jboss version="2.4" xmlencoding="UTF-8" destdir="${generated.java.dir}/ejb/META-INF"/>

</ejbdoclet>


Cheers

TC

Technology
Tel: 020 7574 8880 (ext 48120)
Fax: 020 7574 8120
E-mail: [EMAIL PROTECTED]

HBOS Treasury Services plc
33 Old Broad Street
London
EC2N 1HZ

Tony,

I believe you need to add the JBossNetSubTask to the jboss xdoclet modules. I've not done this yet myself, but should be soon.

Even better I found an old email on this from Jason Essington on this from a while back last December 11th. He said that you need to build jboss.net, then you can use the appropriate jar which you find at:

The appropriate jar built in the jboss.net module and after a build is
located at:

/jboss-head/jboss.net/output/lib/xdoclet-module-jboss-net.jar

Then you can use it like this:

the <jbossnet> subtask will be included in the xdoclet-jboss-module.jar file.

the supported tags for session beans look something like:
Class Level Tag
* @jboss-net.web-service
* urn="MyServiceName"
* expose-all="true"
*
* @jboss-net.authentication
* domain="SomeSecurityDomain"
*
* @jboss-net.authorization
* domain="SomeSecurityDomain"
* allowed-roles="niceGuy,niceGirl"
* denied-roles="badHax0r"

Method level tag
* @jboss-net.web-method

Entity beans have a class tag that look something like:
* @jboss-net.xml-schema
* urn="SomeURN"
* data-object="true"

If data-object="true" is used then the bean's data object is serialized rather than the entity bean itself.

hope this helps

-jason





cheers,

Bruce

Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED]


-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Reply via email to