Spring Roo + GWT is very exciting but I'd like to use an existing Web Service as a backend so I was wondering if there is any way to configure Roo to use a WSDL as the starting point rather than the entity description (and have it wire in the Jax-WS calls to the service).
Thanks!
As far as I know Spring Roo do not have support for this yet.
Related
I was trying to implement an OSGi application , application has servlet(implemented using jetty), jaxb(using eclipselink moxy), and Jpa part(the problem part). I was trying to use eclipselink inside apache felix container for jpa functionality, I tried various approach but couldn't implement it. I just need some working example or tutorial link.
The easiest way to use jpa in felix is to use Apache Karaf as it has pre packaged features for eclipselink as well as Aries JPA which makes it easier to use any jpa provider in OSGi.
See example with declarative services, or with blueprint.
For plain felix I recommend to use bndtools to get the list of bundles and also to be able to directly run felix.
I started a tutorial to package and run the tasklist-ds example using bndtools
Hi developers and architects.
Our team is going to develop web application in next project,
with Spring MVC + Spring framework3 + Hibernate4 + Maven3 in STS of Eclipse4.3.
I am so ashamed of myself, but I am a beginner of Spring framework3 and we have not much time ...
Would you tell us NICE sample project or something like "foundation of project" containing these technologies ?
I wish we got happy with Spring in this winter !
best regards.
I'd completely agree with #NimChimpsky to go with Spring's examples.
However, if you want one I wrote a foundation project that uses Hibernate, Spring and jQuery with Maven. It collects data from the ESPN API and runs on Tomcat. Just did it for a simple introduction to Spring and Hibernate for fun one weekend, front end is done with Bootstrap and jQuery, you'll need a MySQL database and a API key from ESPN.
https://github.com/david99world/ESPNPlayerViewer
I have a spring mvc-based application using spring STS.
I want to integrate it with GWT , so I can build nice UI.
I saw this.
From this thread
But they weren't using spring sts, and the post is almost 5 years old.
My question is:
Should I stay in my spring mvc project, or should I open a GWT project?
In case I can stay with my spring mvc project, what are the steps I need to do, to perform a connection between my GWT client and my spring Service tier?
Any code example or tutorials will be great!
You can integrate GWT with Spring MVC using Spring MVC REST and GWT JavaScriptObjects.
Take a look at the following GitHub code.
For a more "complicated" example of using JavaScriptObject, look here.
I have implemented a RESTful web service using jersey and deployed it on Tomcat, I have used DAO classes to manipulate database operations, entities to wrap database records. and did the processing in separate package. I want to make this system distributed using EJB. First of all would it be easy to do this change. or i need to rewrite things from scratch. Second, I still need to have the REST WS, so would it be possible to expose the EJB as a REST WS and how? would the REST WS be in the same EJB project or in a different one?
You can definitely do it as an EJB and REST WS. Upgrade your Tomcat install to TomEE Plus, then just add #Stateless or #Singleton to the existing REST service.
You won't need Jersey in there anymore as the Java EE version of Tomcat (TomEE) includes CXF for JAX-RS support.
This example is not well documented, but shows a functional application that combines both EJB and JAX-RS.
http://tomee.apache.org/examples-trunk/rest-on-ejb/README.html
Had anybody attempted to use MyBatis as their persistence library for a JBoss 7.1 /Java EE6 application?
I'm wondering what are the best approaches to handling connections, transations, rollbacks etc?
How about CDI support? Looking around online it seems at this time MyBatis only supports two Dependency Injection (JSR-330) frameworks, Google Guice and Spring. I did run into CDI Extensions which may be something look into.
My idea would be to have the container handle all of the above however it may be difficult getting to that point.
Any tips, hints, experiences?
There is a new mybatis-cdi module. It is not released yet, but you can try the snapshot, it is at github: https://github.com/mybatis/cdi
There is no CDI support at all but as you said, if you want DI go Spring or Guice.
With JBoss you have mainly two chances:
- EJB 3
- Spring
If using EJB 3 transactions are handled automatically by them. MyBatis just ignores transactions and lets the container commit/rollback.
When using Spring, MyBatis ties to Spring transactions using the integration module MyBatis-Spring.
I would create my own CDI bean - use #Produces for a factory, and #Inject to get the session.
Here is old iBatis Spring factory, that might be the producer, after some changes:
SqlMapClientFactoryBean