[jboss-user] [EJB 3.0 Users] - java:comp/env not found in @service POJO bean

2009-10-27 Thread steeven
I'm trying to use Service POJO bean ( jboss extension of EJB3), but I found that PersitentUnit was not found! @Service(name = MyService.SERVICE_NAME) | @Management(IMyService.class) | //@PersistenceContext(name="em") not work too | public class MyService implements IMyService { | publ

[jboss-user] [EJB 3.0 Users] - Re: java:comp/env not found in @service POJO bean

2009-10-27 Thread steeven
here is the full error stacktrace: 09:12:17,884 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=my.ear,jar=myserver.jar,name=MyService,service=EJB3 state=Create | java.lang.RuntimeException: java.lang.reflect.InvocationTargetException | at org.jboss.ejb3.s

[jboss-user] [EJB 3.0 Users] - Re: java:comp/env not found in @service POJO bean

2009-10-28 Thread steeven
Thanks you guys all, I'm using AS5.1.0 "grdzeli_kaci" wrote : sorry i missed EntityManager declaration into implementation. | | | @PersistenceContext(unitName = "CustomerCareOracle") | | private EntityManager oracleManager; | | This code work for me, but try to invoke some method

[jboss-user] [EJB 3.0 Users] - NotBoundException when @Service POJO invoke EJB

2009-10-28 Thread steeven
AS5.1.0, NO EJB3 Plugin installed. I packed service POJO and EJB3 SLSB together and the EJB injected to service bean doesn't worked steady. Sometimes the following exception raised when server start up and deploy. Is it a reason that EJB3 and Service POJO deployed in same time? The start() met

[jboss-user] [EJB 3.0 Users] - Re: java:comp/env not found in @service POJO bean

2009-10-28 Thread steeven
grdzeli_kaci, Thanks very much~ Are you sure oracleManager worked in start() method? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262607#4262607 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262607

[jboss-user] [EJB 3.0 Users] - Re: NotBoundException when @Service POJO invoke EJB

2009-10-28 Thread steeven
Thanks very much, I'll try it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262652#4262652 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262652 ___ jboss-user mailing list

[jboss-user] [EJB 3.0 Users] - Re: java:comp/env not found in @service POJO bean

2009-10-28 Thread steeven
Thanks very much, I'll try to ask EJB to do load data instead of invoking EnityManager directly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262653#4262653 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262653

[jboss-user] [EJB 3.0 Users] - Re: NotBoundException when @Service POJO invoke EJB

2009-10-28 Thread steeven
Wolfgang, I have tried many names found in JNDI, none of them worked. Would you please post your Depends name? maybe I have to make EJB also as a @service? | @Service(name = CmModule.SERVICE_NAME) | @Depends( { "/MoService", "/ems/MoService", "/IMoService", "/ems/MoService/remote", |

[jboss-user] [EJB 3.0 Users] - Re: NotBoundException when @Service POJO invoke EJB

2009-10-28 Thread steeven
I think this should be a improvement of Service bean, all injected service should be ready before start() method. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262835#4262835 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[jboss-user] [EJB 3.0 Users] - Re: java:comp/env not found in @service POJO bean

2009-10-28 Thread steeven
Thanks, I will try to call @EJB instead of EntityManager to avoid this problem. really appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262837#4262837 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262837 _

[jboss-user] [EJB 3.0 Users] - Re: NotBoundException when @Service POJO invoke EJB

2009-11-03 Thread steeven
Still not work, whatever how long I sleep in start() void start(){ ... sleep(5); moService.xxx(); //NotBound } I'm crazy now View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263840#4263840 Reply to the post : http://www.jboss.org/index.html?module=b

[jboss-user] [EJB 3.0 Users] - Re: NotBoundException when @Service POJO invoke EJB

2009-11-05 Thread steeven
Wawo~ it worked! really appreciated! This name can be easy found in NotBoundException. I think Jboss should update document to make user happy. I have another problem that EntityManager not injected well, maybe it's the same reason. Thanks again~ View the original post : http://www.jboss.or

[jboss-user] [JBoss Cache: Core Edition] - How to desing cache in Client/Server mode?

2009-08-20 Thread steeven
I'm working with an application in c/s mode, here is the requirements: Client: N clients, read-only cache, load data from cluster or server db Server: 1 or 2 serves, lazy-load cache from db, remove-node. It was said that the server update and share the cache data, and the client read-share cache

[jboss-user] [JBoss Cache: Core Edition] - Re: How to desing cache in Client/Server mode?

2009-08-20 Thread steeven
manik, thanks very much. Inval-async mode worked now. I think it is not possible to make only one server response read request, right? if one server failed to response, the other server could response at once. but at most case, both the server loader will response read request. another question

[jboss-user] [Installation, Configuration & Deployment] - Is web application client context useable?

2009-08-31 Thread steeven
I have followed http://www.jboss.org/community/wiki/HowtouseanapplicationclientinJBoss-5 and succeed to make my C/S application client boot from JBoss ENC, but we met a big problem: 1. All jars in Meta.inf is loaded every time from server, no local cache. Less efficient than web start 2. the J

[jboss-user] [Installation, Configuration & Deployment] - Re: Is web application client context useable?

2009-09-22 Thread steeven
nobody using this feature? :'( I afraid that I have to give up View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256514#4256514 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256514 ___

[jboss-user] [EJB/JBoss] - Re: ACC + Web Start

2009-06-12 Thread steeven
+1 I have the same question. It is usefull to leave JNLP and signing problem to container. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237417#4237417 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237417 _