jakarta-ee

Maven dependencies provided by wildfly 17 server

本小妞迷上赌 提交于 2020-06-28 10:28:09
问题 I just started using wildfly server version 17 and I got stuck looking into the dependencies that I should mention as provided in my pom file. I haven't found any thing in the documentation that shows the provided dependencies with their proper versions. As an example here is what I want: <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> I want to know where i get all the dependencies that are provided by

how to create ear file, and include war and jar files inside that

荒凉一梦 提交于 2020-06-24 07:14:34
问题 I am trying to create an EAR file from the command prompt. I have used jar -cvf myServletWAR.ear . But my question is, how can I get this EAR file to have WAR files and JAR files inside it? Do I need to create the war file separately and include in the ear file? I can't use the ANT file for this, as there are few restrictions on this project. 回答1: One of my EAR files has structure as follows: app.ear - APP-INF - lib // libraries (.jar) here - META-INF - MANIFEST.MF - weblogic-application.xml

Call SAP methods from Java

荒凉一梦 提交于 2020-06-13 09:42:23
问题 I am trying to make a connection with the sap systems and I have all the connection properties which are required in order to do so. I am trying my best but I am facing some issues I have no idea how to resolve. All I need is a simple code example by which I will be able to integrate my java app with the sap systems. I have gone through some websites but could not find a solution for making the connection with the sap system. I am trying with the below code but i do not know that what to

Call SAP methods from Java

人盡茶涼 提交于 2020-06-13 09:41:16
问题 I am trying to make a connection with the sap systems and I have all the connection properties which are required in order to do so. I am trying my best but I am facing some issues I have no idea how to resolve. All I need is a simple code example by which I will be able to integrate my java app with the sap systems. I have gone through some websites but could not find a solution for making the connection with the sap system. I am trying with the below code but i do not know that what to

Call SAP methods from Java

一个人想着一个人 提交于 2020-06-13 09:40:36
问题 I am trying to make a connection with the sap systems and I have all the connection properties which are required in order to do so. I am trying my best but I am facing some issues I have no idea how to resolve. All I need is a simple code example by which I will be able to integrate my java app with the sap systems. I have gone through some websites but could not find a solution for making the connection with the sap system. I am trying with the below code but i do not know that what to

Stateless EJB with more injected EJBs instances

孤街醉人 提交于 2020-06-12 08:46:10
问题 I know Stateless EJBs are stored in a pool and instantiated as needed, my question is, what happens when there are more EJB dependencies, for example with something like this: @Remote @Stateless public class Master_EJB{ @EJB private EJB_A ejb_A; @EJB private EJB_B ejb_B; } With EJB_A and EJB_B also being stateless EJBs. In the worst case, if there are two petitions at exactly the same time, the server will retrieve two instances of Master_EJB from the pool (or create if needed). But if from

@MultipartForm How to get the original file name?

送分小仙女□ 提交于 2020-06-10 08:23:53
问题 I am using jboss's rest-easy multipart provider for importing a file. I read here http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html#multipartform_annotation regarding @MultipartForm because I can exactly map it with my POJO. Below is my POJO public class SoftwarePackageForm { @FormParam("softwarePackage") private File file; private String contentDisposition; public File getFile() { return file; } public void setFile(File file) { this.file = file; }

@MultipartForm How to get the original file name?

烂漫一生 提交于 2020-06-10 08:22:30
问题 I am using jboss's rest-easy multipart provider for importing a file. I read here http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html#multipartform_annotation regarding @MultipartForm because I can exactly map it with my POJO. Below is my POJO public class SoftwarePackageForm { @FormParam("softwarePackage") private File file; private String contentDisposition; public File getFile() { return file; } public void setFile(File file) { this.file = file; }

ScheduledExecutorService Java EE how to start it in web service (JBoss)? [duplicate]

。_饼干妹妹 提交于 2020-06-09 04:07:47
问题 This question already has answers here : How to run a background task in a servlet based web application? (5 answers) Closed 2 years ago . In Java SE I have a scheduled tasks waiting to be executed when I run main(). But in Java EE (JBoss webservice) the methods are run when there's a web request. Is there a way to start scheduling tasks once the application is deployed? I was looking to use ScheduledExecutorService. 回答1: Caveat: This Answer addresses the app servers such as Apache Tomcat and

request getParameter is always null when using enctype=“multipart/form-data”

我们两清 提交于 2020-06-05 06:35:00
问题 I am performing validation of inputted data such as email, password, name, etc. But I am already stuck on the first stage of validation which is to check if User entered nothing. I already added enctype="multipart/form-data" as mentioned here but now it is always recognizing email as null and I can't forward to the login page in case of success (when email is not null). Code signup.jsp <form method="POST" action="signup" enctype="multipart/form-data"> <input type="email" name="email"