Friday, July 20, 2018

Issues :Java

October /24/2018
https://www.seguetech.com/microsoft-sql-server-vs-oracle-same-different/October /13/2018




October /12/2018
Good articles on  hibernate search : 


JMS 
channel adapters vs gateways

https://www.javacodegeeks.com/2015/09/enterprise-messaging.html#

https://docs.spring.io/spring-integration/reference/html/spring-integration-core-messaging.html

https://stackoverflow.com/questions/29989581/spring-integration-inbound-vs-outbound-channel-adapters/29992267


https://stackoverflow.com/questions/8085612/what-is-the-difference-between-a-channel-adapter-and-a-messaging-gateway-pattern


Conceptual knowledge of Amazon MQ
https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/welcome.html

https://stackoverflow.com/questions/50981305/how-to-implement-the-jms-inbound-outbound-configuration-in-separate-spring-int

https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#_deploying_on_wildfly


Hibernate search  

https://www.thoughts-on-java.org/implement-complex-full-text-search-hibernate-search/
https://www.thoughts-on-java.org/add-full-text-search-application-hibernate-search/

https://stackoverflow.com/questions/18237489/how-to-use-hibernate-analyzer


Example
https://www.dineshonjava.com/hibernate-search-api-hibernate-4-on/

Hibernate best practices 

https://www.thoughts-on-java.org/hibernate-best-practices/

https://access.redhat.com/documentation/en-us/jboss_enterprise_application_platform/4.2/html/hibernate_search_reference_guide/


https://dzone.com/articles/why-should-you-care-about-equals-and-hashcode
https://coderanch.com/t/636608/frameworks/equals-hashCode-entities-Spring-MVC

Why Hibernate entities should include equals and hashcode? 

https://stackoverflow.com/questions/5031614/the-jpa-hashcode-equals-dilemma
10 common hibernate mistakes that cripple your performance 

very important link

High-performance  hibernate tutorial 


https://vladmihalcea.com/tutorials/hibernate/

Logging framework comparison.
http://www.java-logging.com/comparison/


LUCENE DOCUMENT  SEARCH ENGINE

https://www.tutorialspoint.com/lucene/index.htm
https://dzone.com/articles/apache-lucene-a-high-performance-and-full-featured
https://howtodoinjava.com/lucene/lucene-index-search-examples/
https://examples.javacodegeeks.com/core-java/apache/lucene/apache-lucene-hello-world-example/


October /10/2018

Java Annotations : http://tutorials.jenkov.com/java/annotations.html
Boon : http://tutorials.jenkov.com/java-json/boon-objectmapper.html
Reflection : http://tutorials.jenkov.com/java-reflection/generics.html
Jackson Annotations : http://tutorials.jenkov.com/java-json/jackson-annotations.html#jsonsetter



https://www.baeldung.com/jackson-json-view-annotation
https://github.com/FasterXML/jackson-annotations/wiki/Jackson-Annotations
https://www.concretepage.com/jackson-api/jackson-jsonproperty-and-jsonalias-example
https://www.baeldung.com/jackson-annotations
https://www.baeldung.com/jackson-advanced-annotations
https://www.baeldung.com/jackson-bidirectional-relationships-and-infinite-recursion
https://www.baeldung.com/jackson-deserialization
http://www.vogella.com/tutorials/JavaPersistenceAPI/article.html
https://www.javatpoint.com/jpa-list-mapping

http://www.vogella.com/tutorials/JavaPersistenceAPI/article.html

https://stackoverflow.com/questions/212350/which-annotation-should-i-use-idclass-or-embeddedid



important
http://www.eclipse.org/eclipselink/documentation/2.5/solutions/jpatoxml002.htm
https://docs.oracle.com/cd/E28280_01/doc.1111/e25034/jpatoxml.htm#TLADG288
https://www.ibm.com/developerworks/rational/library/resolve-jaxb-cycle-errors/index.html
https://www.oracle.com/technetwork/articles/marx-jse6-090753.html
https://docs.oracle.com/cd/E28280_01/doc.1111/e25034/jpatoxml.htm#TLADG291
https://stackoverflow.com/questions/1820428/do-domain-classes-usually-get-jpa-or-jaxb-annotations-or-both
http://www.eclipse.org/eclipselink/documentation/2.5/solutions/jpatoxml002.htm
http://www.thejavageek.com/2014/05/01/jpa-idclass-example/


October /10/2018

@MappedSuperclass : has no superclass defined




How and when to create custom annotations?

https://www.mkyong.com/java/java-custom-annotations-example/


https://docs.oracle.com/javase/1.5.0/docs/guide/language/annotations.html


_____________________________________________________________________

August /24/2018 

