Maybe this question could be duplicated. I just can't find any good search words.
How can I provide some development property value to SLSBs?
@LocalBean
@Stateless
class ClouldBean {
public void doSomethingWithUsernameAndPassowrd() {
// ...
}
private String username;
private String password;
}
I just want to know how to inject username
and password
in a very standard and portable way.
Do I have to use some standard property configuration file?
Do I have to set it be contracted as being provided by container?