简体   繁体   English

我可以在两个不同的端口上运行weblogic吗?

[英]Can I run weblogic on two different port?

I am a newbie to weblogic. 我是weblogic的新手。 I have two wars(includes same code with feature1 and feature2) with the same context.I cannot merge the code as they are planned for different releases. 我有两次战争(包括具有Feature1和Feature2的相同代码)和相同的上下文。我无法合并代码,因为它们计划用于不同的版本。

I want to test them simultaneously.I have an idea about JBoss cloning.In Jboss,I can run 2 wars simultaneously on different ports. 我想同时测试它们。我对JBoss克隆有所了解。在Jboss中,我可以在不同的端口上同时运行两次wars。

Can I do the same in weblogic? 我可以在weblogic中做同样的事情吗? If yes,then how? 如果是,那怎么办?

And there is one more way, that I can do with change of context in weblogic.xml.That way I can deploy two wars with different context. 还有另一种方法,我可以使用weblogic.xml中的上下文更改进行操作,这样就可以部署两次具有不同上下文的战争。

"A WebLogic Server domain always has exactly one administration server. This special instance of WebLogic Server is responsible for the configuration of the entire domain. Other servers in the domain are called managed servers, and they are typically the servers on which you run your applications. A domain can contain any number of managed servers." “一个WebLogic Server域始终只有一台管理服务器。WebLogicServer的这个特殊实例负责整个域的配置。该域中的其他服务器称为托管服务器,它们通常是您在其上运行应用程序的服务器。域可以包含任意数量的托管服务器。” - From Oracle Docs -从Oracle文档

So, you can achieve this creating 2 managed servers in your domain, as they will run independently from each other. 因此,您可以在域中创建2个托管服务器,因为它们将彼此独立运行。 You will need to create another managed server and configure everything for this new instance (such as Data Sources and other services) 您将需要创建另一个托管服务器并为此新实例配置所有内容(例如数据源和其他服务)

You can find how to configure a managed server on Oracle Docs attached (the tutorial is a bit long to put down in images here). 您可以找到如何在随附的Oracle Docs上配置托管服务器(本教程有点长,无法在此处放置图像)。 I've been using these for years on my development environment and it works just fine. 我在开发环境中使用这些工具已经有好几年了,并且效果很好。 http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/02/configmanaged.html http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/02/configmanaged.html

To deploy your application to a managed server you can follow the steps below: 要将应用程序部署到托管服务器,可以按照以下步骤操作:

  1. Deploying an application is a change to the domain's configuration, so it must first be locked. 部署应用程序是对域配置的更改,因此必须首先将其锁定。 In the Change Center, click the Lock & Edit button. 在更改中心中,单击“锁定和编辑”按钮。
  2. Under Domain Structure, click Deployments. 在“域结构”下,单击“部署”。
  3. On the right, under Deployments, click the Install button. 在右侧的“部署”下,单击“安装”按钮。
  4. Find the Current Location field. 查找当前位置字段。 Use the links to browse to the location in which you can find your desired .war file 使用链接浏览到可以找到所需.war文件的位置。
  5. On the next screen, ensure that Install this deployment as an application is selected. 在下一个屏幕上,确保选中“将此部署作为应用程序安装”。
  6. On the next screen, select your new managed server and click next 在下一个屏幕上,选择新的托管服务器,然后单击“下一步”。
  7. On the next screen, keep all the default values and click Next. 在下一个屏幕上,保留所有默认值,然后单击“下一步”。
  8. On the next screen, select No, I will review the configuration later. 在下一个屏幕上,选择“否”,稍后我将检查配置。 Then click Finish. 然后单击完成。
  9. Notice the messages that the deployment was installed, but changes must be activated. 请注意有关已安装部署的消息,但必须激活更改。 Also notice the benefits application listed in the Deployments table. 还要注意“部署”表中列出的Benefits应用程序。
  10. In the Change Center click the Activate Changes button. 在更改中心中,单击“激活更改”按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Java DatagramSockets,我可以将两个不同的套接字连接到同一本地端口但在不同的本地地址吗? - With Java DatagramSockets, can I connect two different sockets to the same local port but on different local addresses? 如何同时运行两个不同的主类? - How can I run two different main class at the same time? 为什么grails无法在同一端口上运行两个应用程序? - Why can't grails run two applications on the same port? 系统中的两个不同的 UDP 套接字可以绑定同一个端口吗? - Can two different UDP socket in a system bind same port? WebLogic中具有不同密钥库/信任库的新SSL侦听器端口 - New SSL listener port with different keystore/truststore in WebLogic 我可以运行两个EDT吗? - Can I run two EDTs? 两个不同的套接字实例可以侦听相同的TCP端口(端口已在使用中) - Can two different socket instances listen to same TCP port ( Port already in use ) 如何在不同的端口上运行@RestController? - How to run @RestController on a different port? 启用管理员端口后无法访问Weblogic 10.3 - Weblogic 10.3 can not be accessed after enableing Administrator port 运行应用程序时Weblogic中出现异常? - exception in Weblogic when i run my application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM