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
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
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
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
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
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
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
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",
|
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
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
_
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
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
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
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
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
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
___
+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
_
17 matches
Mail list logo