Using GWT with Enterprise JavaBeans - java

I need to build frontend using GWT and use EJB as backend technology, but i am not able to find out enough information on how to go about it . It will be really good if some one can guide me through the procedure once
thanks

Maybe you want to check out this little tutorial: GWT Integration
An attempt to share some of the things I have learned using GWT, JBoss, HTML5, and JPA.
The author builds a small GWT / EJB example project running on an JBoss Application server.

Here this youtube video is your freind.
And a sample Project on GIT Hub.
I am assuming you are Familiar with GWT-RPC

Related

Is it possible to develope offline aaplication using gwt java

Hi am working on project using gwt java on GAE. We developed one application using GWT JAVA GAE. This is web application I want to convert this application offline is it possible? any possible ways?
Thanks in advance.
GWT allows you to use all HTML5 features, so it's possible to build an offline app with GWT. There are a number of challenges that you will have to overcome - too many to discuss in an answer to your question. You may want to start with this excellent presentation:
Easing offline web application development with GWT

SOA feature in netbeans 7.4

Ok I am doing project on web services where I plan to implement based on JAX-WS.However i have an issue which I think is about composing services. And after searching on Internet i found WS-BPEL will allow me to do that. I am using netbeans 7.4 but i do not have the SOA feature in it. So now my question is.?
Is there any other method for doing service composition?
is there any link where i can download the SOA plugin for netbeans 7.4?
Or any tutorial which can gimme information on any new technologies which i can use for service composition using existing netbeans 7.4?
Thanks in advance
As far as I can remember the SOA plugin got removed from Netbeans around the time Oracle took it over. Last time I used the SOA plugin was in release 6.5.So I suspect you might be out of luck.
I would suggest you look at Apache Camel for doing this type of work. Or look at the WSO BPEL plugin for Eclipse.

Java: jsp+hibernate with eclipse. sample applications?

I mostly code in PHP and Python.
Java experience: All the basic stuff i learnt in college.
Preferred IDE: Eclipse
I installed hibernate tools for eclipse and i did manage to connect to mysql and got a hello world application up and running.
My Problem:-
I don't know how i am going to start out with small cms for starters using jsp and hibernate.
Try this: JSP_and_Hibernate_Tutorial_using_Eclipse
I would definately use AppFuse for getting your head around this. It will quickly and easily get an application up and running.
Matt Raible provides loads of quick start videos and posts on how to get running as well as different configurations of persistence layer technologies, presentation frameworks etc.
It also has support and tutorials for integration with Eclipse and IntelliJ
Certainly worth a look.

EJB and the Web Tier

I am learning EJB and to do that I bought a book name EJB 3 Developer Guides. I got some understanding on how EJB architecture is and how it works. The book does well in explaining this.
But the examples in the book are all run through ant task. I basically wanted to learn how EJB's are being used in conjunction with Servlets and JSP. Some sort of a web client accessing a JSP page and a servlet getting the service of an EJB bean?
Any idea how can I move forward learning how to use EJB with the Web Tier? Tutorials or links would be better or is there any other book that I could read?
Thanks.
Simple EJB3 Servlet Application
And another option is Netbeans Java EE and Java Web Tutorials -- a best bet, if you are using Netbeans. And if you are not, and you are new to Java, I would highly recommend you Netbeans IDE. It is simple and straight forward.
Important note: if you try running the "Simple EJB3 Servlet Application" from the link about be sure you are using an appropriate version of Glassfish. It might work on JBoss 5.x - but I've never tested it (according to JBoss).
You won't be able to run on the sample application on older versions of JBoss (like 4.2.x) without some workarounds - like ones I described in one of my posts: sample application
The Netbeans tutorial seems fine - but stick to the environment and platform they are describing - otherwise you might quickly discourage and give up.
--Jakub

Web services creation and consumption

I'd like to learn how to create a java web service that can be consumed by a web tier, which is constituted of java and flex.
What books can help me learn how to create a java web service and consume it via java & flex?
Should I look to build a web service from scratch or from frameworks like: XFire, Axis, CXF, Spring Web Services, etc.?
If using a framework is recommended, which of the above or any others makes the most sense to learn/use?
EDIT:
Both the java AND flex components of the web tier need to independently access the web service. For example, the flex component helps the user create & save a spreadsheet; the java component retrieves the spreadsheet data and displays it accordingly.
Flex should do the job: Web Services with Flex tutorial
You may not need a web service. Your Flex app can consume Java POJOs directly using Spring and BlazeDS.
What kind of a service are we looking at? If it requires database integration you probably need at least some kind of a framework - you really don't want to be putting your SQL queries hard coded into the app. Spring + Hibernate seems to be one of the most popular choices for a Java server implementation, but both of them are quite massive and require some effort. Appfuse could be something that provides a good starting point for building a service.
Why do you want to do your service with Java anyway? Is this because you know only Java or because there is a Java container already running on your server? I've seen great results with Ruby on Rails too and now there's some buzz about Scala too in the Java world. This could be your chance to try out something new and more flexible ;)
I'll take this opportunity to plug my own book, Eclipse Web Tools Platform: Developing Java Web Applications. Chapter 10 deals exclusively with creating Java Web services. Although the examples are all shown using WTP tooling the lessons discuss Java Web services created with Apache Axis.

Categories