[JBoss Web Services] - as7 and java --> wsdl documentation trouble
by Aleš Bregar
Aleš Bregar [https://community.jboss.org/people/kristjan273] created the discussion
"as7 and java --> wsdl documentation trouble"
To view the discussion, visit: https://community.jboss.org/message/728126#728126
--------------------------------------------------------------
Hi,
I am migrating some old app (from as4.3 to as7.1) and this includes also some webservices adaptation. I have figured more or less everything on topic. There is only issue/improvement I would like to introduce and that is automatically generated documentation inside wsdl. I checked https://issues.jboss.org/browse/JBWS-1850 https://issues.jboss.org/browse/JBWS-1850 as a starting point as it seemed promising. Than I have decorated the desired webmethod as:
@WebMethod(operationName = "hello", action = "urn:hello")
@Documentation(content = "This is a test service OPERATION doing nothing special, just hello")
public String hello(@WebParam(name="helloParameter",partName="description") String parameter){
...
Starting this, and there was no *wsdl:documentation* attribute in the wsdl. So little more reading told me (from https://docs.jboss.org/author/display/JBWS/JBoss+Modules https://docs.jboss.org/author/display/JBWS/JBoss+Modules) that MANIFEST.MF dependencies should be updated with proper module, so I have added
Dependencies: ..., org.jboss.ws.native.jbossws-native-core services annotations export
Still no *wsdl:documentation* in the generated wsdl.
I would be glad if someone would tell if there is something I am missing?
Also another question/proposal - why @Documentation annotation is METHOD only, as IMO it would be nice to decorate methods params too? Any reasonable issue against?
Tnx in advance,
A
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728126#728126]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
Re: [jboss-user] [JBoss Tools] - m2e(clipse)-wtp 0.15.0 : New and Noteworthy
by Max Rydahl Andersen
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] commented on
"m2e(clipse)-wtp 0.15.0 : New and Noteworthy"
To view all comments on this blog post, visit: https://community.jboss.org/community/tools/blog/2012/02/03/m2eclipse-wtp...
--------------------------------------------------
Hi Abi,
m2e-wtp doesn't relate to what was removed/added in m2e but I can tell you possible reasons to why m2e team removed those features.
The removal was done when m2e moved from sonatype to eclipse.org and the code were having to go through a thorough legal review for IP clearance and also the time where m2e team needed to see which features they could sustain to maintain as part of eclipse release train. That process (as far as I understood) revealed that in some cases original authors of the features could not be tracked down or original license was unclear thus not able to pass the legal IP clearance OR some of the features were simply too fragile/messy to maintain thus they decided to remove them to avoid problems about API and UI stability on the release train.
Which of the two issues legal clearance and fragile/messy I'm not sure about, but no matter which it is then the features are no longer there but i'm sure if someone have the time to contribute them back/reimplement them they will be met with open arms.
--------------------------------------------------
12 years, 8 months
[jBPM] - Re: Why Uploading POJO model jar in Guvnor, case BPMN processes to exclude from list in jbpm-console? Problem!
by Márton Steierlein
Márton Steierlein [https://community.jboss.org/people/stmarci] created the discussion
"Re: Why Uploading POJO model jar in Guvnor, case BPMN processes to exclude from list in jbpm-console? Problem!"
To view the discussion, visit: https://community.jboss.org/message/727904#727904
--------------------------------------------------------------
Dear Mahdi,
You have the following options:
* you use guvnor to declare a declarative model using the web interface (Create New -> Declarative model).
You can then use this as an object in your process variables (Object type). The fields are accessed using getters and setters (auto generated). They use java beans notation, so for example if you have:
boolean readonly; -> boolean isReadonly(), void setReadonly(boolean)
String designatedName; -> String getDesignatedName(), void setDesignatedName()
The problem with this is that you might have a hard time using it outside the scope of the jBPM framework. I am using the REST interface of jBPM to access the variables of a process (/gwt-console-server/rs/process/instance/<instance number>/dataset) and I don't see a way to deserialize it into a Java object. This is the reason why I'm using the following:
* Upload a POJO model jar where you can declare your own classes. The problem with this is that the server side component of the jBPM console cannot deserialize the object and silently throws a RuntimeException which you cannot see in the logs.
You can circumvent this headache by exploding your jbpm-gwt-console-server.war (unzip into a directory with the same name with the .war extension like /opt/jbpm/<jboss version>/standalone/deployments/jbpm-gwt-console-server.war/). By doing this, the hot-deploy feature gets disabled so you need to create a file with 'touch' whenever you need to redeploy your applications.
In order to make jBPM work with your custom JAR you'll need to copy it into the above mentioned directory (jbpm-gwt-console-server) into the WEB-INF/lib directory. Once you are done with that, you signal jBoss to redeploy the application (int the deployments directory)
touch jbpm-gwt-console-server.war.dodeploy
Then navigate to jbpm-console in your browser and hit ctrl+r. After that you should be able to see your processes. Remember always use the same jar in guvnor and the console-server. Don't forget to build your package and setup your imports in guvnor.
If you have static classes, you might need to restart the entire jBPM framework (including jBoss), so I would suggest avoiding them in your models.
If you have further questions don't hesitate to contact me.
Best regards,
Márton
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/727904#727904]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months