users@glassfish.java.net

Re: [platform-dev] Re: NetBeans Platform as enterprise application deployed from glassfish

From: Florent THOMAS <mailinglist_at_tdeo.fr>
Date: Tue, 21 Feb 2012 13:37:44 +0100

Hy Timon

Thanks for your prcise worklow. We will try to get in production thanks
to that.
I'll let you know.

regards

Le 21/02/2012 13:13, Timon Veenstra a écrit :
>>> Using EE functionality like EJB will probably require some tricks but
>>> is probably possible.
>> Ouch, I don't really like "tricks" that lowering the benefits of the
>> solutions
>>
> Tricks as in you might need to do some trial and error configuration
> http://wiki.netbeans.org/DevFaqCallEjbFromNbm
>
>>> If you mean to say you want to use a netbeans rcp application as
>>> frontend for your glassfish backend, yes :)
>>> Though your netbeans app will not be "in" another project.
>>> You can develop the frontend in a different project from the backend
>>> and use a shared set of code to communicate.
>> Here, I don't understand well. You say that netbeans app will not be IN but
>> you also said that the frontend (Netbeans RCP) will be in a different
>> project.
> There are projects as in I want to develop software with a certain purpose and
> there are netbeans project which could also be seen as modules within
> a software development project.
> Generally in Netbeans projects are the latter and usually grouped by
> technology (rcp module project, php project, JEE web project, etc)
>
> myProject-model -> plain java project containing beans (with ejb annotations )
> myProject-backend -> java ee application (war/ear) to be deployed on
> GlassFish, has model as dependency
> myProject-frontend -> netbeans RCP application, has model as dependency
>
>> Another question, when you're talking about a shered set of code to
>> communicate, do you means for example that it won't be possible to inject
>> EJB by annotations in the nbm modules?
> To use a bean in your code, you need to know its definition. This is
> the shared piece of code, model definitions.
> You can get instances of those model definitions by EJB injection.