First of all I am new to GWT too. So if anybody feel a need to correct
me, please feel free to do so.
I suggest you check home page of gwt first and understant what it is
and where it runs.
Basicly with gwt you write .java files and you create .js file from
them. (.class)  gwt "cross compiles" your java code to js. so when you
write a gwt code it will be generated on compile time not run time. so
you can not use java beans in gwt project. because it will not run any
java code on server side. I want to make this clear. GWT will be
compiled to js in compile time. so it will not run any java code in
server to create client side code at run time. that means you can not
run EJB in a GWT project.
http://code.google.com/webtoolkit/overview.html

On Oct 14, 5:38 pm, iaio81 <[email protected]> wrote:
> Thank you, first of all, for your support. I intended Entity Beans ,
> so I should create a module with in it the Entity (.java + .class).
> What do you mean with "+dtos"?
> About EJB (Session and Stateless), I use a Facade Pattern and so the
> client call it and don't the EJBs. According to you, for testing my
> application in Eclipse together with GWT, have I to import jar of all
> EJB or I leave them on JBOSS ?
>
> Thank you very much
>
> On 14 Ott, 16:30, mariyan nenchev <[email protected]> wrote:
>
>
>
> > Let's make the things clear. Are you talking about entity beans or session
> > beans? If session beans, you just have to add the interfaces to your sejbs
> > and use them only at the server side. If you want to use entity beans you
> > may make your persistance jar(that containes your entities + dtos) as gwt
> > module, so the jar must contain .java and .class files and add it to your
> > gwt project plus add it in the gwt.xml file as module.
>
> > On Wed, Oct 14, 2009 at 12:34 PM, iaio81 <[email protected]>wrote:
>
> > > And how can i test my GWT application that call via-RPC EJB deployed
> > > on my JBoss? Have I to import EJB as classes not compiled?
>
> > > On 14 Ott, 10:32, mariyan nenchev <[email protected]> wrote:
> > > > Hi, you do not have to add  your ejb jar in the gwt client side. It is
> > > only
> > > > needed in the server side. So you do not need to add it in the gwt.xml
> > > file.
> > > > As you may not know you can't add every kind of jars in the client
> > > > side(which is compiled to js). Tell me how do you think the gwt 
> > > > compliler
> > > > will compile ejb code into js?
>
> > > > On Wed, Oct 14, 2009 at 3:15 AM, iaio81 <[email protected]>
> > > wrote:
>
> > > > > Hi all,
> > > > > I have a problem with GWT. I've imported my EJB's jar and I put in it
> > > > > the *.gwt.xml with source equals to my entities folder and then I add
> > > > > in the Main.gwt.xml --> inherits name=......
> > > > > When I compile I've always the same error  --> No source code is
> > > > > available for type ... and it doesn't find my entity.
>
> > > > > Could you help me?
> > > > > Thanks a lot
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to