Problema con MDBs:
Cree el Message-DrivenBean RequestItemsBean, luego lo agrego al EJBModule
correspondiente pero cuando genero las clases no crea el paquete
au.com.tusc.mdb ni sus beans correspondientes. Revise el archivo beans.xml
donde figuran todos los beans que tengo y su tipo y me di
MDBs problem:
I've created the mdb RequestItemsBean, i added to MyStoreMgr module and
then generated the classes, but nor au.com.tusc.mdb package was created
neither the classes.
I checked out the beans.xml file and i found out that the MDB type is
Entity instead of the type for a Message
I resolved it by hacking the JBOSS XDoclet definition (in the jboss_xml.xdt
file in the plugins\sf.net.xdoclet_1.2.1\xdoclet-jboss-module-1.2.1.jar JAR)
The steps to make these changes:
1. Unpack the jar file into a temporary directory (e.g., c:\data\temp).
2. Edit the file jboss_xml.xdt as
Okiee...
I'm trying to solve this problem of ejb-local-ref and JNDI lookup problems
for tutorial
i published nearly 2 yrs back using JBoss-3.2.1
Here it goes.
As can be seen by the dtds of jboss.xml for JBoss-3.21 under docs/dtds
directory...
it states that you don't need ejb-local-ref..
If you are using JBoss 3.2.X, for the jboss.xml file to be generated correctly,
we need to change:
@jboss.ejb-ref-jndi ref-name=CustomerLocal jndi-name=CustomerLocal
with:
@jboss.ejb-local-ref ref-name=CustomerLocal jndi-name=CustomerLocal
for this to work, we have to edit the xdoclet.xml in
achirinosc wrote :
| @ejb.ejb-ref ejb-name=Customer view-type=local
|
| That solve the error
| [/url]
This solves the problem with the different ejb-ref-names in ejb-jar.xml and jboss.xml.
However, you still have to edit the ejb-jar.xml file, replacing
ejb-ref
| ...
| /ejb-ref
by
niesar wrote :
| However, you still have to edit the ejb-jar.xml file, replacing
|
Oh oh, what am I saying here.
You need to edit jboss.xml, of course!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3851699#3851699
Reply to the post :
The tag for the StoreAccessBean is incorrect, replace the tag
@ejb.ejb-ref ejb-name=Customer view-type=local ref-name=ManagerLocal
with
@ejb.ejb-ref ejb-name=Customer view-type=local ref-name=ejb/ManagerLocal
or with
@ejb.ejb-ref ejb-name=Customer view-type=local
That solve the error
Have you folks taken a look at JBossIDE?
Its awesome!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844491#3844491
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844491
After changing the jboss.xml with the ejb-local-ref tag, change the following in
ejb-jar.xml :
ejb-local-ref
ejb-ref-nameCustomerLocal/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
local-homeau.com.tusc.bmp.CustomerLocalHome/local-home
I also have the same problem, i've evean try like the tuturial says after generaing
class do rename de ejb-local-ref /ejb-local-ref, but i've the same error.
Any one can help me out?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3823566#3823566
Reply to the
11 matches
Mail list logo