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
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.
|
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 :
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
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(){
|
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
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 5.0.0 GA
full stack trace
| 08:59:55,451 ERROR [FieldBeanProperty] failed to set value
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
___
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
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
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 {
|
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
Hi,
I have a class
| public class PersonService{
|
|@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
|public void savePerson(){
|...
|}
|
|public void saveAllPerson(){
| while(true){
| savePerson();
| }
| }
| }
|
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
|
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
16 matches
Mail list logo