- This topic has 5 replies, 3 voices, and was last updated 19 years, 9 months ago by Greg.
-
AuthorPosts
-
rogerparkinsonMemberI just got my first session bean to work but it didn’t work immediately because although the jndi-name=”ejb/Transfer” what the client really needed to specify was just “Transfer”. I can see other people had similar problems but their solutions seem to involve the deployment descriptor file, which I don’t seem to have.
I think I should see jboss.xml somewhere but I don’t.
So: why isn’t my bean called ejb/Transfer and should I have a jboss.xml?
Here is my config details:
OS=WIN2K build 2195 sp4
Eclipse 3.0.1 Build id: 200409161125
Upgraded from 3.0.0
Other plugins: SYSDEO tomcat launcher plus one of my own (neither are being invoked during this operation, though)pde:
org.eclipse.pde.build_3.0.0
org.eclipse.pde.build_3.0.1
org.eclipse.pde.core_3.0.0
org.eclipse.pde.core_3.0.1
org.eclipse.pde.doc.user_3.0.0
org.eclipse.pde.junit.runtime_3.0.0
org.eclipse.pde.runtime_3.0.0
org.eclipse.pde.runtime_3.0.1
org.eclipse.pde.source_3.0.0
org.eclipse.pde.source_3.0.1
org.eclipse.pde.ui_3.0.0
org.eclipse.pde.ui_3.0.1myeclipse 3.8.4
C:\j2sdk1.4.2\bin>java -version
java version “1.4.2”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
(same is used for app server)
appserver: jboss4.0.1-sp1
Riyad KallaMemberRoger,
Are you using XDoclet to generate the bean? What setup for XDoclet do you have? Have you told it to generate the JBoss resources for you?
rogerparkinsonMemberI am using XDoclet to generate the bean, but it is likely I have not configured it right (though I have looked at the options).
I opened project properties and picked StandardEJB. From there I just acepted the defaults. I couldn’t see any specific JBoss stuff in there, although you are almost certainly right to point me there. One more hint please?
Thanks
GregMemberHave you looked at the EJB Development tutorial? It contains steps on how to add jboss specific subtask to generate a jboss.xml.
rogerparkinsonMemberThe jboss specific subtask was the problem, ie I hadn’t done it. The link described the steps perfectly. Thanks for your help, it works fine now.
GregMemberGood deal, we’re glad you got it working.
-
AuthorPosts