How to run EJB remote application client jar without any IDE? - glassfish

Using NetBeans, I made a very simple EJB application client (and a EJB server, of course) which runs on Glassfish and uses a jar with the EJB remote interface. The application works without problems.
But I decided to run the ".jar" (which is the application client itself) on a remote machine, with Java SE, Java EE, and Glassfish installed. I searched for a while and it seems to be very simple (using Glassfish command line). Can someone help me please?
Thanks.

Related

Remote development (from PhpStorm with JetBrains Gateway) without internet possible?

Here is my working context;
no internet (I use my company's intranet)
Linux CentOS 7.9 remote server with my source files
PhpStorm 2021.3.2 on my development PC
My wish is to develop on my PC on remote sources. Your new JetBrains Gateway solution seems to meet my expectations on paper.
However, in practice, I have the impression that it is not possible to use this solution without internet ? Indeed, the connection process stops on this failure:
Looks like your solution is trying to download an IDE client to install on my machine. Which from my point of view is a weird behavior because I already have a client to install on my machine: PhpStorm. Why not use my PhpStorm client already installed on my machine ?
Thank you for your reply
The "Jetbrains Client" mentioned in the error message is not for your local machine, but for the Linux server:
Once the IDE version and project directory are selected, Gateway will download the IDE to the remote server, unpack it, and launch it with your project loaded.
It acts on the remote server as a "backend IDE" to which the client on your local machine connects:
The JetBrains Client runs locally and provides the user interface for the IDE backend.
You would not even require the full PHPStorm IDE, the Jetbrains Gateway is a standalone app that comes with a "thin client" that can connect to the backend IDE:
This whole process is managed by JetBrains Gateway, a new, compact, standalone app that provides everything you need to get started with remote development. Since it’s standalone, it’s the only thing you need to install locally to start working and is ideal for less powerful laptops and in cases where a full IDE install isn’t desired.
See https://blog.jetbrains.com/blog/2021/12/03/dive-into-jetbrains-gateway/ for a more detailed look at how it works.
To answer your question: it is not possible to use Jetbrains Gateway without an internet connection.

Invoke Java Adapter in Desktop Browser Environment MobileFirst

I want to execute a java code in MobileFirst Client App Desktop Environment.
In this link I can invoke Java classes from the adapter but I don't want that method since I need to update the war file in our server if I do this.
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.0/server-side-development/using-java-adapters/
I want a way without updating the war file in the server.
I also tried using WLResourceRequest to invoke a Java Adapter but its not applicable in desktop environment.
Is there a way to execute a java code aside from the ones I mentioned above?
In v7.x, the only way to execute Java code is when the class resides in the .war file that gets deployed to the server.
The Desktop environment in v7.1 does not support Java adapters. The only way is to use Java in JavaScript adapters (See: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/server-side-development/javascript-adapters/using-java-adapters/) but this, too, requires the Java code to reside in the war file.
In v8.0, however, there is no more war file deployment and Java adapters support the web platform (which means both mobile web and desktop browser). Consider upgrading.

SIP servlet container

Does GlassFish 4.0 server act as a SIP servlet container? I googled but could not find a answer. It may be obvious but I could not figure it out. I am new to Java EE.
I have got a legacy prototype implementation to work with. It uses Java SIP servlet. It's a Netbeans project. It does not have any setup documentation. So I don't know which server I should use.
I installed Netbeans IDE 8.0 with Java EE 7 and GlassFish server 4.0. I thought I would start learning to use SIP servlet by following Oracle's SIP Servlet Tutorial. In that tutorial, "Communication Server" is recommended in "Required Software" section. When I googled to download this, I found Oracle Communications Converged Application Server which was not free.
I'm not sure if you can use GlassFish for SIP servlets, I'm not aware of any implementation working with it. But you can use Mobicents, built on top of Tomcat or JBoss.

JBoss AS7 remote debugging and deploying

I install JBoss AS on VPS. I forward ports and I can access to server form my local machine. It is any possibility to add this server to Eclipse IDE?
I expect the same effect debugging and deploying to remote instance of jboss.
Best regards
Do you try eclipse jboss tools plugin?
http://marketplace.eclipse.org/node/121986#.ULYXteMSXk4
OK.
Look at this tutorial from point 5.
http://www.glxn.net/seam-maven-refimpl/doc/tutorial/02-eclipse.html

Installing OSGi jars on Lotus Domino 8.5.3

I'm working on a Servlet which I am deploying as an OSGi Plugin on a Lotus Domino Server (8.5.3).
The servlet uses HttpClient to make REST style requests of a backend server.
Currently Domino 8.5.3 ships with org.apache.commons.httpclient (3.0.0.20110912-1350). I would really like to use org.apache.httpcomponents.httpclient-4.2.1.
Any idea how I can deploy the jars (there are dependencies, core, logging, codec) on the Server so that they are available to my osgi plugin?
I've had quite a bit of help getting this far but this one is defeating me, and I have code that works if only I had access to the httpcomponents.httpclient api :-)
Many many thanks in advance :-)
Don't know if Lotus Domino is a OSGi capable server, but usually you just need to add a version to your import-package part for the httpclient api packages.
For example your Mantifest should contain something like
Import-Package: org.apache.httpclient;version=[4.2,5)
Now if Lotus Domino is a OSGi capable server it should be straight forward to deploy your httpclient jar in version 4.2.1 (I think this one already does contain a manifest declaring the right packages)
In case this is not the case you might want to create your own OSGi-ready httpclient package, the BND tools and the apache maven-bundle-plugin will help you on that.