[JBoss Tools] New message: "Re: Enabling code assist in xhtml files"
by Arbi Sookazian
User development,
A new message was posted in the thread "Enabling code assist in xhtml files":
http://community.jboss.org/message/523735#523735
Author : Arbi Sookazian
Profile : http://community.jboss.org/people/asookazian
Message:
--------------------------------------------------------------
There are many extra files now in my web project after enabling Seam setup and/or Seam facet.
example:
@Name("authenticator")
public class Authenticator
{
@Logger private Log log;
@In Identity identity;
@In Credentials credentials;
public boolean authenticate()
{
log.info("authenticating {0}", credentials.getUsername());
//write your authentication logic here,
//return true if the authentication was
//successful, false otherwise
if ("admin".equals(credentials.getUsername()))
{
identity.addRole("admin");
return true;
}
return false;
}
}
Also, *.css files that I don't want.
How do I prevent this from happening (i.e. I don't need the extra files)?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523735#523735
16 years, 2 months
[Beginner's Corner] New message: "Re: Question about adding a folder with classes to the CLASSPATH"
by null null
User development,
A new message was posted in the thread "Question about adding a folder with classes to the CLASSPATH":
http://community.jboss.org/message/523730#523730
Author : null null
Profile : http://community.jboss.org/people/ranjix
Message:
--------------------------------------------------------------
thanks Peter, I might have misread your first question "you are maintaining these statistics in static variables or ..."
The truth is that for the purpose of my question I hardly see any relevance if it's statics or singletons, since singletons (as a pattern) are implemented usually using statics. So, in any case, assuming that there is a subtle difference which I miss at this point, allow me to change the answer to your question by saying that yes, the Database class uses static variables, and is not a Singleton in a "design pattern" kind of way... Would this change your answer?
Up to this point is pretty clear that I need separate classloaders for each EAR, and this classloader should be the one that loads the Database class (as per my example). The question remains if I can just add a folder with classes to the classpath of each app, or I still need to package them as a jar and copy them in the structure of the EAR of each app...
thanks again
/Ranjix
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523730#523730
16 years, 2 months