SELECT * FROM GFILTER_VIEW_ELEMENT  WHERE VIEW_ID =118 AND TO_DATE(REC_DATE) = '24-AUG-18' ORDER BY REC_DATE DESC;

August/18/2018

https://docs.google.com/spreadsheets/d/10n_OHtvs3t4ygc7QM61mP9e8OwK6BHjK7XNY4ff73c0/edit#gid=1182070076

SELECT * FROM GFILTER_VIEW_ELEMENT  WHERE VIEW_ID =118 AND TO_DATE(REC_DATE) = '24-AUG-18' ORDER BY REC_DATE DESC;




August/17/2018

Good reads
https://blog.udacity.com/2016/03/12-best-charting-libraries-for-web-developers.html

https://github.com/AnthonyGiretti/Angular4-GoogleCharts

http://anthonygiretti.com/2017/10/12/using-google-charts-in-angular-4-project-part-2/

https://www.npmjs.com/package/ng2-google-charts


https://developers.google.com/chart/interactive/docs/reference#google_visualization_data_group


August/16/2018 :

Graphite is a tool for rendering time series data


https://dzone.com/articles/graphite-grafana-metrics-monitoring-made-easy

https://graphite.readthedocs.io/en/latest/overview.html


Some good links in R


http://www.oracle.com/technetwork/java/jvmls2013vitek-2013524.pdf

http://www.studytrails.com/rjava-eclipse-plugin/execute-r-from-java/

http://www.oracle.com/technetwork/java/jvmls2013vitek-2013524.pdf

http://makemeanalyst.com/what-are-some-good-resources-for-learning-r/

https://codophile.com/2015/04/15/how-to-integrate-r-with-java-using-rjava/

August/12/2018 :

setting up path in mac

https://hathaway.cc/2008/06/how-to-edit-your-path-environment-variables-on-mac/ 
https://code.visualstudio.com/docs/setup/mac



August/10/2018 : 

http://codophile.com/2015/05/02/how-to-integrate-r-with-java-using-rserve/

https://www.r-project.org/conferences/DSC-2003/Proceedings/Urbanek.pdf

http://codophile.com/2015/05/02/how-to-integrate-r-with-java-using-rserve/

August/09/2018 : 

Three ways to convert String to JSON

http://www.java67.com/2016/10/3-ways-to-convert-string-to-json-object-in-java.html


July/31/2018 : ESRI LINKS

https://github.com/SebastianM/angular-google-maps
http://www.lib4dev.com/info/Esri/esri-loader/74071376

https://medium.com/javascript-in-plain-english/i-created-the-exact-same-app-in-react-and-vue-here-are-the-differences-e9a1ae8077fd

July/30/2018 : ESRI LINKS

Java script object patterns

https://leoasis.github.io/posts/2013/01/24/javascript-object-creation-patterns/
https://www.codeproject.com/Articles/687093/Understanding-JavaScript-Object-Creation-Patterns
https://www.sitepoint.com/premium/courses/getting-started-with-node-js-2979/lesson/1/step/1
https://www.codeproject.com/Articles/687093/Understanding-JavaScript-Object-Creation-Patterns
https://content.pivotal.io/blog/javascript-constructors-prototypes-and-the-new-keyword
https://www.sitepoint.com/javascript-object-creation-patterns-best-practises/


ESRI dashboard

https://developers.arcgis.com/dashboard

Core documentation

https://developers.arcgis.com/documentation/

ESRI Example source code link

https://github.com/Esri/developer-support



July /20/2018


https://www.quickprogrammingtips.com/java/how-to-use-java-to-get-a-list-of-running-processes-in-linux.html

Check this

https://stackoverflow.com/questions/14590598/passing-json-data-from-servlet-to-jsp-to-js-file

Very good article 

https://confluence.atlassian.com/enterprise/garbage-collection-gc-tuning-guide-461504616.html



Jfree Charts

http://zetcode.com/java/jfreechart/



Collect Linux command output


Process p = Runtime.getRuntime().exec("free -m");


linux memory commands


https://stackoverflow.com/questions/12797560/command-line-tool-to-find-java-heap-size-and-memory-used-linux

https://dzone.com/articles/java-memory-and-cpu-monitoring-tools-and-technique


https://www.dynatrace.com/resources/ebooks/javabook/


https://www.dynatrace.com/resources/ebooks/javabook/visualizing-performance-data/

Java Memory and CPU Monitoring Tools and Techniques

https://dzone.com/articles/java-memory-and-cpu-monitoring-tools-and-technique

Getting JVM heap size, used memory, total memory using Java Runtime

https://viralpatel.net/blogs/getting-jvm-heap-size-used-memory-total-memory-using-java-runtime/


