[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-04 Thread MirekSz
Thanks for help your answers realy help. I understand that I can't be sure that I get the same instance (of Stateless) in the same transaction by lookup. Is there exists other way to pass some data from one statelsss to other in the same transaction In web application I used to it

[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-02 Thread MirekSz
Thanks for replay I need this information (about changed entity) to inform my Swing client which records was updated. Wolfgang Knauf wrote : | I am also not sure whether a JNDI lookup for a stateful session bean in the same transaction will return the SAME instance as a previous call. |

[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread MirekSz
Thanks for reply AccountService is Stateless. I need the same instance beacuse in InvoiceItemServiceBean a do some job which generates data and assign it to the AccountService field. After in POJO I want this data View the original post :

[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread MirekSz
I try explain exacly what I doing, the prevoius example wasn't real(but describe problem) I have fasade | @Stateful | public class FasadeBean implements Fasade{ | | @EJB | private ChangedIdsCollectorService; | | | | public ServerResponse execute(String serviceName, String

[jboss-user] [EJB 3.0 Users] - EJB 3.0 lookup from Pojo and Injection

2009-11-30 Thread MirekSz
Hello, I have a question, I have | @Stateless | public class AccountServiceBean implements AccountService{ | | } | | @Stateless | public class InvoiceServiceBean implements InvoiceService { | | @EJB | AccountService accountService; | | public void doIt(){ |

[jboss-user] [EJB 3.0] - Injection SessionContext to interceptor

2009-07-30 Thread MirekSz
Hello, when I inject SessionContext by @Resource annotation everything works fine but when I inject it by ejb-jar.xml file I get following error | Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: failed to set value

[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console

2009-07-30 Thread MirekSz
For example I need information which intercetopors are connected with my session bean, also I need order of those interceptors View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246874#4246874 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Injection SessionContext to interceptor

2009-07-30 Thread MirekSz
JBOSS 5.0.0 GA full stack trace | 08:59:55,451 ERROR [FieldBeanProperty] failed to set value

[jboss-user] [EJB 3.0] - Re: Injection SessionContext to interceptor

2009-07-30 Thread MirekSz
JIRA issue https://jira.jboss.org/jira/browse/EJBTHREE-1878 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246904#4246904 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246904 ___

[jboss-user] [EJB/JBoss] - Re: How to list interceptors in JBOSS 5 console

2009-07-26 Thread MirekSz
Hi, interceptors connected with EJB beans, in web or jmx console. I need this for diagnostcs View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4246090#4246090 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246090

[jboss-user] [EJB/JBoss] - How to list interceptors in JBOSS 5 console

2009-07-24 Thread MirekSz
How to list registered interceptors in JBOSS 5 console ? Best regards View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4245854#4245854 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245854

[jboss-user] [EJB 3.0] - Injecting SessionContext

2009-07-21 Thread MirekSz
Hi, I have a problem with injecting sessionContext value My interceptor class: | public class InterceptorTest { | | javax.ejb.SessionContext sessionContext; | | public Object execute(InvocationContext invocation) throws Exception { |

[jboss-user] [EJB 3.0] - Re: @TransactionAttribute problem with local invocation

2009-07-21 Thread MirekSz
Thanks work fine View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244964#4244964 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244964 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - @TransactionAttribute problem with local invocation

2009-07-20 Thread MirekSz
Hi, I have a class | public class PersonService{ | |@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) |public void savePerson(){ |... |} | |public void saveAllPerson(){ | while(true){ | savePerson(); | } | } | } |

[jboss-user] [JNDI/Naming/Network] - Re: Mapped name in EJB 3.0

2009-07-10 Thread MirekSz
Thanks for replay. That was information what I need. Also I can do this by adding additional file jboss.xml | ?xml version=1.0 encoding=UTF-8 standalone=yes? | jboss | enterprise-beans | session | ejb-nameDefaaultValueForDesc/ejb-name |

[jboss-user] [JNDI/Naming/Network] - Mapped name in EJB 3.0

2009-07-07 Thread MirekSz
Hello, I have a problem. i need set JNDI name of my bean like that beans/DefaultValues/OperatorService/Example. I can do this by annotation Stateless(name=beans/DefaultValues/OperatorService/Example) but when I use ejb-namebeans/DefaultValues/OperatorService/Example/ejb-name in ejb-jar.xml i