aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes DWR or jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "DWR or jquery" Watch "DWR or jquery" New topic
Author

DWR or jquery

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi all,

I am new to the ajax technology. I am basically a java/j2ee developer who would like to design a front end with ajax and this fron end should actively interact with middle layer which is implemented using java,jsp and specifically EJB3.0.

Which Ajax frame work can be best suited for this purpose DWR or Jquery.

Could anyone point me to some online articles or tutorials which deal with specifically Ajax and EJB3.0.

Thanks in advance

With regards
Deepthi
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

They're pretty different libraries, and I'm not sure what kind of information you're looking for regarding EJB and Ajax--they're not really directly related.

Could you be a bit more specific about what you're trying to accomplish?
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi David,

Thanks for your prompt reply.

What i am looking for is i have a front end using ajax and the middle layer coded in Ejb3.0. For the results of the business logic to be displayed on the front end what can be the method that can be used to bring about this purpose. Since you said that Ajax and Ejb3.0 are in no way related, so what can be the intermediary technologies that can be used to do so. My calculated guess would be JSF. Could you correct me if i am wrong.

I am trying to get a high level picture of which technology goes where(presentation or middle or backend) and how they can be integrated with each other. With So many frameworks out there its a bit confusing.

Thank you
With Regards
deepthi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61424
    
  67

JSF?

Ajax just makes requests like any other. What David was saying is that you don't need anything special on the server to be able to use Ajax.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi All,

All i want to know is "Is Ajax capable of accessing EJB stateless session bean?" If so how?

Sorry if its a lame question but as i have already said i am new ajax.

Thank you
With Regards
Deepthi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61424
    
  67

How are you accessing them now? How is your system currently handing HTTP requests? The point is, whatever you are using now will work with Ajax requests just the exact same way as any other HTTP request. The fact that the request was initiated with Ajax is completely moot.
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi

I understand it now. Could you tell me which ajax frameworks are really useful for the java developers DWR or Jquery. what will be your best bet. Actually i am in lookout for jobs in java/j2ee platform and want to learn ajax frameworks but don't have enough time to study both.

Thank you
Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
Hi,

Are there any good books out there which concentrate on Ajax development with java. I found one book "Ajax on Java." but looking out for more.

Its becoming increasing frustrating because all the javascript/ajax books that i came across have other server side technologies rather than java.

Thank you
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Deepthi Tirunahari wrote:Hi,

Are there any good books out there which concentrate on Ajax development with java. I found one book "Ajax on Java." but looking out for more.

Its becoming increasing frustrating because all the javascript/ajax books that i came across have other server side technologies rather than java.

Thank you

Dear, it doesn't matter what is running on the server whether its Java, C++, Ruby or even a Fembot able to handle HTTP requests.
Just get a book that discusses Ajax in general and the concept is the same for whatever live and eat on the server.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61424
    
  67

Actually it does rather matter because DWR is Java-specific.

Personally, I find DWR too niche for my tastes. What John said is true of jQuery -- it's completely independent of the server platform.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Bear Bibeault wrote:Actually it does rather matter because DWR is Java-specific.

Personally, I find DWR too niche for my tastes. What John said is true of jQuery -- it's completely independent of the server platform.

Yes, I was talking about Ajax in general not about platform specific toolkit.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DWR or jquery