Executing linux commands to read memory from 

https://coderanch.com/t/419196/java/execute-Linux-command-Java-fork


https://www.quickprogrammingtips.com/java/how-to-use-java-to-get-a-list-of-running-processes-in-linux.html


Adding CORS FILTER

https://howtodoinjava.com/servlets/java-cors-filter-example/




How to get HttpSession in rest web service ?

https://stackoverflow.com/questions/11831042/restful-how-to-get-access-to-httpsession-inside-the-service-class

https://stackoverflow.com/questions/11831042/restful-how-to-get-access-to-httpsession-inside-the-service-class/11833375




https://lostechies.com/gabrielschenker/2013/12/05/angularjspart-1/


Struts2    How to Return a JSON Response [duplicate]

How to get responce in struts 2 ?
https://stackoverflow.com/questions/14599073/struts2-how-to-return-a-json-response

Struts 2 JSON EXAMPLE

https://www.mkyong.com/struts2/struts-2-and-json-example/

Struts 1

https://www.codeproject.com/Tips/1071914/How-to-Get-JSON-Response-in-Struts

https://dzone.com/articles/using-struts-2-json-and-jquery


July/19/2018


https://www.codeproject.com/Tips/1071914/How-to-Get-JSON-Response-in-Struts

https://www.concretepage.com/angular/
https://www.js-tutorials.com/javascript-tutorial/use-localstorage-sessionstorage-using-webstorage-angular4/


July/18/2018


https://stackoverflow.com/questions/23986750/ctrl-space-not-working-for-content-assist-on-eclipse

https://stackoverflow.com/questions/26193272/assigning-a-hashmap-to-a-variable-within-jsp




July/16/2018


https://examples.javacodegeeks.com/core-java/junit/junit-dbunit-example/

July/15/2018

https://dzone.com/articles/effective-eclipse-shortcut-key

ver good link

http://www.vogella.com/tutorials/EclipseShortcuts/article.html

https://dzone.com/articles/effective-eclipse-shortcut-key


ng store

https://medium.com/stratajet-tech/a-beginners-guide-to-ngrx-store-bc2184d6d7f0


July/12/2018

Difference between Spring Quartz and Spring Batch


Quartz is a scheduling framework. Like "execute something every hour or every last friday of the month"
Spring Batch is a framework that defines that "something" that will be executed. You can define a job, that consists of steps. Usually a step is something that consists of item reader, optional item processor and item writer, but you can define a custom stem. You can also tell Spring batch to commit on every 10 items and a lot of other stuff.
You can use Quartz to start Spring Batch jobs.

So basically Spring Batch defines what should be done, Quartz defines when it should be done
https://stackoverflow.com/questions/33188368/spring-batch-vs-quartz-jobs
https://examples.javacodegeeks.com/enterprise-java/spring/batch/quartz-spring-batch-example/Spring + Batch Examplehttps://examples.javacodegeeks.com/enterprise-java/spring/batch/quartz-spring-batch-example/down vote
https://examples.javacodegeeks.com/enterprise-java/spring/batch/quartz-spring-batch-example/accepted




July/11/2018



https://superuser.com/questions/561365/disabling-function-keys-in-windows-8-with-autohotkey


July/10/2018


Hibernate

https://www.concretepage.com/hibernate/example-target-hibernate


Spring BOOT


https://www.concretepage.com/spring-boot/spring-boot-servlet-mapping

http://www.baeldung.com/spring-boot-migration


BEAN CREATION EXCEPTION 


https://javarevisited.blogspot.com/2016/09/2-reasons-of-orgspringframeworkbeansfactory-beanCreationException-Error-creating-bean-with-name.html





Migrating  Spring MVC project into Spring boot




  • http://www.baeldung.com/spring-boot-migration
  • https://stackoverflow.com/questions/31409231/migrate-existing-spring-app-to-spring-boot-manually-configure-spring-boot
  • https://www.quora.com/How-do-I-migrate-my-existing-Spring-MVC-applications-to-spring-boot




Java - JPA - Generators - @SequenceGenerator

https://stackoverflow.com/questions/2595124/java-jpa-generators-sequencegenerator

https://www.programcreek.com/java-api-examples/index.php?api=javax.persistence.SequenceGenerator

https://stackoverflow.com/questions/10628099/hibernate-could-not-get-next-sequence-value/15286642

https://www.programcreek.com/java-api-examples/index.php?api=javax.persistence.SequenceGenerator
https://www.programcreek.com/java-api-examples/index.php?api=javax.persistence.SequenceGenerator

Adding postGIS to postgres


https://download.osgeo.org/postgis/windows/pg93/
July /09/2018


HIBERNATE


