weblogic

「系统架构」微服务探究之初识微服务

丶灬走出姿态 提交于 2019-12-13 21:52:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 前言 在传统的开发中,我们通常是将所有的功能打包在一起,然后统一部署在一个JEE容器(Tomcat,JBoss,WebLogic)里,包含了 DO/DAO,Service,UI等所有逻辑。如下图所示: 这种开发方式虽然操作简单,代码重用率高,没有分布式的管理和调用消耗,但是由于代码功功能耦合在一起,通常是牵一发动全身,一个微小的问题,都可能导致整个应用挂掉。这对于大型应用来说,是很不可行的。因此,有人提出能不能将每一个小的服务独立开来,分别部署维护呢?如产品服务独立成一块,订单服务独立成一块,用户服务也独立成一块。这样,每一个服务之间都不会有高耦合性,后期维护升级也更加方便。 是的,将每一个服务独立部署分开维护,的确可以解决传统开发中的高耦合性,但是我们也要考虑在传统的开发方式中所有的服务都是本地的,UI可以直接调用,现在按功能拆分成独立的服务,跑在独立的服务器或进程中,客户端UI如何互相访问呢? 后台有N个服务,前台就需要记住管理N个服务,一个服务下线/更新/升级,前台就要重新部署,这明显不服务我们 拆分的理念,特别当前台是移动应用的时候,通常业务变化的节奏更快。 另外,N个小服务的调用也是一个不小的网络开销。还有一般微服务在系统内部,通常是无状态的,用户登录信息和权限管理最好有一个统一的地方维护管理

Weblogic setting for proxy

好久不见. 提交于 2019-12-13 20:46:18
问题 I have a problem with configuration of proxy to connect to WebService on Weblogic 10.3.5. I cannot use System.setProperty() because it has to be per connection aproach. Proxy which I have to use has to have " UserAgent " header. I have tried two options: ClientProxyFeature but it doesn't work because it generate request to proxy without "UserAgent header". ProxySelector : this approach work great on JUnit test but when I run it on Weblogic I receive following error error: java.net

Weblogic Workmanagers and JAX-WS webservices

╄→尐↘猪︶ㄣ 提交于 2019-12-13 19:41:34
问题 is it possible to manage Jax-WS annotated Webservices in Weblogic WorkManagers (at less WLS 10.3.4) as we can do for Servlets or EJBs ? 回答1: Yes! If you have a global Work Manager you can try that in your weblogic.xml: <?xml version="1.0" encoding="UTF-8"?><wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5

RunTime Retention policy java annotations doesn't work in Weblogic 12C

南笙酒味 提交于 2019-12-13 19:25:25
问题 We are planning to upgrade our product to Web-logic 12.C and WebSphere 8 stack ( Earlier it was WLC 10.3.5 and WAS 7). But issue in one of the web service component causing entire application failed to deploy in web logic. It works perfectly fine with WebSphere 8. When deploying the EAR, Application sever throws 'Exception [EclipseLink-59] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException' . After more analysis, I found below code

Getting error while re-deploying a versioned application in weblogic 10.3 server

给你一囗甜甜゛ 提交于 2019-12-13 18:22:42
问题 I have an EAR application already deployed on my weblogic 10.3 server. Now I did some modifications and re-created the EAR file and trying to re-deploy the application. But I am getting error as : You cannot distribute application 'sample.appl' without version. The application was previously deployed with version 'xxxx' Please help me on how to solve this error? 回答1: There are two options, redeploy or delete the old deployment: 1 - For a redeploy to work, the deployment .ear file should be

Weblogic server startup profiling tools

断了今生、忘了曾经 提交于 2019-12-13 17:20:19
问题 What would be the best tool or approach if I want to profile my weblogic startup and tune start-up timing. Can it be done by visual vm or jprofiler or yourkit? What would be the best? 回答1: If you use JProfiler, use the integration wizard for Weblogic to configure profiling by selecting Session->Integration Wizards->New Server Integration from the main menu. On the "Startup mode" step, select the "Wait for a connection from the JProfiler GUI" option. When you start the session, the "Session

How do I create a common component in Weblogic?

心已入冬 提交于 2019-12-13 15:29:02
问题 I want to build a common component that can be called from any deployed application. But I do not know how to do this? Is there a pattern for this? For example, If I deploy webservice #1, I want it to call a common application that is also deployed on the server. Then I add a new webservice #2, I also want this one to call the common application. How can I do this? Any Ideas? Thanks 回答1: You may deploy your shared component as a librarie as mentioned. In this case the other application would

Stop deployment when Exception occurs in ServletContextListener

孤街浪徒 提交于 2019-12-13 15:06:45
问题 I have following web.xml configuration where exception is thrown at com.mkyong.context.ContextSecond in contextInitialized() method. In that case deployment does not stop and app.war keep servicing. How I can stop deployment when exception occurs? Using weblogic 12c Archetype Created Web Application <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listener> <listener-class>com.mkyong.context.ContextFirst</listener-class> </listener

Creating WebLogic users programmatically from a standalone Java client

百般思念 提交于 2019-12-13 12:14:04
问题 I'm trying to create users in WebLogic (10.3.4) programmatically from a simple standalone Java client (one class --> two methods: createWeblogicUser() & main()). public void createWeblogicUser() { try { Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.SECURITY_PRINCIPAL, "weblogic"); env.put(Context.SECURITY_CREDENTIALS, "weblogic"); env.put(Context.PROVIDER_URL, "t3://myserver

How do I ignore stuck threads in a Weblogic Server

旧巷老猫 提交于 2019-12-13 08:18:43
问题 I've got the below code working on Weblogic Application Server 10.3.2. The long running task executed on timerExpired takes longer than the server wide StuckThreadMaxTime of 600 seconds. I do not want to modify this value, but just to ignore the stuck thread timeout for this particular thread of processing. I can see how this can be accomplished using a commonj WorkManager from this: http://download.oracle.com/docs/cd/E11035_01/wls100/config_wls/self_tuned.html#wp1069945 And then by adding