Using Facets for EJB + JSF + Hibernate + Spring Application

I've just started working with the new 7.x Facets feature. However, I'm not at all sure I'm using them in the "right" way.

Questions:

Is the intention to be able to use a single module for the EJBs, web app code, and common support code (i.e. Spring)? Or, are we still supposed to create separate modules for EJBs, web, etc?

If the former, how do we specify the classes that are supposed to go into the EJB-JAR and those supposed to go into the WAR file? If the latter, what have facets added that we couldn't do before?

(It would help if the IDEA Help documentation was more than a collection of mouse and keyboard click instructions instead of more complete tutorials.)

Thanks.

--
jack

3 comments

It's my understanding that you should be able to use a single module only.
However I have not been able to figure out how to assign source roots to the
web facet.
I asked this question before (end of august in EAP forum), but there wasn't
any answer at all.

At that time I had filed about a dozen project configuration jira issues,
so I just stopped adding more.
Recently, though, JetBrains made some progress in resolving those, so maybe
now is a good time to file another issue (hint, hint).

madjack wrote:

I've just started working with the new 7.x Facets feature. However, I'm not at all sure I'm using them in the "right" way.

Questions:

Is the intention to be able to use a single module for the EJBs, web app code, and common support code (i.e. Spring)? Or, are we still supposed to create separate modules for EJBs, web, etc?

If the former, how do we specify the classes that are supposed to go into the EJB-JAR and those supposed to go into the WAR file? If the latter, what have facets added that we couldn't do before?

(It would help if the IDEA Help documentation was more than a collection of mouse and keyboard click instructions instead of more complete tutorials.)

Thanks.

--
jack

0
Avatar
Nikolay Chashnikov

Hello Stephen,

I've created a Jira issue for your problem (IDEADEV-22770).

It's my understanding that you should be able to use a single module
only.
However I have not been able to figure out how to assign source roots
to the
web facet.
I asked this question before (end of august in EAP forum), but there
wasn't
any answer at all.
At that time I had filed about a dozen project configuration jira
issues,
so I just stopped adding more.
Recently, though, JetBrains made some progress in resolving those, so
maybe
now is a good time to file another issue (hint, hint).
madjack wrote:

>> I've just started working with the new 7.x Facets feature. However,
>> I'm not at all sure I'm using them in the "right" way.
>>
>> Questions:
>>
>> Is the intention to be able to use a single module for the EJBs, web
>> app code, and common support code (i.e. Spring)? Or, are we still
>> supposed to create separate modules for EJBs, web, etc?
>>
>> If the former, how do we specify the classes that are supposed to go
>> into the EJB-JAR and those supposed to go into the WAR file? If the
>> latter, what have facets added that we couldn't do before?
>>
>> (It would help if the IDEA Help documentation was more than a
>> collection of mouse and keyboard click instructions instead of more
>> complete tutorials.)
>>
>> Thanks.
>>
>> --
>> jack


0

Thanks Stephen.

I'm glad I'm not the only one who didn't see an intuitive (i.e. obvious) way to separate web sources and EJB sources using facets.

I'll keep my eyes out for more guidance on using facets. (BTW, IDEA facets seem a lot like MyEclipse's "capabilities" approach for decorating a project with API-specific behaviors.)

Jack

0

Please sign in to leave a comment.