Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread zahid



It is the final  and static engineering truth

V1.0 hard coded solution Struts

V2.0 Flexible and configurable,

interface  class loosely coupled with implementation class.

Spring boot MBeans etc.


www.backbutton.co.uk
¯\_(ツ)_/¯
Engineering Truth
V1.0 hard code
V2.0 Flexible

On 04/01/2020 03:16, Peter L. Berghold wrote:

On Fri, 2020-01-03 at 22:09 -0500, Carl Mosca wrote:

Albeit a slightly different direction, we tend to do a good bit of
Spring Boot which in addition to being Tomcat based and typically
includes Hibernate, has, what I believe, is a (nice) opinionated way
of doing such configurations.



Well that just gave me the impetus to take a look at Spring Boot.  Been
hearing about it and never gave it a thought



--
www.backbutton.co.uk
¯\_(ツ)_/¯
Engineering Truth
V1.0 hard code
V2.0 Flexible


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Peter L. Berghold
On Fri, 2020-01-03 at 22:09 -0500, Carl Mosca wrote:
> 
> Albeit a slightly different direction, we tend to do a good bit of
> Spring Boot which in addition to being Tomcat based and typically
> includes Hibernate, has, what I believe, is a (nice) opinionated way
> of doing such configurations.
> 
> 

Well that just gave me the impetus to take a look at Spring Boot.  Been
hearing about it and never gave it a thought


-- 


Peter L. Berghold 
Professonally: (retired) IT Professional (DevOps, Puppet, Perl...)
Advocations: Dog Training, Beer Brewing, BBQ, Cooking 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Carl Mosca
Hi Peter,

Environment variables should be used for this purpose.  Exactly how this is
done might vary a bit depending on your preference/practice configuration
method.

What are you using now for the database configuration?

NetBeans will allow you to set the environment variables which would also
be set for the container (via Kubernetes in your case).

Albeit a slightly different direction, we tend to do a good bit of Spring
Boot which in addition to being Tomcat based and typically includes
Hibernate, has, what I believe, is a (nice) opinionated way of doing such
configurations.

For Spring Boot, an application.properties file (in src/main/resources)
might contain something like this:

spring.datasource.url = jdbc:mysql://localhost:3306/mydatabase?useSSL=false

and the SPRING_DATABASE_URL environment variable would override the above
value if provided at runtime (via NetBeans, Docker, Kubernetes, etc.) but
this example only scratches the surface with the amount of flexibility you
actually have.  Environment variables can also be included in the
properties file.  The concept of profiles is also available.

The combination of NetBeans and Spring Boot is, for us, an excellent choice
for local (database) development but we also leverage the Kubernetes which
is part of Docker for Desktop (Windows and MacOS) to more closely emulate
our runtime environment.

HTH,
Carl

On Fri, Jan 3, 2020 at 8:16 PM Peter L. Berghold  wrote:

> I have a web app that I've been working on for a while now and I plan
> to deploy it into a Kubernetes cluster on top of Tomcat.  Back end is
> going to be a MariaDB deployment with no connection to the outside
> world.
>
> Given my persistance layer is Hibernate and while being developed
> points to the local MariaDB on my workstation.
>
> When I go to deploy to Kubernetes I'll be using a service name to
> connect to.  How have others handled this situation so that the
> Hibernet configuration ends up pointed to the correct host after
> deployment?
>
>
> --
>
>
> Peter L. Berghold 
> Professonally: (retired) IT Professional (DevOps, Puppet, Perl...)
> Advocations: Dog Training, Beer Brewing, BBQ, Cooking
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
Carl J. Mosca


Netbeans and Kubernetes; Hibernate Configurations

2020-01-03 Thread Peter L. Berghold
I have a web app that I've been working on for a while now and I plan
to deploy it into a Kubernetes cluster on top of Tomcat.  Back end is
going to be a MariaDB deployment with no connection to the outside
world. 

Given my persistance layer is Hibernate and while being developed
points to the local MariaDB on my workstation.  

When I go to deploy to Kubernetes I'll be using a service name to
connect to.  How have others handled this situation so that the
Hibernet configuration ends up pointed to the correct host after
deployment? 


-- 


Peter L. Berghold 
Professonally: (retired) IT Professional (DevOps, Puppet, Perl...)
Advocations: Dog Training, Beer Brewing, BBQ, Cooking 


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Netbeans and Kubernetes

2018-09-20 Thread Carl Mosca
We tend to do much more with OpenShift than k8s directly but I think you'll
find the Fabric8 Docker maven plugin very helpful if you're not already
using it.  https://dmp.fabric8.io/

This mavenized Docker build approach works nicely with NetBeans in my
opinion.  You'll find some cool stuff there for k8s as well.

Carl

On Thu, Sep 20, 2018 at 12:55 PM Greenberg, Gary  wrote:

> I am starting a new project where I will have to work with Kubernetes.
> I am quite a noob with container orchestration and would like to ask for
> an advise.
> I haven’t found anything related to Kubernetes on Netbeans web site but
> maybe I have missed it.
> Does anyone worked with Kubernetes in NB community?
> I am primarily interested in generating YAML and using kubernetes-client
> Java API.
>
> Any input is appreciated.
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development
>
> ggree...@visa.com
>
> Mobile: (650)269-7902
>
>
>
> [image:
> /Users/nkavumpu/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_749324139]
>
>
>


-- 
Carl J. Mosca


Netbeans and Kubernetes

2018-09-20 Thread Greenberg, Gary
I am starting a new project where I will have to work with Kubernetes.
I am quite a noob with container orchestration and would like to ask for an 
advise.
I haven't found anything related to Kubernetes on Netbeans web site but maybe I 
have missed it.
Does anyone worked with Kubernetes in NB community?
I am primarily interested in generating YAML and using kubernetes-client Java 
API.
Any input is appreciated.

Gary Greenberg
Staff Software Engineer
Data Product Development
ggree...@visa.com<mailto:ggree...@visa.com>
Mobile: (650)269-7902

[/Users/nkavumpu/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_749324139]