java-ee

high swap memory utilization

試著忘記壹切 提交于 2020-01-05 08:52:47
问题 Server Configuration: Physical Ram - 16Gb Swap Memory - 27Gb OS - Solaris 10 Physical Memory Free - 598 Mb Swap Memory Used - ~26Gb Java Version - Java HotSpot(TM) Server VM - 1.6.0_17-b04 My Task is to reduce used swap memory:- Solutions i have though of Stop all java applications and wait till physical memory is sufficiently freed. then execute command "swapoff -a"(Yet to find out Solaris equivalent of this command) ...wait till swap memory used goes down to zero. then execute command

high swap memory utilization

浪尽此生 提交于 2020-01-05 08:52:14
问题 Server Configuration: Physical Ram - 16Gb Swap Memory - 27Gb OS - Solaris 10 Physical Memory Free - 598 Mb Swap Memory Used - ~26Gb Java Version - Java HotSpot(TM) Server VM - 1.6.0_17-b04 My Task is to reduce used swap memory:- Solutions i have though of Stop all java applications and wait till physical memory is sufficiently freed. then execute command "swapoff -a"(Yet to find out Solaris equivalent of this command) ...wait till swap memory used goes down to zero. then execute command

Debug WebLogic app on Managed Server on Eclipse

不问归期 提交于 2020-01-05 08:42:32
问题 I'm trying to debug a J2EE web application currently running on WebLogic, using Eclipse. My configuration is the following: AdminServer on localhost:7001 for the WebLogic admin console MyAppServer on localhost:8001 where I've deployed my web application. Now i'd like to debug the app on Eclipse (I'm using Oracle WebLogic Pack for Eclipse). I've found a lot of references on the web, but none of them seems working. maybe because my app is on a managed server... For example, I've set the

JEE Batch Job Specification with many optional Steps

限于喜欢 提交于 2020-01-05 08:27:28
问题 Is there a way to achieve the following logic with JSR 352 Batch API? I have a series of Steps that each need to be executed based on a different condition known when starting the job. ConditionsEntity is provided by an external system. public List<Steps> createStepSequence(ConditionsEntity conditions) { if (conditions.isStep1Enabled()) { steps.add(step1) } if (conditions.isStep2Enabled()) { steps.add(step2) } if (conditions.isStep3Enabled()) { steps.add(step3) } //many more ifs return steps;

Java EE 7 updatetool installation fails

霸气de小男生 提交于 2020-01-05 08:03:16
问题 I have tried to install Java EE 7 with updatetool to be able to run Java EE Tutorial examples. But the installation of updatetool fails. I have tried to start updatetool installation from the command line on my elementary os, then I saw the error when installing updatetool. Here is an image: http://oi58.tinypic.com/x6iumx.jpg Error text example 1: Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/manifest/0/updatetool@2.3.5%2C0-56.2852

Wildfly Undertow File Mimetypes

梦想与她 提交于 2020-01-05 07:46:07
问题 I want Undertow to serve static files like .jpg, .png, .js, .css, .txt etc... I edited the undertow subsystem in standalone.xml: <subsystem xmlns="urn:jboss:domain:undertow:4.0"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/> <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/> <host name="default-host" alias="localhost">

Sending an email through struts with java mail API

风格不统一 提交于 2020-01-05 07:23:30
问题 I trying to send a test mail from my struts application. i have a simple jsp page and the action corresponding to that page, i downloaded a simple code to send an email the code is as follows. package java4s; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class

Where to put property file in JBOSS 7 or Glassflish? (Best practice)

此生再无相见时 提交于 2020-01-05 07:13:44
问题 I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great. 回答1: If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out

Where to put property file in JBOSS 7 or Glassflish? (Best practice)

旧时模样 提交于 2020-01-05 07:13:03
问题 I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great. 回答1: If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out

Setting Multipart for email that has attachment

与世无争的帅哥 提交于 2020-01-05 06:58:28
问题 From my application i am send mails that has attachments. the complete code is here public int sendMail(MailDraft mailDraftInstance, mailInstance, path){ //Send the mail String mailSubject = mailDraftInstance.subject String toAddress = mailDraftInstance.toAddress String ccAddress = mailDraftInstance.ccAddress String bccAddress = mailDraftInstance.bccAddress String fromAddress = mailDraftInstance.fromAddress String body = mailDraftInstance.body String smtpUsername = 'myusername' String