You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Chris M. <cm...@us...> - 2006-04-18 16:10:39
|
User: cmicali Date: 06/04/18 09:10:33 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/SharpZipLib - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:39
|
User: cmicali Date: 06/04/18 09:10:32 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Dialogs - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:39
|
User: cmicali Date: 06/04/18 09:10:31 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Commands - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:38
|
User: cmicali Date: 06/04/18 09:10:33 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Wizard - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:38
|
User: cmicali Date: 06/04/18 09:10:33 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Utils - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:26
|
User: cmicali Date: 06/04/18 09:10:22 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:25
|
User: cmicali Date: 06/04/18 09:10:22 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/Graphics - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:20
|
User: cmicali Date: 06/04/18 09:10:19 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn - New directory |
From: Chris M. <cm...@us...> - 2006-04-18 16:10:20
|
User: cmicali Date: 06/04/18 09:10:15 plugins/etc/andromda-dotnet - New directory |
From: Vance K. <va...@us...> - 2006-04-17 14:53:16
|
User: vancek Date: 06/04/17 07:53:06 Added: andromda-ejb3/src/site/xdoc howto18.xml Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/xdoc/howto18.xml Index: howto18.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - HowTo WebService</title> </properties> <body> <section name="WebService"> <p> This howto will guide you to simplifying web service endpoint development using the JSR181 web service metadata programming model. You can find out more information at <a href="http://www.jcp.org/en/jsr/detail?id=181">JSR 181 Web Service Metadata</a>. </p> <p> You still have the choice of using the WebService cartridge if you wish to expose session beans or POJOs. Just follow the instructions <a href="http://team.andromda.org/docs/andromda-webservice-cartridge/index.html">here</a>. </p> <p> Using the Andromda Project Generator, you must enable WebServices and if you selected 'ejb3' for the persistence type, then you will get an optional question to enable JSR 181 annotated metadata for the project. </p> <p> The project generator will add the following properties to your andromda.xml ejb3 namespace. <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... <property name="webServiceEnabled">true</property> <property name="webServiceContextRoot">/${application.id}-ws</property> <property name="webServiceUrlPattern">/services</property> ... </properties> </namespace> ]]></source> The <code>webServiceEnabled</code> property allows you to switch between the WebService cartridge and the EJB3 JSR181 metadata model. The <code>webServiceContextRoot</code> and <code>webServiceUrlPattern</code> allows you to modify the construction of the URL for the webservice endpoints. </p> <p> The following is a very simple example exposing all session bean operations. This is achieved by modelling the <![CDATA[<<WebService>>]]> stereotype on the <code>TicketService</code> session bean. Modelling this is very similar to the WebService cartridge process. The EJB3 cartridge introduces a few extra tagged values. The example below models the <code>@andromda.webservice.operation.result.name</code> tagged value on the <code>processMinimal</code> operation. </p> <p> <img src="images/org/andromda/test/18/a/uml.gif"/> </p> <p> <ul> <li class="gen">Auto-generated source that does not need manual editing</li> <li class="impl">Auto-generated source that should be edited manually</li> <li class="changed">File that is affected by the modifications applied in this section</li> </ul> </p> <p> <ul> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketEmbeddable.java"><code>TicketEmbeddable.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto18/a/Ticket.java"><code>Ticket.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/ServiceLocator.java"><code>ServiceLocator.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketServiceBase.java"><code>TicketServiceBase.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketServiceRemote.java"><code>TicketServiceRemote.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketServiceDelegate.java"><code>TicketServiceDelegate.java</code></a></li> <li class="impl"><a class="changed" href="src/org/andromda/test/howto18/a/TicketServiceBean.java"><code>TicketServiceBean.java</code></a></li> <li class="gen"><a class="changed" href="src/org/andromda/test/howto18/a/TicketServiceWSInterface.java"><code>TicketServiceWSInterface.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketServiceException.java"><code>TicketServiceException.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/TicketException.java"><code>TicketException.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/ejb-jar.xml"><code>ejb-jar.xml</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/jboss.xml"><code>jboss.xml</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto18/a/persistence.xml"><code>persistence.xml</code></a></li> </ul> </p> <p> The <code>TicketServiceBean</code> implementation contains the <code>@WebService</code> annotation defining the <code>endpointInterface</code> property that references the web service interface <code>TicketServiceWSInterface</code> containing all other annotations. Default values are provided via namespace properties, but you can override them using tagged values. </p> <a name="WebService_Client"/> <subsection name="WebService Client"> <p> Here is a very brief example on calling a web service endpoint with the help of JBoss client libraries. </p> <p> Create a configuration file for generating the client side artifact <code>jaxrpc-mapping.xml</code>. The config below assumes JBoss is running on the localhost and you have deployed your project exposing web service endpoints on the location specified below. <source language="xml"><![CDATA[ <configuration xmlns="http://www.jboss.org/jbossws-tools"> <wsdlToJava wsdlLocation="http://localhost:8080/ejb3demo-ws/services/TicketService?wsdl"> <mapping fileName="jaxrpc-mapping.xml"/> </wsdlToJava> </configuration> ]]></source> </p> <p> Now run the <code>wstools</code> binary (available in JBoss 5.x or from JBoss 4.0.4-CR3 onwards) on this configuration file. </p> <p> <code> jboss-inst/bin/wstools.sh -cp {path to TicketService.class} -config jbosswsConfig.xml </code> </p> <p> This will create the <code>jaxrpc-mapping.xml</code> artifact. </p> <p> The client can invoke exposed operations like so. <source><![CDATA[ URL wsdlURL = new URL("http://localhost:8080/ejb3demo3-ws/services/TicketService?wsdl"); ServiceFactoryImpl factory = new ServiceFactoryImpl(); File mappingFile = new File("jaxrpc-mapping.xml"); Service service = factory.createService(wsdlURL, null, mappingFile.toURL()); TicketServiceWSInterface port = (TicketServiceWSInterface)service.getPort(TicketServiceWSInterface.class); port.process(1, "000", "Test"); ]]></source> </p> </subsection> <a name="Helpful_Hints"/> <subsection name="Helpful Hints"> <p> Do not over-load operations as this will cause conflicts when exposing similarly named session bean operations as web service endpoints. </p> <p> In the example above, <code>TicketServiceBean</code> is generated once only since it contains the session bean implementation. Therefore, the <code>@WebService</code> annotation is enabled on generation of the class. To stop exposing this bean, you must manually comment out the following: <source><![CDATA[ @javax.jws.WebService(endpointInterface = "org.andromda.demo3.ejb3.test.TicketServiceWSInterface") ]]></source> </p> </subsection> </section> </body> </document> |
From: Vance K. <va...@us...> - 2006-04-17 14:52:53
|
User: vancek Date: 06/04/17 07:52:52 Modified: andromda-ejb3/src/site/xdoc howto.xml Log: added web service howto index & fixed message-driven howto index Revision Changes Path 1.12 +17 -6 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- howto.xml 20 Mar 2006 08:52:49 -0000 1.11 +++ howto.xml 17 Apr 2006 14:52:52 -0000 1.12 @@ -83,7 +83,7 @@ <li><a href="howto5.html#Enumeration_Types">Enumeration Types</a></li> </ul> </li> - <li><a href="howto6.html">OCL to Query generator (finder methods)</a></li> + <li><a href="howto6.html">Queries & Finder Methods</a></li> <li><a href="howto7.html">Exception Handling</a></li> <li> <a href="howto8.html">Security</a> @@ -109,11 +109,15 @@ <ul> <li><a href="howto10.html#Destination_Type">Destination Type</a></li> <li><a href="howto10.html#Destination">Destination</a></li> - <li><a href="howto10.html#Discriminator_Components">Discriminator Components</a></li> - <li><a href="howto10.html#Table_Per_Class_Strategy">Table Per Class Strategy</a></li> - <li><a href="howto10.html#Table_Join_Strategy">Table Join Strategy</a></li> - <li><a href="howto10.html#Generic_Finder_Methods">Generic Finder Methods</a></li> - <li><a href="howto10.html#Helpful_Hints">Helpful Hints</a></li> + <li><a href="howto10.html#Acknowledge_Mode">Acknowledge Mode</a></li> + <li><a href="howto10.html#Message_Selector">Message Selector</a></li> + <li><a href="howto10.html#Subscription_Durability">Subscription Durability</a></li> + <li><a href="howto10.html#Listener_Interceptor">Listener Interceptor</a></li> + <li><a href="howto10.html#Transaction_Context">Transaction Context</a></li> + <li><a href="howto10.html#Security">Security</a></li> + <li><a href="howto10.html#Message_Driven_Context">Message Driven Context</a></li> + <li><a href="howto10.html#Session_Bean_Injection">Session Bean Injection</a></li> + <li><a href="howto10.html#Resource_Injection">Resource Injections</a></li> </ul> </li> <li> @@ -169,6 +173,13 @@ <li><a href="howto17.html#Query_Cache">Query Caching</a></li> </ul> </li> + <li> + <a href="howto18.html">WebService</a> + <ul> + <li><a href="howto18.html#WebService_Client">WebService Client</a></li> + <li><a href="howto18.html#Helpful_Hints">Helpful Hints</a></li> + </ul> + </li> </ul> </p> <p> |
From: Vance K. <va...@us...> - 2006-04-17 14:51:53
|
User: vancek Date: 06/04/17 07:51:52 Added: andromda-ejb3/src/site/resources/images/org/andromda/test/18/a uml.gif Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/18/a/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-04-17 14:51:50
|
User: vancek Date: 06/04/17 07:51:46 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/18 - New directory |
From: Vance K. <va...@us...> - 2006-04-17 14:51:47
|
User: vancek Date: 06/04/17 07:51:46 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/18/a - New directory |
From: Vance K. <va...@us...> - 2006-04-17 02:06:25
|
User: vancek Date: 06/04/16 19:06:24 Modified: andromda-ejb3/src/site/xdoc howto17.xml Log: added navigation to webservice howto Revision Changes Path 1.2 +5 -0 cartridges/andromda-ejb3/src/site/xdoc/howto17.xml Index: howto17.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto17.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto17.xml 20 Mar 2006 08:51:46 -0000 1.1 +++ howto17.xml 17 Apr 2006 02:06:24 -0000 1.2 @@ -339,5 +339,10 @@ </p> </subsection> </section> + <section name="Next"> + <p> + To expose service operations and session beans as webservices click <a href="howto18.html">here</a>. + </p> + </section> </body> </document> |
From: Vance K. <va...@us...> - 2006-04-17 02:04:17
|
User: vancek Date: 06/04/16 19:04:16 Modified: andromda-ejb3/src/site site.xml Log: added webservices howto menu item Revision Changes Path 1.9 +1 -0 cartridges/andromda-ejb3/src/site/site.xml Index: site.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/site.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- site.xml 17 Mar 2006 14:41:32 -0000 1.8 +++ site.xml 17 Apr 2006 02:04:16 -0000 1.9 @@ -34,6 +34,7 @@ <item name="Transactions" href="howto15.html"/> <item name="Manageable Entities" href="howto16.html"/> <item name="Caching and Clustering" href="howto17.html"/> + <item name="Webservices" href="howto18.html"/> <item name="Tips & Tricks" href="tips.html"/> </menu> </body> |
From: Vance K. <va...@us...> - 2006-04-17 02:02:39
|
User: vancek Date: 06/04/16 19:02:38 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added methodName and resultName to EJB3WebServiceOperationFacade Revision Changes Path 1.30 +192 -182 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-04-17 02:01:43
|
User: vancek Date: 06/04/16 19:01:43 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3WebServiceOperationFacadeLogicImpl.java Log: fixed line breaks in parameter formatting in operation signature. implemented handleGetMethodName and handleGetResultName. Revision Changes Path 1.2 +23 -5 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3WebServiceOperationFacadeLogicImpl.java Index: EJB3WebServiceOperationFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3WebServiceOperationFacadeLogicImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- EJB3WebServiceOperationFacadeLogicImpl.java 11 Apr 2006 16:12:14 -0000 1.1 +++ EJB3WebServiceOperationFacadeLogicImpl.java 17 Apr 2006 02:01:43 -0000 1.2 @@ -85,10 +85,7 @@ { buffer.append(","); } - else - { buffer.append('\n'); - } // Add WebParam annotation if (withArgumentNames) @@ -108,8 +105,8 @@ buffer.append(paramter.getName()); } commaNeeded = true; - buffer.append('\n'); } + buffer.append('\n'); if (commaNeeded) { buffer.append(" "); @@ -117,4 +114,25 @@ return buffer.toString(); } + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacadeLogic#handleGetMethodName() + */ + protected String handleGetMethodName() + { + String methodName = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_WEBSERVICE_OPERATION_NAME); + if (StringUtils.isBlank(methodName)) + { + methodName = StringUtils.capitalize(this.getName()); + } + return methodName; + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacadeLogic#handleGetResultName() + */ + protected String handleGetResultName() + { + return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_WEBSERVICE_OPERATION_RESULT_NAME); + } + } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-04-17 02:00:33
|
User: vancek Date: 06/04/16 19:00:32 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3Profile.java Log: declared TAGGEDVALUE_WEBSERVICE_OPERATION_NAME and TAGGEDVALUE_WEBSERVICE_OPERATION_RESULT_NAME constants Revision Changes Path 1.23 +11 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java Index: EJB3Profile.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -w -r1.22 -r1.23 --- EJB3Profile.java 11 Apr 2006 16:08:57 -0000 1.22 +++ EJB3Profile.java 17 Apr 2006 02:00:31 -0000 1.23 @@ -511,4 +511,15 @@ * Defines the webservice method as oneway */ public static final String TAGGEDVALUE_WEBSERVICE_OPERATION_ONEWAY = profile.get("WEBSERVICE_OPERATION_ONEWAY"); + + /** + * Defines the webservice method name + */ + public static final String TAGGEDVALUE_WEBSERVICE_OPERATION_NAME = profile.get("WEBSERVICE_OPERATION_NAME"); + + /** + * Defines the webservice method result name + */ + public static final String TAGGEDVALUE_WEBSERVICE_OPERATION_RESULT_NAME = + profile.get("WEBSERVICE_OPERATION_RESULT_NAME"); } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-04-17 01:59:13
|
User: vancek Date: 06/04/16 18:59:13 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: defined @andromda.webservice.operation.name and @andromda.webservice.operation.result.name tag elements Revision Changes Path 1.27 +14 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml Index: profile.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -w -r1.26 -r1.27 --- profile.xml 11 Apr 2006 16:07:01 -0000 1.26 +++ profile.xml 17 Apr 2006 01:59:13 -0000 1.27 @@ -1308,6 +1308,20 @@ <value>false</value> </allowedValues> </element> + <element name="WEBSERVICE_OPERATION_NAME"> + <documentation> + Specifies the web service method name. + </documentation> + <value>@andromda.webservice.operation.name</value> + <appliedOnElement>Service and WebService</appliedOnElement> + </element> + <element name="WEBSERVICE_OPERATION_RESULT_NAME"> + <documentation> + Specifies the web service method result name. + </documentation> + <value>@andromda.webservice.operation.result.name</value> + <appliedOnElement>Service and WebService</appliedOnElement> + </element> </elementGroup> </elements> </profile> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-04-17 01:57:46
|
User: vancek Date: 06/04/16 18:57:46 Modified: andromda-ejb3/src/main/resources/templates/ejb3 WebServiceInterface.vsl Log: added support for @WebResult on operations Revision Changes Path 1.2 +4 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/WebServiceInterface.vsl Index: WebServiceInterface.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/WebServiceInterface.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- WebServiceInterface.vsl 11 Apr 2006 15:45:14 -0000 1.1 +++ WebServiceInterface.vsl 17 Apr 2006 01:57:46 -0000 1.2 @@ -27,7 +27,10 @@ ## All operations throw java.rmi.RemoteException ## #* *##if (!$operation.lifecycleCallback && ($operation.visibility == "public") && ($operation.viewTypeRemote || $operation.viewTypeBoth) && ($operation.exposed)) - @javax.jws.WebMethod(operationName = "${stringUtils.capitalize($operation.name)}") + @javax.jws.WebMethod(operationName = "$operation.methodName") +#* *##if ($stringUtils.isNotBlank($operation.resultName)) + @javax.jws.WebResult(name = "${operation.resultName}") +#* *##end #* *##if ($operation.oneway) @javax.jws.Oneway #* *##end |
From: Vance K. <va...@us...> - 2006-04-17 01:56:39
|
User: vancek Date: 06/04/16 18:56:38 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: fixed comments Revision Changes Path 1.12 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- SessionBeanImpl.vsl 11 Apr 2006 15:43:34 -0000 1.11 +++ SessionBeanImpl.vsl 17 Apr 2006 01:56:36 -0000 1.12 @@ -66,7 +66,7 @@ #**##foreach ($operation in $operations) #* *##if (!$operation.lifecycleCallback) /** - * @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)} + * @see ${service.fullyQualifiedServiceBaseName}#${operation.getSignature(false)} */ #* *##set ($abstract = $service.abstract && $operation.abstract) protected#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature |
From: Vance K. <va...@us...> - 2006-04-11 16:16:11
|
User: vancek Date: 06/04/11 09:16:07 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3FinderMethodFacadeLogicImpl.java Log: use Hibernate-QL instead of EJB-QL until a new EJB3-QL is added - when setting query as a constraint Revision Changes Path 1.6 +1 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java Index: EJB3FinderMethodFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- EJB3FinderMethodFacadeLogicImpl.java 20 Mar 2006 08:48:06 -0000 1.5 +++ EJB3FinderMethodFacadeLogicImpl.java 11 Apr 2006 16:16:07 -0000 1.6 @@ -42,7 +42,7 @@ protected java.lang.String handleGetQuery() { // first see if there is a query stored as a constraint - String queryString = super.getQuery("query.EJB-QL"); + String queryString = super.getQuery("query.Hibernate-QL"); // otherwise see if there is a query stored as a tagged value if (StringUtils.isEmpty(queryString)) |
From: Vance K. <va...@us...> - 2006-04-11 16:13:56
|
User: vancek Date: 06/04/11 09:13:55 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added EJB3WebServiceFacade and EJB3WebServiceOperationFacade added serviceBaseName, fullyQualifiedServiceBaseName, webServiceEnabled and webServiceOperationExists to EJB3SessionFacade Revision Changes Path 1.29 +182 -163 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-04-11 16:12:18
|
User: vancek Date: 06/04/11 09:12:14 Added: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3WebServiceOperationFacadeLogicImpl.java EJB3WebServiceFacadeLogicImpl.java Log: initial revision - jsr181 webservices Revision Changes Path 1.1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3WebServiceOperationFacadeLogicImpl.java Index: EJB3WebServiceOperationFacadeLogicImpl.java =================================================================== package org.andromda.cartridges.ejb3.metafacades; import java.util.Iterator; import org.andromda.cartridges.ejb3.EJB3Profile; import org.andromda.metafacades.uml.ParameterFacade; import org.andromda.metafacades.uml.UMLProfile; import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.StringUtils; /** * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacade. * * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacade */ public class EJB3WebServiceOperationFacadeLogicImpl extends EJB3WebServiceOperationFacadeLogic { public EJB3WebServiceOperationFacadeLogicImpl (Object metaObject, String context) { super (metaObject, context); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacade#isExposed() */ protected boolean handleIsExposed() { return this.getOwner().hasStereotype(UMLProfile.STEREOTYPE_WEBSERVICE) || this.hasStereotype(UMLProfile.STEREOTYPE_WEBSERVICE_OPERATION); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacadeLogic#handleIsOneway() */ protected boolean handleIsOneway() { return BooleanUtils.toBoolean( (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_WEBSERVICE_OPERATION_ONEWAY)); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceOperationFacadeLogic#getAnnotatedSignature() */ protected String handleGetAnnotatedSignature() { final StringBuffer signature = new StringBuffer(this.getName()); signature.append("("); signature.append(this.getAnnotatedTypedArgumentList(true, null)); signature.append(")"); return signature.toString(); } /** * @param b * @param object * @return */ private String getAnnotatedTypedArgumentList(boolean withArgumentNames, String modifier) { final StringBuffer buffer = new StringBuffer(); final Iterator parameterIterator = this.getArguments().iterator(); boolean commaNeeded = false; while (parameterIterator.hasNext()) { ParameterFacade paramter = (ParameterFacade)parameterIterator.next(); String type = null; if (paramter.getType() == null) { this.logger.error( "ERROR! No type specified for parameter --> '" + paramter.getName() + "' on operation --> '" + this.getName() + "', please check your model"); } else { type = paramter.getType().getFullyQualifiedName(); } if (commaNeeded) { buffer.append(","); } else { buffer.append('\n'); } // Add WebParam annotation if (withArgumentNames) { buffer.append(" @javax.jws.WebParam(name = \"" + StringUtils.capitalize(paramter.getName()) + "\")"); buffer.append(" "); } if (StringUtils.isNotBlank(modifier)) { buffer.append(modifier); buffer.append(" "); } buffer.append(type); if (withArgumentNames) { buffer.append(" "); buffer.append(paramter.getName()); } commaNeeded = true; buffer.append('\n'); } if (commaNeeded) { buffer.append(" "); } return buffer.toString(); } } 1.1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3WebServiceFacadeLogicImpl.java Index: EJB3WebServiceFacadeLogicImpl.java =================================================================== package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; import org.andromda.cartridges.ejb3.EJB3Profile; import org.andromda.cartridges.ejb3.EJB3ScriptHelper; import org.andromda.metafacades.uml.OperationFacade; import org.andromda.metafacades.uml.UMLProfile; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; import org.apache.commons.lang.StringUtils; /** * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade. * * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade */ public class EJB3WebServiceFacadeLogicImpl extends EJB3WebServiceFacadeLogic { /** * The property which stores the pattern defining the web service interface name. */ private static final String WEB_SERVICE_INTERFACE_NAME_PATTERN = "webServiceInterfaceNamePattern"; /** * The property defining the default style to give the web services. */ private static final String PROPERTY_DEFAULT_STYLE = "webServiceDefaultStyle"; /** * Represents a "document" style. */ private static final String STYLE_DOCUMENT = "document"; /** * Represents a "rpc" style. */ private static final String STYLE_RPC = "rpc"; /** * The property defining the default style to give the web services. */ private static final String PROPERTY_DEFAULT_USE = "webServiceDefaultUse"; /** * Represents a "literal" use. */ private static final String USE_LITERAL = "literal"; /** * Represents an "encoded" use. */ private static final String USE_ENCODED = "encoded"; /** * Represents the default parameter encoding style */ private static final String PROPERTY_DEFAULT_PARAMETER_STYLE = "webServiceDefaultParameterStyle"; /** * Represents a "wrapped" parameter style. */ private static final String PARAMETER_STYLE_WRAPPED = "wrapped"; /** * Represents a "bare" parameter style. */ private static final String PARAMETER_STYLE_BARE = "bare"; /** * Represents the qualified name local part pattern */ private static final String QNAME_LOCAL_PART_PATTERN = "webServiceQualifiedNameLocalPartPattern"; /** * Determine if the namespace should be reversed */ private static final String REVERSE_NAMESPACE = "webServiceReverseNamespace"; /** * Retrieve the namespace pattern used to generate the namespace */ private static final String NAMESPACE_PATTERN = "webServiceNamespacePattern"; /** * * @param metaObject * @param context */ public EJB3WebServiceFacadeLogicImpl (Object metaObject, String context) { super (metaObject, context); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getFullyQualifiedWebServiceInterfaceName() */ protected java.lang.String handleGetFullyQualifiedWebServiceInterfaceName() { return EJB3MetafacadeUtils.getFullyQualifiedName( this.getPackageName(), this.getWebServiceInterfaceName(), null); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getWebServiceInterfaceName() */ protected java.lang.String handleGetWebServiceInterfaceName() { String webServiceInterfaceNamePattern = String.valueOf(this.getConfiguredProperty(WEB_SERVICE_INTERFACE_NAME_PATTERN)); return MessageFormat.format( webServiceInterfaceNamePattern, new Object[] {StringUtils.trimToEmpty(this.getName())}); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getStyle() */ protected java.lang.String handleGetStyle() { String style = (String)this.findTaggedValue(UMLProfile.TAGGEDVALUE_WEBSERVICE_STYLE); if (StringUtils.isEmpty(style)) { style = String.valueOf(this.getConfiguredProperty(PROPERTY_DEFAULT_STYLE)); } return style; } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#getUse() */ protected java.lang.String handleGetUse() { String use = (String)this.findTaggedValue(UMLProfile.TAGGEDVALUE_WEBSERVICE_USE); if (StringUtils.isEmpty(use)) { use = String.valueOf(this.getConfiguredProperty(PROPERTY_DEFAULT_USE)); } return use; } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isRpcStyle() */ protected boolean handleIsRpcStyle() { return this.getStyle().equalsIgnoreCase(STYLE_RPC); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isDocumentStyle() */ protected boolean handleIsDocumentStyle() { return this.getStyle().equalsIgnoreCase(STYLE_DOCUMENT); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isEncodedUse() */ protected boolean handleIsEncodedUse() { return this.getStyle().equalsIgnoreCase(USE_ENCODED); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacade#isLiteralUse() */ protected boolean handleIsLiteralUse() { return this.getStyle().equalsIgnoreCase(USE_LITERAL); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleIsWebServiceOperationsExist() */ protected boolean handleIsWebServiceOperationsExist() { return CollectionUtils.find( this.getOperations(), new Predicate() { public boolean evaluate(final Object object) { boolean isWebService = false; final OperationFacade operation = (OperationFacade)object; if (operation.hasStereotype(UMLProfile.STEREOTYPE_WEBSERVICE_OPERATION)) { isWebService = true; } return isWebService; } }) != null; } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleGetParameterStyle() */ protected String handleGetParameterStyle() { String parameterStyle = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_WEBSERVICE_PARAMETER_STYLE); if (StringUtils.isEmpty(parameterStyle)) { parameterStyle = String.valueOf(this.getConfiguredProperty(PROPERTY_DEFAULT_PARAMETER_STYLE)); } return parameterStyle; } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleIsWrappedParameterStyle() */ protected boolean handleIsWrappedParameterStyle() { return this.getParameterStyle().equalsIgnoreCase(PARAMETER_STYLE_WRAPPED); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleIsBareParameterStyle() */ protected boolean handleIsBareParameterStyle() { return this.getParameterStyle().equalsIgnoreCase(PARAMETER_STYLE_BARE); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleGetQName() */ protected String handleGetQName() { String qnameLocalPartPattern = String.valueOf(this.getConfiguredProperty(QNAME_LOCAL_PART_PATTERN)); return MessageFormat.format( qnameLocalPartPattern, new Object[] {StringUtils.trimToEmpty(this.getName())}); } /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3WebServiceFacadeLogic#handleGetNamespace() */ protected String handleGetNamespace() { String packageName = this.getPackageName(); if (this.isReverseNamespace()) { packageName = EJB3ScriptHelper.reversePackage(packageName); } String namespacePattern = String.valueOf(this.getConfiguredProperty(NAMESPACE_PATTERN)); return MessageFormat.format( namespacePattern, new Object[] {StringUtils.trimToEmpty(packageName), StringUtils.trimToEmpty(this.getQName())}); } /** * Gets whether or not <code>reverseNamespace</code> is true/false for this type. * * @return boolean true/false */ protected boolean isReverseNamespace() { return Boolean.valueOf(String.valueOf(this.getConfiguredProperty(REVERSE_NAMESPACE))).booleanValue(); } } |