Java EE

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications. All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules and security requirements.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have my code like below
      response = orch.process(request);

when i mover on to process method and click control and left mouse click it supposed to go to process method implementation but it is not doing in eclipse mars.

it used to work earlier not sure suddenly what happened stops working.

i restarted my laptop still not working.

please advise
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

we have web application, it is currently supported IP4.it is developed with Spring mvc.
now i want to support IPV6.. how could be the changes.. and how it will effect.
0
hi,

in eclipse java project i have below stored procedure in a DAO class say LMN.java


abc_TerminalXYZ_Select

wen i search on it eclipise not finding.
how to find all the stored proc similar to above in all DAO classes?
what are best search strategies to find what i want in eclipise?
please advise
0
At what point should I be concerned with learning data structure and algorithm in Java. I have discovered that it's a very important strategy  to be good in writing codes in any computer language.
0
What is tunneling and JRMP and DMZhow they are related to firewall and ports and network. Why we use tunneling. please advise
0
How authentication and authorization different from data integrity and Confidentiality.

why we use key, tokens, certificates, rkm etc. please advise
0
I was reading about Resource Bundles

as below
internationalization feature of the JDK provides a mechanism for separating user interface (UI) elements and other locale-sensitive data from the application logic in a program.
I can relate with local sensitive data separation but not the UI elements like buttons etc why we need to separate?

pelase advise
0
Hi,

the create method is optional for Entity Beans. This is useful when you do not want to clients to be able to insert data into the database.

i am reading as above. I was not clear what is relation between create metnod and the insert data to the database.  please advise
0
i got below exception with AES256 algorithem encryption/decryption.
java.security.InvalidKeyException: Illegal key size exception

But i fixed issue by following below link Info. But i am not allowed to updated java policy files..
Is there any other approach to fix issue?

https://deveshsharma.info/2012/10/09/fixing-java-security-invalidkeyexception-illegal-key-size-exception/
0
i am using jboss7 application server for my web application.(spring MVC)
when i monitor HEAP Size, it is continuously growing when i am accessing web pages.
How to find root cause?
What could be reasons?
0
Setting up LaraDock for Laravel
Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

In my java web application,generating the policy pdf  .Java compiler used is jdk1.4 .Need to affix the digital signature to existing pdf .Here we are using pdf template and replace the specially values dynamically.Need to affix the digital signature to existing pdf.
0
http://codingbat.com/prob/p128270
public int[] front11(int[] a, int[] b) {
 
  if (a.length==0) return new int[]{b[0]};
  if (b.length==0) return new int[]{a[0]};
   if ((a.length==0) && (b.length==0)) return new int[]{};
  return new int[]{a[0],b[0]};
}





public int[] front11(int[] a, int[] b) {
    if ((a.length==0) && (b.length==0)) return new int[]{};
  if (a.length==0) return new int[]{b[0]};
  if (b.length==0) return new int[]{a[0]};

  return new int[]{a[0],b[0]};
}




why first one fails below test with ArrayIndexOutOfBoundsException
Expected	Run		
front11([1, 2, 3], [7, 9, 8]) → [1, 7]	[1, 7]	OK	
front11([1], [2]) → [1, 2]	[1, 2]	OK	
front11([1, 7], []) → [1]	[1]	OK	
front11([], [2, 8]) → [2]	[2]	OK	
front11([], []) → []	ArrayIndexOutOfBoundsException: 0 (line:3)	X	
front11([3], [1, 4, 1, 9]) → [3, 1]	[3, 1]	OK	
front11([1, 4, 1, 9], []) → [1]	[1]	OK	
other tests
OK	
Correct for more than half the tests

Your progress graph for this problem

Open in new window


please advise
0
hi,

http://codingbat.com/prob/p136950

for above challenge
Map-1 > mapAB4
prev  |  next  |  chance

Modify and return the given map as follows: if the keys "a" and "b" have values that have different lengths, then set "c" to have the longer value. If the values exist and have the same length, change them both to the empty string in the map.

mapAB4({"a": "aaa", "b": "bb", "c": "cake"}) → {"a": "aaa", "b": "bb", "c": "aaa"}
mapAB4({"a": "aa", "b": "bbb", "c": "cake"}) → {"a": "aa", "b": "bbb", "c": "bbb"}
mapAB4({"a": "aa", "b": "bbb"}) → {"a": "aa", "b": "bbb", "c": "bbb"}

