[jboss-user] [EJB 3.0] - Re: Cross-referencing EJBs doesn't work

2008-02-15 Thread linoux
It works fine now !!

Thanks a lot for your help !

-- 
Céline

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129656#4129656

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129656

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Cross-referencing EJBs doesn't work

2008-02-15 Thread linoux
Hello !

It seems that cross referencing 2 sessions does not work in JBoss... Although I 
found no restricutions about cross-referencing stateless session beans in EJB 
specs

I'm using JBoss-4.0.5.GA.

Here is my sessions definitions : 

  | @Local
  | public interface ALocal {
  | 
  | }
  | 
  | @Stateless
  | public class A implements ALocal {
  |   @EJB BLocal b;
  | }
  | 
  | @Local
  | public interface BLocal {
  | 
  | }
  | 
  | @Stateless
  | public class B implements BLocal{
  |   @EJB ALocal a;
  | }

And here the deployment logs (everything before this seems OK) :

  | ObjectName: jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  |   Depends On Me:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  | 
  | ObjectName: jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  |   Depends On Me:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  | 

It seams that the two EJB are waiting for each other...

Does anyone know how to make this work ?

Thanks for your help !

-- 
Celine

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129633#4129633

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129633
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Cross-referencing EJBs doesn't work

2008-02-15 Thread linoux
Thanks for your response, I will do that...

I was not sure if this was an EJB3 issue, or if the same problem occurs with 
older versions of EJB...

-- 
Céline

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129629#4129629

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129629

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Cross-referencing EJBs doesn't work

2008-02-14 Thread linoux
Hello !

It seems that cross referencing 2 sessions does not work in JBoss... Although I 
found no restricutions about cross-referencing stateless session beans in EJB 
specs

I'm using JBoss-4.0.5.GA.

Here is my sessions definitions :


  | @Local
  | public interface ALocal {
  | 
  | }
  | 
  | @Stateless
  | public class A implements ALocal {
  |   @EJB BLocal b;
  | }
  | 
  | @Local
  | public interface BLocal {
  | 
  | }
  | 
  | @Stateless
  | public class B implements BLocal{
  |   @EJB ALocal a;
  | }

And here the deployment logs (everything before this seems OK) :

ObjectName: jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  |   Depends On Me:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  | 
  | ObjectName: jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=B,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  |   Depends On Me:
  | jboss.j2ee:ear=ogp-app.ear,jar=ogp-ejb.jar,name=A,service=EJB3
  | 

It seams that the two EJB are waiting for each other...

Does anyone know how to make this work ?

Thanks for your help !

-- 
Celine

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129343#4129343

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129343
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - List all connected users

2007-08-30 Thread linoux
Hi,

Is there a way to list login of all users connected to a JBoss application ? 
Using getCallerPrincipal I can determine the owner of the current session, but 
how do I know about all other users in all other sessions ?

I tried to subclass a loginModule to maintain this list myself, but the logout 
method is not called if the user is logged out by a session timeout...

Thanks for your help !

-- 
Céline

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079511#4079511

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079511

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Launch a custom method at application deployment

2007-02-12 Thread linoux
Hi !

I'd like to launch a method to do some initialization just before the 
application is made available to clients.

Is there a simple way to do that ?

thx in advance !

-- 
Celine

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015210#4015210

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015210
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user