有谁有jBuilder4.0下开发一个的EJB示例,请给我,本人将不胜感激!(50分)

  • 主题发起人 主题发起人 zhfhq
  • 开始时间 开始时间
Z

zhfhq

Unregistered / Unconfirmed
GUEST, unregistred user!
本人现在想用开发一个的实例,可是总是出现错误,有那位大侠把他的成果(附议说明)
寄给兄弟我,我将大大的感谢!
 
看帮助。
 
我完全按照帮助来,都不行呀,这是为何
具体是这样的
各位大侠:
我现在正在用JBuilder4.0开发EJB方面的东西,我按照书上的源代码抄了一边,我的EJB这个模块已经编译和运行成功,可我的客户端编译成功后,可运行起来终是找不到我的EJB Object,
根据出错信息,是错在这一句:
HelloHome home = (HelloHome) ctx.lookup("Hello");
出错信息是:
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.inprise.vbroker.orb.SE.read(SE.java:28)
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:622)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:552)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:294)
at com.inprise.vbroker.orb.RequestImpl._invoke(RequestImpl.java:194)
at com.inprise.vbroker.orb.RequestImpl.invoke(RequestImpl.java:130)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:324)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at helloworldejb.HelloWorldClient.main(HelloWorldClient.java:66)

请问这是为何,我完全用的JBuilder4.0的集成环境,我用的应用程序服务器就是IAS4.0。
 
1。先确定容器是否执行。如果是启动了应用服务器的,可以在Application Console中
看看能不能找到部署的Bean。如果是单独启动ejbContainer的话,可以从容器启动
的窗口里看到容器的信息和启动的EJB的信息。
2。检查Client的JNDI名字是不是正确
3。可以在Application Console中看看VisiBroker的Location Service和NameService,
看看是否可以找到相应的对象。
4。在Dos prompt中输入osfind,把结果贴出来看看。
 
To JJams_King:
我想问大侠,我用的开发环境来执行我的例子,是不是就不用启动我的Inprise Application
Server 4.0,我再开发环境中启动我的服务器端,在窗口中出现了以下结果:
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/Inprise/AppServer/lib/navigator.jar;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/WINDOWS/jbproject/HelloWorldEJB/classes;E:/JBuilder4/lib/jaxp.jar;E:/JBuilder4/lib/parser.jar;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" com.inprise.ejb.Container ejbcontainer "C:/WINDOWS/jbproject/HelloWorldEJB/HelloWorld.jar" -jts -jns -jss -jdb
Inprise EJB Container
=====================
server version : 4.1.1
server build date : Aug 18, 2000
java version : 1.3.0
java vendor : Sun Microsystems Inc.
heap size : 1984 Kb
java class path : C:/Inprise/AppServer/lib/navigator.jar
: C:/Inprise/AppServer/lib/vbdev.jar
: C:/Inprise/AppServer/lib/vbejb.jar
: C:/Inprise/AppServer/lib/vbjdev.jar
: C:/Inprise/AppServer/lib/vbjorb.jar
: C:/WINDOWS/jbproject/HelloWorldEJB/classes
: E:/JBuilder4/lib/jaxp.jar
: E:/JBuilder4/lib/parser.jar
: E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar
: E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar
: E:/JBUILDER4/JDK1.3/LIB/DT.JAR
: E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR
=====================
Initializing ORB......do
ne
Initializing JNS......................................................................................................................do
ne
Initializing JTS....do
ne
Initializing JSS....Developer's License (no connection limit)
Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.
License for JDataStore development only - not for redistribution
Registered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer
.........do
ne
Initializing JDB.............do
ne
Initializing EJBs....java.lang.ClassNotFoundException: helloworldejb.HelloHelper
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:620)
at com.inpri.se.ejb.util.ClassLoaderDriver$LocalClassLoader.loadClass(ClassLoaderDriver.java:472)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at com.inprise.ejb.Global.loadClass(Global.java:116)
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:75)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597)
at com.inprise.ejb.Container.run(Container.java:1241)
at com.inprise.ejb.Container.main(Container.java:1246)
>>>> EJB LOG >>>>
Could not deploy ejb-jar C:/WINDOWS/jbproject/HelloWorldEJB/HelloWorld.jar
java.lang.Error: Invalid helper class: helloworldejb.HelloHelper
at com.inprise.ejb.EJBHome.<init>(EJBHome.java:82)
at com.inprise.ejb.StatelessSessionHome.<init>(StatelessSessionHome.java:14)
at com.inprise.ejb.Container.load(Container.java:854)
at com.inprise.ejb.Container.run(Container.java:597)
at com.inprise.ejb.Container.run(Container.java:1241)
at com.Undoing effects of a partial deployment ...
Jar name = C:/WINDOWS/jbproject/HelloWorldEJB/HelloWorld.jar
The home name is : Hello
.do
ne
inprise.ejb.Container.main(Container.java:1246)
<<<< EJB LOG <<<<
Container [ejbcontainer] is ready
EJB Container Statistics
========================
Time Tue Feb 06 19:58:30 CST 2001
Memory (used) 1139 Kb (max 1139 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 42.0%
------------------------
Home Hello
Total in memory 0
Total in use 0
========================
运行客户端后出现以下情况:
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/WINDOWS/jbproject/HelloWorldEJB/classes;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/Inprise/AppServer/lib/navigator.jar;E:/JBuilder4/lib/jaxp.jar;E:/JBuilder4/lib/parser.jar;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" helloworldejb.HelloWorldClient
zhf,hello
javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:324)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at helloworldejb.HelloWorldClient.main(HelloWorldClient.java:66)
请问这是如何?
 
