DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest Tools Topics

article thumbnail
How to Install Grafana Loki Stack Using AWS S3 Bucket
Most organizations that utilize DevOps principles and tools require a logging system to cover the shortcomings of Prometheus.
July 19, 2022
by Chase Bolt
· 6,893 Views · 1 Like
article thumbnail
Write Your Kubernetes Infrastructure as Go Code — Cdk8s-Plus in Action!
Reducing boilerplate code with cdk8s-plus library.
July 18, 2022
by Abhishek Gupta DZone Core CORE
· 34,228 Views · 2 Likes
article thumbnail
Explore Deep in 4.6 Billion GitHub Events
Understand any GitHub project or quickly compare any two projects by digging deep into 4.6 billion GitHub events in real-time. Here are some ways you can play with it.
July 18, 2022
by Max Liu
· 3,127 Views · 2 Likes
article thumbnail
Access Undenied on AWS
Access Undenied on AWS is a new open-source tool that parses AWS AccessDenied CloudTrail events, explains the reasons for them, and offers actionable fixes.
July 18, 2022
by Noam Dahan
· 2,967 Views · 2 Likes
article thumbnail
3 Ways to Create Spring Boot Docker Images Without Docker File
Learn how to create Spring Boot Docker Images without the docker file in 3 ways.
July 17, 2022
by Amrut Prabhu
· 5,591 Views · 3 Likes
article thumbnail
Machine Learning and Data Science With Kafka in Healthcare
Machine Learning and Data Science with Apache Kafka in the healthcare industry exploring deployments from the CDC (Covid), Cerner (sepsis), and Celmatix (EMRs).
July 16, 2022
by Kai Wähner DZone Core CORE
· 7,951 Views · 3 Likes
article thumbnail
Create a Full-Stack App Using Nuxt.js, NestJS, and DataStax Astra DB (With a Little Help From GitHub Copilot)
In this post, learn how to create a full-stack application, complete with dynamic data retrieved from a cloud database by an API.
July 15, 2022
by Pieter Humphrey
· 7,291 Views · 1 Like
article thumbnail
How Microcontainers Gain Against Large Containers
Containers are transforming how enterprises deploy and use applications. The main biggest draws of containers as such are increased efficiency and portability.
July 15, 2022
by Dmitry Chuyko
· 9,646 Views · 6 Likes
article thumbnail
API Security Weekly: Issue 168
Learn about API vulnerability in Safari 15 leaking user info, vulnerabilities in AWS, and a podcast with Rinki Sethi and Alissa Knight discussing API security.
July 15, 2022
by Colin Domoney
· 7,209 Views · 1 Like
article thumbnail
AWS Lambda Provisioned Concurrency AutoScaling Configuration With AWS CDK
This article presents a quick intro to provisioned concurrency scaling and strategies.
July 14, 2022
by Jeroen Reijn DZone Core CORE
· 4,383 Views · 2 Likes
article thumbnail
Introduction to Data Replication With MariaDB Using Docker Containers
Send in the clones: that’s what we do when we replicate databases. In this article, you’ll learn how to perform the most basic form of replication with MariaDB.
July 14, 2022
by Alejandro Duarte DZone Core CORE
· 48,827 Views · 4 Likes
article thumbnail
Write Your Kubernetes Infrastructure as Go Code - Getting Started With Cdk8s
Use Go to define your Kubernetes applications.
July 14, 2022
by Abhishek Gupta DZone Core CORE
· 35,894 Views · 2 Likes
article thumbnail
Kafka Topics Naming
In this post, learn how you can easily enforce a naming convention on Apache Kafka Topics.
July 14, 2022
by Saurabh Sharma
· 10,025 Views · 6 Likes
article thumbnail
Building a REST Service That Collects HTML Form Data Using Netbeans, Jersey, Apache Tomcat, and Java
The Jersey project is very well documented so it makes it easy to learn REST with Java. In this article I’m going to build two projects. The first project will be a very simple HTML page that presents a form to the user and then submits it to a REST project residing on the same server. The second project will be the REST part. For this article I used the following tools: 1. Netbeans 7 2. Apache Tomcat 7 3. Jersey 4. Java I built this on OS X Lion. Go ahead and create a new Maven Web Application with Netbeans 7 called: MyForm Once the project has been generated take the resulting (default) index.jsp file and delete it. In its place add a file called: index.html and add the following content to it: Name: Message: Item 1: Item 2: Basically, I created a simple (ugly) form that takes a few parameters the user enters. They submit the form and the data is sent to the REST project we will soon be building. The idea here is we are using an HTTP POST to create a new message. That’s it for the first project! With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. Create another new Maven Web Application with Netbeans 7 called: RESTwithForms Add two new Java classes to the new project: 1. MyApplication 2. MessageResource The code for MyApplication.java is as follows: package com.giantflyingsaucer; import com.sun.jersey.api.core.PackagesResourceConfig; import javax.ws.rs.ApplicationPath; @ApplicationPath("/") public class MyApplication extends PackagesResourceConfig { public MyApplication() { super("com.giantflyingsaucer"); } } In a brief nutshell this code allows us to make use of some Servlet 3.0 goodies (we don’t need to create a web.xml file for this project as an example). For more details see the sections titled: Example 2.8. Reusing Jersey implementation in your custom application model and Example 2.9. Deployment of a JAX-RS application using @ApplicationPath with Servlet 3.0 at this link. The real guts of the REST project are in the MessageResource.java file as seen below: package com.giantflyingsaucer; import java.net.URI; import java.util.List; import java.util.UUID; import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.Response; import javax.ws.rs.Consumes; import javax.ws.rs.core.MediaType; @Path("/messages") public class MessageResource { @POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createMessage(@FormParam("name") String name, @FormParam("message") String message, @FormParam("thelist") List list) { if(name.trim().length() > 0 && message.trim().length() > 0 && !list.isEmpty()) { // Note 1: Normally you would persist the new message to a datastore // of some sort. I'm going to pretend I've done that and // use a unique id for it that obviously points to nothing in // this case. // Note 2: The way I'm returning the data should be more like the commented // out piece, I am being verbose for the sake of showing you how to // get the values and show that it was read. return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).entity( name+ ": " + message + " --> the items: " + list.get(0) + " - " + list.get(1)).build(); // This is a more real world "return" //return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).build(); } return Response.status(Response.Status.PRECONDITION_FAILED).build(); } } Note: Pay special attention to the comments. Please don’t email me stating I shouldn’t be returning text back with the values, also please don’t tell me I should be iterating the list, etc. this is just a demo. You will obviously do this differently in a production environment. The key here is simplicity and minimal code. At this point you need to add jersey-server as a dependency in your POM file. com.sun.jersey jersey-server-linking 1.9.1 With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. You are now ready to test it out. Load up the HTML file from the first project and enter some data and then submit it. If you have a tool like FireBug for Firefox, you can also see that an HTTP 201 was returned (if successful). If you don’t enter any data in the form then you should get an HTTP 412 back. With not much more work you could just as easily use something like jQuery and submit the form via AJAX.
July 13, 2022
by Chad Lung
· 66,870 Views · 4 Likes
article thumbnail
Best Runtime for AWS Lambda Functions
This blog contains comparative analysis to get best runtime for AWS Lambda functions.
July 13, 2022
by Emin Bilgic
· 8,408 Views · 3 Likes
article thumbnail
Creating GitHub Actions for Vercel Deployment
GitHub and Vercel can help you streamline your workflow in new ways. In this article, we take a look at how GitHub Actions interact with Vercel.
July 13, 2022
by Ekekenta Odionyenfe
· 9,061 Views · 1 Like
article thumbnail
Securing Kubernetes Secrets With HashiCorp Vault
Secrets in Kubernetes are used to store sensitive information. This article will show how to secure Kubernetes secrets using Hashicorp Vault.
July 12, 2022
by Nikhil Purva
· 6,963 Views · 2 Likes
article thumbnail
The State of Kubernetes Stateful Workloads at DreamWorks
Learn how DreamWorks is running 370 databases on 1200+ Kubernetes pods.
July 11, 2022
by Sylvain Kalache
· 5,324 Views · 1 Like
article thumbnail
Kubernetes Cluster Backups With Velero
Kubernetes cluster disaster recovery with open-source backup and restoration tool
Updated July 11, 2022
by Tetiana Fydorenchyk
· 6,742 Views · 4 Likes
article thumbnail
How to Make a Symbolic Link on Linux
Let's look at how symbolic links work in Linux.
July 11, 2022
by Johnny Simpson
· 4,626 Views · 3 Likes
  • Previous
  • ...
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×