what are input parameters for the method.

what is the return for it?


"a": "aaa", "b": "bb", "c": "cake"//is these are bunch of string values pretending to be key and value for a map??

please advise on how to understand and approach this challenge
0
How could i provide the security(Authentciation) in spring
0
adding child class in virtual document getting ucf session wait timeout.
errors are
java.lang.IllegalStateException: ucf session wait timeout:
at com.documentum.web.contentxfer.ucf.UcfSessionManager.newSession(UcfSessionManager.java:391)
at com.documentum.web.contentxfer.ucf.UcfSessionManager.getSession(UcfSessionManager.java:137)
at com.documentum.web.contentxfer.ucf.UcfContentTransport.getUcfSession(UcfContentTransport.java:195)
at com.documentum.web.contentxfer.ucf.UcfContentTransport.<init>(UcfContentTransport.java:68)
at sun.reflect.GeneratedConstructorAccessor208.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at com.documentum.webcomponent.library.contenttransfer.ContentTransferServiceContainer.createTransport(ContentTransferServiceContainer.java:731)
at com.documentum.webcomponent.library.contenttransfer.checkout.CheckoutContainer.createTransport(CheckoutContainer.java:325)
at com.documentum.webcomponent.library.contenttransfer.edit.EditContainer.createTransport(EditContainer.java:63)
at com.documentum.webcomponent.library.contenttransfer.ContentTransferServiceContainer.invokeService(ContentTransferServiceContainer.java:320)
at …
0
i am new to qrtz.
My project is based on spring mvc. spring version is 4.3.3.
we need to write some qrtz schedulers in spring.
please provide examples.

we will have one common database and multipul server instances. If scheduler is running in one server instance, It should not run in other instance in same time.  (it is like HA setup)
0
if ((option != null) && option.equals("PDFFILE")) {
                  String fileName = req.getParameter("fileName");
                        //Added By Ambrish on 20170207 - Fortify Fix: Path Manipulation
                        if(fileName != null){
                              if(NBSFilterOutput.validateFileName(fileName)){
                                    String pathFileName = DataDict.getFileProperty("reportpath", "reminder_property_path") +"/"+fileName;
                                    //added following if by Raghavendra on 20170609 to fix issue: Path Manipulation
                                    if(pathFileName != null){
                                          try{
                                                File file = new File(pathFileName);
                                                downloadFile(file, req, res);
                                          }catch(IOException ioe){
                                                logger.debug("IOException in ReminderEnquiryServlet for File, directory " + pathFileName + " may not exist" + ioe);
                                          }
                                    }
                              }
                        }
Hi please suggest how to resolve path manipulation issue.on line-
File file = new File(pathFileName);
0
Hi,
I tried below challenge as
http://codingbat.com/prob/p167430
public class Has271 {

	public static void main(String[] args) {
		int[] arr={1, 2, 7, 1};
		// TODO Auto-generated method stub
		System.out.println("Value is"+has271(arr));//should get true but getting false
	}
	
	public static boolean has271(int[] nums) {
		 int val=nums[0];
		 
		 for(int i=0;i<nums.length-2;i++){
		   
		   if(  (nums[i+1]==val+5)
		   && (  (Math.abs(nums[i+2]-val)<=2) )  )
		   return true;
		   continue;
		 }
		 return false;
		}


}

Open in new window


what is wrong with my above code why i am getting false instead of true?
please advise
0
When I run Java dynamic Web  Project. I got an error  :Publishing J2EE preview at localhost..has encountered a problem.
Could you please tell the alternative of this problem.
0
More Than Just A Video Library
More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

I am getting the above exception while running the spring batch application in eclipse without maven
0
Hi

Please help me with the following.

When isnatlling ICDL Kplace Test Centre, I recived an error DBMS init Failed.

Please explan and help
0
hi does anyone know how to implement   marquee element in oracle java adf
0
Could you please provide the JDBC transaction with Example
0
Could you please provide the Spring Transaction with Example
0
Could you please provide Hibernate Transaction With Example and understand
0

Java EE

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications. All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules and security requirements.