Obtain Server Specifications Based On Application
Jun 19, 2014
a new java executable file which does heavy processing (batch). Development hasn't really started yet and the design phase is just beginning. Now the client is asking us to give them the minimum server specs to be able to run our application..I'm thinking this can't be done without performance testing, which will be after development. Is there a better and faster way to be able to assess this?
View Replies
ADVERTISEMENT
Sep 16, 2014
Any example of client/server socket based application using Spring and Maven where application do the following
Client sends a request with a path to any file on the server
„h Server reads the file and responds back with the content
„h Client outputs the content to the console
I am trying to follow this [URL] ....
I am using java 6
View Replies
View Related
Apr 15, 2011
At our company we run a third-party Java-based GUI application on one of our Linux server machine, displaying the application to our local Windows work stations using the Cygwin X Server.We noticed a few problems with a new version of this application and was able to narrow it down to the following conditions:
1. Java Swing application running on a UNIX host;
2. Java used is 1.6 (problem not noticed when using Java 1.5)
3. Displaying to Cygwin X server (I've heard other windows-based X servers have the same issue, but I don't have access to any others at this time).
If we run the application natively on Windows, I'm told if the application runs on the Linux host and displays natively to that machine's display there are no problems (although I'm not able to verify this myself).The problems are:
1. Any new frame/dialog is opened in the geographic center of the dual displays, rather than in the middle of one or the other;
2. Any attempt to drag the window to a different location on the display seems to work, but as soon as you let go of the drag, the window snaps back to the original location. This only happens the first time you try to move each window.
3. Drop-down controls (JComboBox, for example) just close back up as soon as you click on them. If you click and drag the mouse to attempt to make a selection, no selection can be made.
Are these known problems using 1.6 on UNIX displaying to Windows-based X Servers?
The only real problem is number 3. I expect that if I put more work into the window placement, I should be able to get past number 1. Number 2 is just a minor annoyance.The following is a simple Java Swing application which when run in the correct environment will exhibit the problems.
import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
[code]....
View Replies
View Related
Mar 11, 2014
I am new to work on JNLP program. I have created a SWING program, JNLP file when i deploy the ear file i am getting 404 error. Please find the steps in details.
1.Created a dynamic web project JWStartProject in eclipse
2.Create a HelloWorld.java class under default package.
import javax.swing.*;
public class HelloWorld extends JFrame {
private static final long serialVersionUID = 4968624166243565348L;
private JLabel label = new JLabel("Hello Java Web START!");
public HelloWorld() {
super("Jave Web Start Example");
this.setSize(350, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
this.setLayout(null);
[Code] ....
Now I exported this project as JWStartProject.war contains following code.
Created Server in Websphere Admin console
Deployed this war file under the server and started.
I have added MIME types also.
I am unable to launch the application. I am getting 404 errors. May I know where I went wrong?
View Replies
View Related
Jul 18, 2014
I am using a GUI to display search results based on user's input server name. I am using MS Access as DB and I have the DSN set up correctly.But the search results are displayed for the first typed value in text filed. I am getting same result set every time though i input different server names .
import java.sql.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.DefaultTableModel;
public class SearchResult implements ActionListener{
[Code]...
View Replies
View Related
Feb 13, 2014
I am new to JSP !! and I'm developing a web-based chatting system using JSP and socket.
The problem I am facing is that the sender can send message but on the receiver side we have to manually refresh the page. The sender stays into blocking mode until the receiver refresh its page !
After that I've implemented auto-refresh on the receiver side and "Connection Refused" exception is generated.
View Replies
View Related
Apr 16, 2014
I'm currently trying to build a DAO based application where you use a text file as a data source. It have worked out well until I tried to delete lines from the file.
public void delete(DTOBil dtobil) {
try{
reader = Files.newBufferedReader(Paths.get("databilar.txt"),charset);
writer = Files.newBufferedWriter(Paths.get("temp.txt"), charset, StandardOpenOption.CREATE_NEW);
String line = null;
while((line = reader.readLine()) != null){
[Code] ....
I've managed to fill out the temp file with everything except the line I wanted to remove, but when I try to replace the original file with the temp file it won't work. It casts the error: "temp.txt -> databilar.txt".
I've also tried to use the renameTo method without any success...
View Replies
View Related
Nov 23, 2014
The explanation is a bit lengthy because I just tried to explain everything in one shot.
Link to the question
java - Show a System Tray notification or Desktop notification from the web application
View Replies
View Related
May 22, 2014
i want to use EJB 3 in my WAS8 application but it doesn't work.First of all i created an remote-interface:
import javax.ejb.Remote;
@Remote
public interface EjbTestRemote {
public void doSth();
}
Then i created a session bean class:
import javax.ejb.Stateless;
@Stateless
public class EjbTest implements EjbTestRemote {
[code]....
But now i want to call the session bean from a normal (no servlet, no ejb) java class but i doesn't work (NamingNotFoundException):
try {
Context ctx = new InitialContext();
EjbTestRemote ejbTestLocal = (EjbTestRemote) ctx.lookup("java:comp/env/EjbTest");
ejbTestLocal.doSth();
} catch (NamingException e) {
e.printStackTrace();
}
View Replies
View Related
Jun 20, 2014
I have an application developed in Jsf, hibernate eh-cache. i deployed it on jboss server and users are directly accessing jboss url on port 8080 in internal network. Now problem is, number of users for this application has been increased. This application have one page containing 20 records which gets fetched from cache on jsf page. I have used a4j:poller tag which refreshes this page via ajax call and updates it. Earlier this was working fine but nowadays number of users have been increased. Issue is i get nullpointer exception after some time once i logged in to application and user gets redirected to login page. If user re-logins he gets directed to same page number before logout. There is no reason of throwing null pointer exception and this application works fine in qualification environment. We checked everything,
1) session is still there on server. thing is user gets disconnected from it.
2) Network bandwidth seems to be okay.
3) we have used hibernate eh cache and serialized java classes.
how to troubleshoot and find root cause for this. Some people say that it is due to ajax calls from multiple users and ajax response it getting lost in between.
View Replies
View Related
Oct 31, 2014
Is there any option to access OBIEE server home page through java, without sending username and password through URL.
View Replies
View Related
Mar 14, 2014
I would like to know how we can deploy one Web application on multiple server to share the work between them? My first thought is that we just deploy the same war file on different servers that connect to the same database. However, what will happen when a user enter something like [URL]? How can multiple servers share the same domain name and how the requests from different users are redirected to these different server?
View Replies
View Related
Apr 25, 2014
I have developed a window based chat application for chatting, screen sharing, file sharing, video playing.
All are working well on my local network systems (eg. dynamic server ip is 192.168.1.122). But if i try to run on my server (e.g. static server ip 50.62.8.22) it is not get connected..,
View Replies
View Related
Nov 13, 2014
I am new to JMS and Websphere server and I am trying to access a JMS queue configured on Websphere Application Server 8 from my Java code. But I am getting the exception mentioned below:
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.ws.naming.util.CommonHelpers
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:230)
at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:343)
at javax.naming.InitialContext.internalInit(InitialContext.java:281)
[code]...
View Replies
View Related
Aug 25, 2014
I am trying to deploy an android application that connects to a java server. I am doing an apointments system, so the client asks for an apointments with a specific office/doctor. What i did, was to create a java server, using object for the offices, and via sockets it communicates with the android client.
The problem is that when i tried to use my (very demo still) app on my phone and sent it to some friends for testing, i coulnt find a way to have my server on the internet.
So I changed to (or trying to) servlet. But, how to do a client server application with servlets. All tutorials i have seen are more on website clients, but thats not what i need.
View Replies
View Related
Aug 3, 2012
How is session maintained in the application server, internally what happens when the user has logged in ? We create a session and store the user details which will be stored in the session object in the server with a unique sessionID which will be validated when the same user login the system again? But how exactly the session is maintained in the Server internally?
View Replies
View Related
Feb 27, 2014
I want to develop an application for client server play the Video On Demand (VOD).i am new for working on video player. Which library will suitable for this and what methods have to fallow.
View Replies
View Related
Jul 5, 2014
Deploy sample J2EE app to WebLogic server
A getting started app is fine, need to understand of deploying a sample application to WebLogic server. Any particular configuration during WLS install?
View Replies
View Related
Feb 21, 2014
I need to authenticate my client java application using ADFS enabled Sharepoint server.
View Replies
View Related
Mar 19, 2014
i have created a table in jsp, i want to obtain the contents of a td at the servlet.For example, here's one td of table:
<td align="center" title="tdun" id="cat"> <%= categoryname %> </td>
I want to get this value in my servlet .
View Replies
View Related
Oct 10, 2014
I'm doing this project where I need to make a persian carpet using recursive methods. I already have my recursive what I'm trying to implement is the use of color. My method BorderColor draws a square using a random color choose from an array.
public void Cuadrado(Graphics g){
Random color = new Random();
g.setColor(colors[color.nextInt(colors.length)]);
g.drawLine(left, top, right, top);
g.drawLine(left, top, left, bottom);
[Code] ....
What I'm trying to do is getting the color from 4 different corners in order to create a new one and make a recursive call. I already tried using the method getPixelColor from the Robot() object but I quit it because is a recursive method and it may cause trouble with the recursive stack. I created this method to create the new color and then call it in the PersianRug method, but I dont have a clue on how to obtain and implement the new colors.
public int newColor(int c,int c1,int c2,int c3, int a){
int c4=((c+c1+c2+c3)%13)*a;
return c4;
}
View Replies
View Related
Jan 11, 2014
I've found following code for Singleton Implementation from this forum, I am having a difficulty of understanding following,
1. When Singleton instance will be created, ( From which call ) ?
2. What feature of Static Inner class allow object to be singleton ?
3. How Inner Class implementation is thread safe ?
4. What will happen if variable "instance" mark as non-static, Will it still grantee singleton implementation ?
Java Code:
public class Singleton {
// Note private constructor
private Singleton() {}
private static class SingletonInner {
private final static Singleton instance = new Singleton();
}
public static Singleton getInstance() {
return SingletonInner.instance;
}
} mh_sh_highlight_all('java');
View Replies
View Related
Oct 2, 2014
package dicedemo;
public class DiceDemo {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
final int Die1_SIDES = 6; // Number of side of dice 1
final int Die2_SIDES = 6; // Number of side of dice 2
// Create two instances of the Die class.
[Code] ....
I need converting the number output to text: example one, two, three, etc.
View Replies
View Related
Oct 4, 2014
I use jboss eap 6.2 under eclipse.I perform a tutorial on EJB and I want to show the difference between a stateless session bean and a statefull session bean. I want demonstrate that the first one keep its state (if it has one) but that 2 successive don't send back necessarily the same SLSB : it send back the SLSB that is ready in the pool. But I don't suceed in obtaining 2 different SLSB by 2 successive call. The system always send me back the same SLSB.
View Replies
View Related
Apr 16, 2015
My biggest issues are as follows:
1) I'm trying to use a logarithm to determine the length of a user input number. I keep getting an error stating <> indetifier expected. I'm assuming this means that the program is not recognizing the function of a logarithm. I know that normally you can include that information in the method, but my teacher has stated specifically that each of these methods be called something else, as shown in the code.
2) I'm not quite sure I understand how to assign the numbers I obtain from the modular equation to a certain position in the array. As I'm asking the user to input any number these values can change so therefore I can't simply state that first number = this place.Here is my code:
import javax.swing.*;
import javax.*;
public class getSize
{
public static void main( String[] args )
[code]...
View Replies
View Related
Jul 27, 2014
I am developing a web application using JSF-2.0 on weblogic 10.3.6. I am using Facelets as VDL. I have 5 different machine. They are different according to their OS and their geographical location. On my first xhtml page server (machine) is decided. Then on next page file upload and rest of processing takes place. My restriction is that SSO configuration can be done on only one machine.
So I am restricted to using xhtml files from only my primary server where SSO configuration is done. But I have to connect to servlets or managed-bean of different machine as requests are machine specific and file needs to be uploaded to those machines for processing. So I cannot use redirectUrl as I need to be only on one machine. Is it possible that xhtml on one server can talk to managed-bean on other server(different machine)?.
View Replies
View Related