https://www.callicoder.com/hibernate-spring-boot-jpa-embeddable-demo/

ER Diagrams


Creating tables from ER

https://stackoverflow.com/questions/24960412/mysql-creating-tables-from-er-diagram

https://code.tutsplus.com/articles/sql-for-beginners--net-8200



POSTGRES


creating table with geometry data type
https://stackoverflow.com/questions/8150721/which-data-type-for-latitude-and-longitude
https://memorynotfound.com/spring-boot-spring-security-hibernate-configuration-example/
https://www.dineshonjava.com/hibernate/hibernate-many-to-one-mapping-tutorial/
https://stackoverflow.com/questions/22186506/use-point-type-with-postgresql-and-jpa-hibernate


JMS transactions


http://www.informit.com/articles/article.aspx?p=26137&seqNum=8

https://stackoverflow.com/questions/14154142/java-ee-transactionmanagement-bean-how-does-it-combine-with-container-managed
https://www.tutorialspoint.com/ejb/ejb_transactions.htm
https://examples.javacodegeeks.com/enterprise-java/ejb3/transactions/ejb-transaction-management-example/

https://www.javaworld.com/article/2074123/java-web-development/transaction-and-redelivery-in-jms.html

https://docs.oracle.com/javaee/6/tutorial/doc/gipko.html

Good post

http://theopentutorials.com/tutorials/java-ee/ejb3/mdb/mdb-example/
https://www.amqp.org/about/what
https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol


Message Borkers

https://dzone.com/articles/exploring-message-brokers
https://www.predic8.com/activemq-hornetq-rabbitmq-apollo-qpid-comparison.htm


HornetQ

https://www.journaldev.com/9858/jms1-1-producer-consumer-embedded-jboss-hornetq-example
https://dzone.com/articles/hornetq-getting-started

http://docs.jboss.org/hornetq/2.2.5.Final/quickstart-guide/en/html_single/index.html#running.jboss.as6

https://howtodoinjava.com/hornetq/spring-3-hornetq-standalone-integration-example/


Dynamic ProxiesJava Reflection API 
http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html

https://dzone.com/articles/power-proxies-java
http://www.baeldung.com/java-dynamic-proxies
http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html

https://dzone.com/articles/power-proxies-java

http://www.baeldung.com/java-dynamic-proxies
http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html

https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Proxy.html

https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Proxy.html

Eclpise Shortcuts

https://dzone.com/articles/10-best-eclipse-shortcuts
https://dzone.com/articles/effective-eclipse-shortcut-key
http://www.javatechblog.com/eclipse/eclipse-shortcut/

Understanding the difference between JMS & ws

https://www.quora.com/What-is-the-difference-between-JMS-and-web-services
https://stackoverflow.com/questions/855210/jms-vs-webservices


July /02/2018
castor + spring boot example

http://javasampleapproach.com/java-integration/convert-java-object-intofrom-xml-spring-boot



SQL SHORTCUTS

ERROR:  there is no unique constraint matching given keys for referenced table "employee"

https://stackoverflow.com/questions/46835404/there-is-no-unique-constraint-matching-given-keys-for-referenced-table-employee


July/01/2018
Visual code text editor was not working

Give package  reqd write permissions


sudo chmod -R 777 chmod a+rwx /usr/local/lib/node_modules/typescript

upgrade typescript :

npm install -g typescript@2.2.1


June/29/2018

Increase font size in eclipse

General → Appearance → Colors and Fonts → Java Editor text font

June/28/2018

Cannot change version of project facet Dynamic Web Module to 3.0?


https://stackoverflow.com/questions/18122336/cannot-change-version-of-project-facet-dynamic-web-module-to-3-0

June/27/2018

Installing fiddler:

https://stackoverflow.com/questions/21784280/why-wont-fiddler-install-my-certificate-windows-8-unable-to-configure-window

June/26/2018

maven  force update snapshots







Alternative:
net use x: \\localhost\c$\Folder\Example
The difference between net use & subst below break

subst

When a share becomes unavailable subst will try over and over again to re-connect severely impacting performance of your PC as it tries to re-connect. This is less common when mapping local files as it will only occur if you say re-name the folders in the path. The resolution if this does occur is subst x: /d

net use

net use was introduced in win2k/xp to provide an alternative to this. When net use is used to connect to a location and that location becomes unreachable windows will report drive as disconnected and not try to re-connect until user tries to re-connect to resources on the mapped drive. This resolves the performance issues noted in subst

________________________________________________________________________________________
https://superuser.com/questions/644684/mapping-drive-letters-to-local-folders


https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-6

https://docs.microsoft.com/en-us/powershell/scripting/getting-started/getting-started-with-windows-powershell?view=powershell-5.1