还剩3页未读,继续阅读
文本内容:
weblogic的几个基础问题
1.如何给weblogic指定大小的内存?在启动Web logic的脚本中(位于所在Domi an对应服务器目录下的startServerName),增加set MEM_ARGS=-Xms32m-Xmx200m,可以调整最小内存为32M,最大200M
2、如何设定的weblogic的热启动模式(开发模式)与产品发布模式可以在管理控制台中修改对应服务器的启动模式为开发或产品模式之一或者修改服务的启动文件或者commenv文件,增加set PR0DUCTI0N_M0DE=true
3.如何启动时不需输入用户名与密码?修改服务启动文件,增加WLSJJSER和WLS_PW项也可以在boot,properties文件中增加加密过的用户名和密码.
4.在weblogic管理制台中对一个应用域(或者说是一个网站,Domain)进行jms及ejb或连接池等相关信息进行配置后,实际保存在什么文件中?保存在此Domain的config,xml文件中,它是服务器的核心配置文件
5.说说web logic中一个Domain的缺省目录结构?比如要将一个简单的helloWorld.jsp放入何目录下,然的在浏览器上就可打入http:〃主机:端口号〃helloword.jsp就可以看到运行结果了?又比如这其中用到了一个自己写的javaBean该如何办Domain目录“服务器目录“applications,将应用目录放在此目录下将可以作为应用访问,如果是Web应用,应用目录需要满足Web应用目录要求,jsp文件可以直接放在应用目录中,Javabean需要放在应用目录的WEB-INF目录的classes目录中,设置服务器的缺省应用将可以实现在浏览器上无需输入应用名
6.如何查看在weblogic中已经发布的EJB可以使用管理控制台,在它的Deployment中可以查看所有已发布的EJB
7、如何在weblogic中进行ssl配置与客户端的认证配置或说说j2ee(标准)进行ssl的配置缺省安装中使用DemoIdentity,jks和DemoTrust,jks KeyStore实现SSL,需要配置服务器使用Enable SSL,配置其端口,在产品模式下需要从CA获取私有密钥和数字证书,创建identity和trust keystore,装载获得的密钥和数字证书可以配置此SSL连接是单向还是双向的
8、在weblogic中发布ejb需涉及到哪些配置文件不同类型的EJB涉及的配置文件不同,都涉及到的配置文件包括ejb_jar.xml,weblogic-ejb-jar.xmlCMP实体Bean一般还需要weblogic-cmp-rdbms-jar.xml
9、EJB需直接实现它的业务接口或Home接口吗,请简述理由.远程接口和Home接口不需要直接实现,他们的实现代码是由服务器产生的,程序运行中对应实现类会作为对应接口类型的实例被使用10^说说在weblogic中开发消息Bean时的persistent与non-persisten的差别persistent方式的MDB可以保证消息传递的可靠性,也就是如果EJB容器出现问题而JMS服务器依然会将消息在此MDB可用的时候发送过来,而non-persistent方式的消息将被丢弃
11.说说你所熟悉或听说过的j2ee中的几种常用模式及对设计模式的一些看法Session FacadePattern使用SessionBean访问EntityBeanMessage FacadePattern实现异步调用EJB CommandPattern使用Command JavaBeans取代SessionBean,实现轻量级访问Data TransferObject Factory通过DTO Factory简化EntityBean数据提供特性Generic AttributeAccess通过AttibuteAccess接口简化EntityBean数据提供特性BusinessInterface通过远程(本地)接口和Bean类实现相同接口规范业务逻辑一致性EJ B架构的设计好坏将直接影响系统的性能、可扩展性、可维护性、组件可重用性及开发效率项目越复杂,项目队伍越庞大则越能体现良好设计的重要性..踮1ich interfaceprovides theability tosee changes in real-time asthey occurA.ConcunentMapC.ObservableMapD.lnvocableMapAnswer:
2.Coherence providesthe idealinfrastructure forbuilding_sen/ices,and the_applications.A.Date Grid,Client and Server basedB.Ousler,Client andServer basedC.Dala Grid,DNS basedD.Cloud clustenClientandServerbased Answer:A
3.Node Manageris aWeblogic Serverjhatenables youto start,shut down.andrestart AdministrationServer andManagedServer instancesfrom aremote location.A.lnstanceB.UtilityC.DestinationD.OusterAnswerB1Z0-523Oracle Application Grid Essentials本人出售认证考试题库需要的联系一六三四五三三零七六IT QQ
4.Which twoOracle productscome pre-packaged withOracles JRockitJDKA.Oracle WeblogicServerB.Oracle CoherenceC.Oracle DatabaseD.Oracle RealTime OperationsControlAnswerzA B
5.Which threeof thefollowing areconsidered FixedAsset DepreciationRule ComonentsA.lnternational DepreciationMethodsB.HeaderC.Annual RulesD.Rule ConventiosE.Predefined DepreciationMethodsAnswer:B CD
6.As abest practice.what wouldyou changein thefollowing commandline tocreate successfuldomain?template“My WeblogicDomain”Pack-domain=C:\ora0\userjDrojects\mydomain-template=C:\oracle\user_templates\mydomain-name^My WeblogicDomain”A.Pack-domain=C:\oracle\user_proiects\domains\mydomain dll-template=C:\oracle\usertemplates\mydomain jar-template name^My WebLogicDomain^^B.Pack-domain=C:\oracle\user_projects\domains\mydomainjar-template=C:\oracle\user_J:emplates\mydomain jar-template_name=,,My WebLogicDomainC.Pack-domain=C:\oracle\user_projects\domains\mydomain-template=C:\oracle\user_templates\mydomain jar-template_name=,,My WebLogicDomain”D.Pack-domain=C:\oracle\user_projects\domains\mydomain jar-template=C:\oracle\usertemplates\mydomain jar-template name=nMy WebLogicDomainAnswer:C1ZO-523Oracle Application Grid Essentials
7.ln atypical productionenvironment,which servershoststhe applicationA.Node ServerB.Administration ServerGhManagedServer uAJonfigurationServer AnswerrC
8.Which threedata sourceintegrations areprovided byCoherence outof theboxA.Toplink Gridand ToplinkEssentialsB.Java PersistenceAPIJPAC.Open DatabaseConnectivithODBCD.File SystemE.Java DatabaseConnectivityJDBCAnswerA BE
9.Which twostatements aretrue aboutthe Application GridA.ApplicationGridcomputing bringskey industry-leading technologieslike MSIIS andGrade WebLogicServertogether.B.ApplicationGridcomputing wellarchitected sharingof cesourcesC.Application Ghdcomputing isbased onOracles RACtechnology0,ApplicationGridcomputing resultsin morepredichablebehavior throughbetterinstrumentation andmore optimalallocation ofresourcesAnswer:B D
10.Which statement is trueabout XpauseTargetin OracleJRockit JVMA.This optionis supported by alltype ofGarbage collectionmodesB.This optionis onlysupported byGenerational GarbageCollection modeC.This optionis onlysupported byMark andSweep GarbageCollection ModelD.This optionis onlysupportedbyDynamic GarbageCollection ModerAnswer:一道认证考题所想到的[totti]weblogic相比其他认证,参加过BEA的web logic认证相对较少,如果你是其中一位,对于这道题应该有印象吧Yo.ar.admini sterin..WebLogi.domai.tha.consi st.o.a.Adminsi stratio.serve,an..cIuste.tha.c onsi st.o.tw.Manage.Servers.name.server,an.serverB.Respect ive Iy.Thes.server,ar.d istr ib Iute.betw ee.tw.mach i nes.mach ine.an.machi neB.Th.Admini stratio.serve.an.server,ar.o.machi ne.an.server,i.o.mach ineB.Loca.an.remot.c Ii ent.ar.comp lainin.abou.s Iugg is.performance.CI ient.see.t.b.unab I.t.acqu ir.connect i on.t.th.servers.A.yo.beg i.t.researc.th.probI em.yo.fin.tha.ther.ar.n.erro.message,i.th.log.an.th.server.ar.no.CPU-bound.Whic.o.th.foI Iowin.i.probab I.th.prob Iem.A.Th.server,d.no.hav.enoug.RAM.B.Th.server.nee.I arge.Execut.Queues.C.Th.servers.AcceptBack I o.paramete.i.se.to.I ow.D.Th.syste.shou I.b.us in..hardwar.SS.acce Ierator.E.Th.connectio.t.th.databas.serve,i.overwhelmed.大概的意思就是你是weblogic的系统管理员,你的用户向你抱怨系统性能很差,你要去解决这个问题但是发现日志系统无报错,并且系统不存在CPU的瓶颈,可能的原因是啥?正确的答案是C,很多人一冲动就选了A,并且很容易这样的冲动其实这是一种盲目的条件反射,如果性能一旦出现状况,很多人第一反应就是去增加虚拟机的.存,即增大-Xmx参数从-Xmx512m增加到-Xmx1024m,再到-Xmx2048m,性能问题依然存在这个时候,可能就束手无策啦AcceptBacklog属性是用来设定请求WebLogic实例的连接数,在拒绝额外的请求之前,能接受设定的缓存数.AcceptBacklog属性指定有多少TCP连接缓存在等待队列,规定服务器向操作系统请求的队列大小,这个固定的队列存放了TCP堆栈已经收到但.用程序还没有收到的连接请求默认值是50,最大值由操作系统决定根据需要修改默认的接受缓存数Accep.Backlog:....在运行期间,如果许多客户端连接得不到响应或被拒绝,并且服务器端也没有错误消息,说明接受缓存的值可能太小・・・・在你访问WebLogic时,如果收到”拒绝连接connectio.refused”的提示,则应该增加接受缓存的默认值的25%继续增加其值的25%,直到停止出现这样的提示对于Porta I类型的应用,默认值往往是不够的Logi.Timeout和SS.Logi.Timeout参数表示普通连接和SSL连接的超时时间,如果客户连接被服务器中断或者SSL容量大,可以尝试增加该值下面想说下Accep.Backlog和Queu.Length的联系.AcceptBack Io..numbe.o.wa itin.TC.connect ions,.Queu.Lengt..numbe.o.request,wait in.i..WL.queue.Us.th.AcceptBack Io.attr ibut.o.th.Serve,e Iemen.i.th.conf ig.xm.f iI.t.se.th.numbe.o.connec tio.request,th.WebLogi.Serve,i nstanc.wi I.accep.befor.refus in.add it iona.requests.Th.Acce ptBackIo.attr ibut.specific,ho.man.Transmissio.Contro.Protoco.TCP.connection.ca.b.buffe rc.i..wa i.queue.Th i.f ixcd-siz.queu.i.popu Iate.w it.request.fo.connect ion.tha.th.TC.stac.ha.rece ived.bu.th.app Ii catio.ha.no.accepte.yet.Th.defau I.va Iu.i.
5.an.th.max imu.va Iu.i.o peratin.syste.dependent.我的理解是也就是说Queu.Length是建立在AcceptBackIog之上的,只要AcceptBacklog设置为0,就不会接受任何请求如果Threads已经达到最高值也会影响AcceptBack Iog接受其他的请求总结一下就是Queu.Lengt.是服务器级的AcceptBack Iog是操作系统上的。
个人认证
优秀文档
获得点赞 0