You can do that by taking the bean as a @ManagedProperty
of the other bean and then just access it as an usual property in the action methods.
@ManagedBean
public class OtherBean implements Serializable {
@ManagedProperty(value="#{userManagerBean}")
private UserManagerBean userManagerBean;
// ...
}
It will be set directly after construction, so it wouldn't be available in the constructor. If you'd like to do some init stuff which relies on its availablility, then make use of @PostConstruct
:
@PostConstruct
public void init() {
userManagerBean.doStuff();
// ...
}