<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>java Archives - Code Samples</title>
	<atom:link href="https://codesamples.net/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>https://codesamples.net/category/java/</link>
	<description>Simplified example code of the work that I&#039;ve done</description>
	<lastBuildDate>Thu, 19 Nov 2026 14:31:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://codesamples.net/wp-content/uploads/2025/08/cropped-taro_photogenic-32x32.jpg</url>
	<title>java Archives - Code Samples</title>
	<link>https://codesamples.net/category/java/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Spring Send Mail Example</title>
		<link>https://codesamples.net/2026/11/spring-send-mail-example/</link>
					<comments>https://codesamples.net/2026/11/spring-send-mail-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 07:51:27 +0000</pubDate>
				<category><![CDATA[google cloud platform]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[google-cloud-platform]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=1187</guid>

					<description><![CDATA[<p>Did you follow Spring Boot Send Email Example and ran Crowsnest? Got it to send the email monitoring notification? If so, bien hecho! But in the end we want it to work for real and not just for local testing purposes. Here, I&#8217;ll demonstrate how to send the notification email via Gmail&#8217;s SMTP server. This [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/11/spring-send-mail-example/">Spring Send Mail Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/11/spring-send-mail-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Virtual Host Example</title>
		<link>https://codesamples.net/2026/09/apache-virtual-host-example/</link>
					<comments>https://codesamples.net/2026/09/apache-virtual-host-example/#comments</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sat, 19 Sep 2026 11:35:29 +0000</pubDate>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[apache virtual host]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache-virtual-host]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=1020</guid>

					<description><![CDATA[<p>What is a virtual host? Why would I want one? It&#8217;s a way of saving costs. At minimum, you&#8217;ll only need one physical or virtual machine, one backend instance and Apache. So an Apache virtual host manages the routing of IP requests to your backend instance. Allowing you to host multiple distinct websites (domain name [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/09/apache-virtual-host-example/">Apache Virtual Host Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/09/apache-virtual-host-example/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>JSON Custom Deserialize/Serialize Example</title>
		<link>https://codesamples.net/2026/07/json-custom-deserialize-serialize-example/</link>
					<comments>https://codesamples.net/2026/07/json-custom-deserialize-serialize-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Fri, 31 Jul 2026 15:53:54 +0000</pubDate>
				<category><![CDATA[jackson]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[junit]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=989</guid>

					<description><![CDATA[<p>Do you need to support multiple environments? Tired of spinning up instances? Perhaps custom JSON serialization and deserialization can help. The Ask Here&#8217;s the situation. You got a web API and then one day your customer wants to roll out two more development environments. This will result in three instances hitting your web API. Production [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/07/json-custom-deserialize-serialize-example/">JSON Custom Deserialize/Serialize Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/07/json-custom-deserialize-serialize-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Spring Boot Send Email Example</title>
		<link>https://codesamples.net/2026/05/spring-boot-send-email-example/</link>
					<comments>https://codesamples.net/2026/05/spring-boot-send-email-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Tue, 19 May 2026 09:57:03 +0000</pubDate>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=861</guid>

					<description><![CDATA[<p>Now that you got your monitoring up and running, what&#8217;s next? Do you relax, put your feet up and read Jack Reacher Tripwire? I&#8217;m sure your boss will say &#8220;Can this notify us when something is wrong? Like send an email or something. There you go. This bit is about adding that send email functionality. [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/05/spring-boot-send-email-example/">Spring Boot Send Email Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/05/spring-boot-send-email-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Spring WebClient Failed to Resolve Example</title>
		<link>https://codesamples.net/2026/04/spring-webclient-failed-to-resolve-example/</link>
					<comments>https://codesamples.net/2026/04/spring-webclient-failed-to-resolve-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sun, 26 Apr 2026 14:27:27 +0000</pubDate>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[webclient]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=854</guid>

					<description><![CDATA[<p>Have you ever encountered Spring&#8217;s WebClient throwing a &#8220;failed to resolve &#8216;hostname&#8217; after x queries&#8221; error?. Well, if you ran my Crowsnest project prior to my latest merge, then chances are you may have. Especially, if you ran it inside your internal network. Here&#8217;s what the error looks like. Spring WebClient Failed to Resolve Cause [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/04/spring-webclient-failed-to-resolve-example/">Spring WebClient Failed to Resolve Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/04/spring-webclient-failed-to-resolve-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy to Kubernetes Example</title>
		<link>https://codesamples.net/2026/03/deploy-to-kubernetes-example/</link>
					<comments>https://codesamples.net/2026/03/deploy-to-kubernetes-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sat, 07 Mar 2026 13:49:40 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[kubernetes]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=762</guid>

					<description><![CDATA[<p>Alright, now that you got a docker image in the previous example, Dockerize Spring Boot App Example, what now? The most obvious next step is to spin up the docker image in a Kubernetes cluster. But GKE (Google Kubernetes Engine) is bloody expensive for us mere mortals. Luckily we can practice Kubernetes stuff with Docker [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/03/deploy-to-kubernetes-example/">Deploy to Kubernetes Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/03/deploy-to-kubernetes-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Dockerize Spring Boot App Example</title>
		<link>https://codesamples.net/2026/02/dockerize-spring-boot-app-example/</link>
					<comments>https://codesamples.net/2026/02/dockerize-spring-boot-app-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Fri, 20 Feb 2026 11:04:44 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=753</guid>

					<description><![CDATA[<p>One of the benefits of a dockerize app (dockerize is synonymous with containerization, just like googling is to web searching) is the ease of deployment to different environments. Once you got that docker image built, you can stick it in any environment you like. Shall we dockerize your Spring Boot app? Here&#8217;s a quick example. [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/02/dockerize-spring-boot-app-example/">Dockerize Spring Boot App Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/02/dockerize-spring-boot-app-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Spring SimpMessagingTemplate Example</title>
		<link>https://codesamples.net/2026/02/spring-simpmessagingtemplate-example/</link>
					<comments>https://codesamples.net/2026/02/spring-simpmessagingtemplate-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sat, 07 Feb 2026 09:23:23 +0000</pubDate>
				<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[websocket]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=745</guid>

					<description><![CDATA[<p>Want to send notifications to your WebSocket clients? What if you want to send messages to connected clients so they can update their UI? You definitely can send messages from the back-end (e.g. from any part of your application). Any application component can send messages to the message broker. The easiest way to do so [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/02/spring-simpmessagingtemplate-example/">Spring SimpMessagingTemplate Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/02/spring-simpmessagingtemplate-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Java WatchService Example</title>
		<link>https://codesamples.net/2026/01/java-watchservice-example/</link>
					<comments>https://codesamples.net/2026/01/java-watchservice-example/#comments</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Fri, 30 Jan 2026 14:29:47 +0000</pubDate>
				<category><![CDATA[java]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=709</guid>

					<description><![CDATA[<p>Have you ever wanted to update some configuration of your web application without needing to restart it? Here is one way of doing it. Java&#8217;s WatchService API allows you to monitor directory for any changes. Without further ado, here&#8217;s the example code. The above code is part of my Crowsnest repository in GitHub. Crowsnest is [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/01/java-watchservice-example/">Java WatchService Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/01/java-watchservice-example/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>GCP PubSub Receive Example</title>
		<link>https://codesamples.net/2026/01/gcp-pubsub-receive-example/</link>
					<comments>https://codesamples.net/2026/01/gcp-pubsub-receive-example/#respond</comments>
		
		<dc:creator><![CDATA[Joel Patrick Llosa]]></dc:creator>
		<pubDate>Sun, 18 Jan 2026 06:16:35 +0000</pubDate>
				<category><![CDATA[gcp pubsub]]></category>
		<category><![CDATA[google cloud platform]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[spring boot]]></category>
		<category><![CDATA[gcp-pubsub]]></category>
		<category><![CDATA[google-cloud-platform]]></category>
		<category><![CDATA[spring-boot]]></category>
		<guid isPermaLink="false">https://codesamples.net/?p=643</guid>

					<description><![CDATA[<p>This is part two of the GCP (Google Cloud Platform) PubSub example. Part one is GCP PubSub Send Example. In part one, we learned how to set up GCP admin stuff (e.g. billing), GCP PubSub (e.g. topic), Google Cloud SDK Shell, enable GCP pubsub, and a lot more. So if you want to know how [&#8230;]</p>
<p>The post <a href="https://codesamples.net/2026/01/gcp-pubsub-receive-example/">GCP PubSub Receive Example</a> appeared first on <a href="https://codesamples.net">Code Samples</a>.</p>
]]></description>
		
					<wfw:commentRss>https://codesamples.net/2026/01/gcp-pubsub-receive-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
