jboss3.2.1下部署BMP都需要配置哪些文件 ? (救命啊~!)
我做了如下部署
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>Account</ejb-name>
<home>my.AccountHome</home>
<remote>my.Account</remote>
<local-home>my.AccountLocalHome</local-home>
<local>my.AccountLocal</local>
<ejb-class>my.AccountBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>my.AccountPK</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<res-ref-name>java:/MySqlDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Account</ejb-name>
<method-intf>Local</method-intf>
<method-name>*</method-name>
</method>
<method>
<ejb-name>Account</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
////////////////////////////////////
import javax.naming.*;
import java.rmi.*;
import javax.rmi.*;
import java.util.*;
public class AccountClient
{
public static void main(String[] args) throws Exception
{
Account account = null;
try
{
Properties p=new Properties();
p.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
p.setProperty("java.naming.provider.url",
"localhost:1099");
//out print jndi配置
p.list(System.out);
Context ctx = new InitialContext(p);
System.out.println("Got context");
// Context ctx = new InitialContext(System.getProperties());
Object obj = ctx.lookup("Account");
AccountHome home = (AccountHome) javax.rmi.PortableRemoteObject.narrow(obj, AccountHome.class);
..............
........
抛出如下错误:
Caught exception!
javax.naming.NameNotFoundException: Account not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at my.AccountClient.main(AccountClient.java:34)
Destroying account..
请教各位大侠,到底jboss中的BMP中要配置哪些文件啊 ?
相关推荐
jboss热部署配置
这告诉JBoss每隔多久检查一次部署目录以查找更新。2. **配置部署目录**:默认情况下,JBoss会监控`deploy`目录下的文件变化。
《ORANGE’S:一个操作系统的实现》读书笔记(十三)进程(一)
所以,可以预见,当我们准备开始第一个进程时,我们面临一个从ring0到ring1的转移,并启动A。这跟我们从进程B恢复的情形很相似,所以我们完全可以在准备就绪之后跳转到中断处理程序的后半部分,“假装”发生了一次时钟中断来启动进程A,利用iretd来实现ring0到ring1的转移,一旦转移成功,便可以认为已经在一个进程中运行了。我们的进程要运行,不外乎CPU和内存在相互协作,而不同进程的内存互不干涉(我们考虑最简单的情况,假设内存足够大),但是我们提过,CPU只有一个,不同进程共用一个CPU的一套寄存器。
《ORANGE’S:一个操作系统的实现》读书笔记(三十三)内存管理(一)
子进程对我们来说是个陌生的概念,目前我们的系统中所有的进程都是编译时确定好的,每个进程的入口地址、堆栈等都是在global.c中指定的,而且除了权限不同,所有进程是并列的,没有层次关系。注意其中以“_limit”结尾的变量表示的是段的“界限”,它可能是以字节为单位,也可能是以4096字节为单位,这取决于描述符的粒度位。返回之前别忘了,子进程由于使用了跟父进程几乎一样的进程表,所以目前也是挂起状态,我们需要给它也发一个消息,这样不但解除其阻塞,而且将零作为返回值传递给子进程,以便让它知道自己的身份。
在jboss上部署web应用
- lib目录:JBoss启动时加载的一般JAR文件,这些JAR文件可供所有配置共享。- server目录:包含服务器配置文件,每个配置有独立的子目录。
JBoss的安装、配置和部署
2. 安全配置:默认情况下,JBoss提供了一定的安全性。你可以通过配置管理用户、角色和认证机制,例如在`standalone.xml`中配置ManagementRealm。3.


