hello list, I have a question about EJB injection into AAC under GFv3
(runned on the client with the java web start).
On the server I have two EJB (with remote interfaces called MyEJB1rem
and MyEJB2rem), now I need to use them into the ACC-client module, if I
declare both into the main class with:
class MainClass extends javax.swing.JFrame {
@EJB
private static MyEJB1rem ejb1;
@EJB
private static MyEJB2rem ejb2;
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainClass().setVisible(true);
}
});
}
..
}
all works fine, but if I move the two EJB injection under two other
class (two JFrame, created by MainClass) I have ejb1 and ejb2 always
null, why?
Thanks!!!
--
Luca Morettoni <luca(AT)morettoni.net> | OpenSolaris SCA #OS0344
Web/BLOG: http://www.morettoni.net/ | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/
ITLOSUG leader: http://hub.opensolaris.org/bin/view/User+Group+itl-osug/