在JBuilder4中,选中Home接口,右击选 Properties --&amp;gt;
Build --&amp;gt;
VisiBroker
--&amp;gt;
Java2IIOP settings --&amp;gt;
Generate IIOP
重新编译,运行。
 
呵呵,看得出老兄的机器很快嘛
不过最好把SmartAgent打开。
 
To JJams_King:
大侠,按照你所说的,还是不行,请你把你的具体配置步骤讲以下如何?谢谢
并且我找不到SmartAgent
 
现在是什么错误?
SmartAgent的可执行文件名叫做osagent.exe,在bin目录下。
 
To JJams_King:
大侠,找到了osagent,但是错误依旧,服务器端还是老样子,
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/Inprise/AppServer/lib/navigator.jar;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/WINDOWS/jbproject/HelloWorldEJB/classes;E:/JBuilder4/lib/jaxp.jar;E:/JBuilder4/lib/parser.jar;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" com.inprise.ejb.Container ejbcontainer "C:/WINDOWS/jbproject/HelloWorldEJB/HelloWorld.jar" -jts -jns -jss -jdb
Inprise EJB Container
=====================
server version : 4.1.1
server build date : Aug 18, 2000
java version : 1.3.0
java vendor : Sun Microsystems Inc.
heap size : 1984 Kb
java class path : C:/Inprise/AppServer/lib/navigator.jar
: C:/Inprise/AppServer/lib/vbdev.jar
: C:/Inprise/AppServer/lib/vbejb.jar
: C:/Inprise/AppServer/lib/vbjdev.jar
: C:/Inprise/AppServer/lib/vbjorb.jar
: C:/WINDOWS/jbproject/HelloWorldEJB/classes
: E:/JBuilder4/lib/jaxp.jar
: E:/JBuilder4/lib/parser.jar
: E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar
: E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar
: E:/JBUILDER4/JDK1.3/LIB/DT.JAR
: E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR
=====================
Initializing ORB.......do
ne
Initializing JNS......do
ne
Initializing JTS....do
ne
Initializing JSS...Developer's License (no connection limit)
Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.
License for JDataStore development only - not for redistribution
Registered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer
.........do
ne
Initializing JDB.............do
ne
Initializing EJBs......do
ne
Container [ejbcontainer] is ready
EJB Container Statistics
========================
Time Wed Feb 07 10:36:31 CST 2001
Memory (used) 1182 Kb (max 1182 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 40.0%
------------------------
Home Hello
Total in memory 0
Total in use 0
========================
可是客户端变成了:
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/WINDOWS/jbproject/HelloWorldEJB/classes;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/Inprise/AppServer/lib/navigator.jar;E:/JBuilder4/lib/jaxp.jar;E:/JBuilder4/lib/parser.jar;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" helloworldejb.HelloWorldClient
zhf,hello
java.lang.ClassCastException: com.inprise.vbroker.rmi.CORBA.ObjectImpl
at helloworldejb.HelloWorldClient.main(HelloWorldClient.java:66)
 
呵呵,好多了
1。JNS启动时间短了。因为启动了SmartAgent了
2。EJB正常工作了,ejbContainer没有抛出异常。
3。客户端也能找到EJB了。
现在的问题应该只是在客户端了。
1。你的客户端可能少文件,查一查在客户端所在的目录里有没有xxxxHelper这样的文件
2。把客户端文件目录列一下看看。
 
客户端,我是利用的JBuilder4.0自带的EJB Test Client向导生成的,然后利用菜单
Run /Configuationigu的这个设置把他设置成为客户端,
在我的工程目录下的Src目录中只有客户端这个文件HelloBeanTestClient1.java 这个文件,请问这是为何?
没有 xxxxHelper这样的文件,我好象也看到过有这样类似的错误?
告诉你个好消息,我又实验了一下,有可以了,谢谢了
 
大侠,我有做了一个Sateful Session Bean的例子,我在Home接口中将Create方法增加了一个参数,可是后来在客户端调用时总是出错,出错的地方也就是这一句:
count = countHome.create(val);
出错信息:
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/WINDOWS/jbproject/SateSessionBeanPrg/classes;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/Inprise/AppServer/lib/navigator.jar;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" satesessionbeanprg.CountBeanTestClient1
-- Initializing bean access.
-- Failed initializing bean access.
java.rmi.ServerException: ;
nested exception is:
java.rmi.AccessException: No control descriptor matching: public abstract satesessionbeanprg.Count satesessionbeanprg.CountHome.create(int) throws javax.ejb.CreateException,java.rmi.RemoteException
java.rmi.AccessException: No control descriptor matching: public abstract satesessionbeanprg.Count satesessionbeanprg.CountHome.create(int) throws javax.ejb.CreateException,java.rmi.RemoteException
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:640)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:552)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:294)
at satesessionbeanprg._CountHome_Stub.create(_CountHome_Stub.java:26)
at satesessionbeanprg.CountBeanTestClient1.<init>(CountBeanTestClient1.java:32)
at satesessionbeanprg.CountBeanTestClient1.main(CountBeanTestClient1.java:141)
服务器端出现这样的输出信息:
E:/JBUILDER4/JDK1.3/bin/javaw -classpath "C:/Inprise/AppServer/lib/navigator.jar;C:/Inprise/AppServer/lib/vbdev.jar;C:/Inprise/AppServer/lib/vbejb.jar;C:/Inprise/AppServer/lib/vbjdev.jar;C:/Inprise/AppServer/lib/vbjorb.jar;C:/WINDOWS/jbproject/SateSessionBeanPrg/classes;E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar;E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR;E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar;E:/JBUILDER4/JDK1.3/LIB/DT.JAR;E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR" com.inprise.ejb.Container ejbcontainer "C:/WINDOWS/jbproject/SateSessionBeanPrg/stateSession.jar" -jts -jns -jss -jdb
Inprise EJB Container
=====================
server version : 4.1.1
server build date : Aug 18, 2000
java version : 1.3.0
java vendor : Sun Microsystems Inc.
heap size : 1984 Kb
java class path : C:/Inprise/AppServer/lib/navigator.jar
: C:/Inprise/AppServer/lib/vbdev.jar
: C:/Inprise/AppServer/lib/vbejb.jar
: C:/Inprise/AppServer/lib/vbjdev.jar
: C:/Inprise/AppServer/lib/vbjorb.jar
: C:/WINDOWS/jbproject/SateSessionBeanPrg/classes
: E:/JBUILDER4/JDK1.3/DEMO/JFC/Java2D/Java2Demo.jar
: E:/JBUILDER4/JDK1.3/JRE/LIB/I18N.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/JAWS.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/RT.JAR
: E:/JBUILDER4/JDK1.3/JRE/LIB/sunrsasign.jar
: E:/JBUILDER4/JDK1.3/LIB/DT.JAR
: E:/JBUILDER4/JDK1.3/LIB/TOOLS.JAR
=====================
Initializing ORB.......do
ne
Initializing JNS.....do
ne
Initializing JTS....do
ne
Initializing JSS....Developer's License (no connection limit)
Copyright (c) 1996-2000 Inprise Corporation. All rights reserved.
License for JDataStore development only - not for redistribution
Registered to:
Inprise Application Server Development Licensee
Inprise Application Server Customer
.........do
ne
Initializing JDB.............do
ne
Initializing EJBs......do
ne
Container [ejbcontainer] is ready
EJB Container Statistics
========================
Time Thu Feb 08 16:11:49 CST 2001
Memory (used) 893 Kb (max 893 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 54.0%
------------------------
Home Count
Total in memory 0
Total in use 0
========================
EJB Container Statistics
========================
Time Thu Feb 08 16:12:45 CST 2001
Memory (used) 1152 Kb (max 1152 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 41.0%
------------------------
Home Count
KILLED 1
Total in memory 1
Total in use 0
========================
EJB Container Statistics
========================
Time Thu Feb 08 16:13:50 CST 2001
Memory (used) 767 Kb (max 1152 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 61.0%
------------------------
Home Count
FINALIZED 1
Total in memory 0
Total in use 0
========================
EJB Container Statistics
========================
Time Thu Feb 08 16:17:26 CST 2001
Memory (used) 981 Kb (max 1152 Kb)
Memory (total) 1984 Kb (max 1984 Kb)
Memory (free) 50.0%
------------------------
Home Count
KILLED 1
FINALIZED 1
Total in memory 1
Total in use 0
========================
请问这是为何?
 
To JJams_King:
大侠,快快帮我忙,我现在这个问题一直解决不了,<font size=16 color=red>急急。。。。。</font>
 
关注着,不过没碰过这种错误。
觉得好像是Bean实现里面有问题,不过不确定。
最好能再详细点。
 
其实我的做法很简单,我用JBuilder4.0的EJB向导生成了一个的Sateful Session Bean,可是其生成的ejbCreate()方法和Home接口中Create()
的都是无参数的,于是,我需要的是一个有状态的Session Bean,我则填加了以下内容:
在Home接口中将Create填加了一个参数 int val,
在其实例Bean中将ejbCreate()修改了 为ejbCreate(int val),于是编译和运行,就得到了服务器端的运行结果(如我上次写的)
在客户端我想调用这个EJB,就出错了,并且出错在下面:
Context ctx = new InitialContext();
//look up jndi name
Object ref = ctx.lookup("sateful");
//cast to Home interface
satefulHomeObject = (satefulHome) PortableRemoteObject.narrow(ref, satefulHome.class);
satefulObject = satefulHomeObject.create(0);(出错就在这里)
出错信息如上次所示


 
等我有时间试一下吧。
检查一下部署描述,看会不会在那里出错。
 
To JJams_King:
请大侠多帮忙,我现在很急用,真心谢谢你的帮助!部署描述指的是那一块?
 
我现在发现了一个大问题,我用JBuilder4.0生成Sateless的Session Bean,编译执行没有错误,
但是如果生成的是Sateful的SessionBean,EJB和客户端完全按照向导来做,即使Create方法不加参数,
也回出现这样的错误,是何种原因,难道是JBuilder4.0的Bug?请大侠快点帮助我吧,难道是我那点没有配置好,
但为何Sateless的Session Bean就可以呢?没有理由呀?
 
必须指定Home接口create方法的事务属性。
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部