kunu patil

Greenhorn
+ Follow
since Sep 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kunu patil

Hi Mikalai Zaikin

I am planning to do the certification in the end of December, 2010. Could you please share the study guide/quiz with me @ [redacted]

Thanks & regards
Kunal Patil
Thank you Peter.

That is what exactly I want to do. However, there are a number of port entries in bindings-jboss-beans.xm file. I am not getting that which port numbers should be changed out of these. Also, if I change all port numbers, should all of these ports be available (not bloked by system admin).

If we consider the basic need to host different web applications to different ports, will it suffice to just change the connector ports?

Thanks
Kunal
14 years ago
Hi

We are using JBoss 5.1 GA server. Our need is to have different web applications hosted on different port numbers of same server. This is because of security reasons and for maintenance of applications independantly of others.

We have done such a configuration in JBoss 4.1 server, which we were using earlier. Now, as we are upgrading to JBoss 5.1 GA, we need to perform server profile creation activity again on it.

I understand that we could use ServiceBindingManager, however, it adds an definite offset to standard port numbers, which we do not want. Instead we want to use port nos. which we were using in JBoss 4.1.

Can anybody please tell me what is the best way to do this?

Thanks & regards
Kunal
14 years ago
Hi,

You will have to put log4j.jar file in your application's WAR file. Make sure that the version of log4j.jar is same as that of log4.jar available on JBoss server's lib directory. This is required, as JBoss uses log4j itself to generate it's own logs.

In fact, every Web Application requires a log4j.jar file in it's WAR so that application specific logs can be generated in separate log files.

Hope it works.

Regards
Kunal
14 years ago
Thanks a lot Rene for the detailed reply.

Yes, I saw the message after starting/stopping the web apps from JMX Console. Also, verfied that application shuts down after stop command , in logs as well as in "jboss.web" for the same could be seen.

Your reply really helped.

Regards
Kunal

14 years ago
Thanks Rene,

I ran command to find all the listed applications on the server.

However, when I used following command:

, I got as response on the command prompt. This application (Test1.war) was listed in the output of previous command. Also, when I checked through admin-console, the application was still up. Could you please tell if there is any mistake in the command or what is the reason of getting ?

Thanks
Kunal
14 years ago
Started a new thread topic: "JBOSS 5.1 GA - How to start/stop application using command prompt"

Please help.

Thanks,
Kunal
14 years ago
Hi

I am using JB0ss 5.1 GA. Is it possible to start/stop an application, deployed in default server configuration, using command prompt?

For example, I have two applications app1 and app2 deployed in default server config. Is there any command to stop app1 using command prompt, without stopping app2?

I understand that same can be done using admin-console, but if in case it is not possible to access it, how can we start/stop appliactions?

Thanks.
Kunal
14 years ago
Hi

I am using JB0ss 5.1 GA. Is it possible to start/stop an application, deployed in default server configuration, using command prompt?

For example, I have two applications app1 and app2 deployed in default server config. Is there any command to stop app1 using command prompt, without stopping app2?

I understand that same can be done using admin-console, but if in case it is not possible to access it, how can we start/stop appliactions?

Thanks.
Kunal
14 years ago

Nelson Sam wrote:Appreciate everyone for helping

@kunu patil-Can you explain more about fileInstance.I could not find in javadocs.Thanks for adding the required codes

@Peter Taucher-Thanks for link.I tired using exists method.



Isn't above code correct.When I compile i get this error

filez.java:11: cannot find symbol
symbol : method exists()
location: class java.lang.String
boolean b=f.exists();
^



Hi,

fileInstance is an reference variable that holds reference to a File object. If you want to see JavaDoc for this you should search for "File" and not for "fileInstance".
14 years ago
Hi

You may do it as follows-



Hope this clarifies.

14 years ago

Esmaeil Ashrafi wrote:

David Newton wrote:Path.newDirectoryStream() returns an implementation.


How? from where? Shouldn't an abstract method have been specified/implemented somewhere!?



Hi

I think, as it seems, WindowsDirectoryStream is in sun.nio.fs; implementation of newDirectoryStream() method may be underlying OS specific. JVM knows about underlying OS and figures out that which implementation should be used for abstract method.

Could you try getClass() and Class.getSuperclass methods and run this program on Unix/Linux and see what it returns?

Please correct me if I am wrong.
Thanks.

14 years ago

Yar lag wrote:John thanks for the quick reply, but no that wouldn't work. What I'm trying to do is this:

Process 1 -> Set up a new env with user.name="John"
Process 1 -> Launch a new jvm with the above env
Process 2 -> Starts and read in the user.name and picks up "John"

I hope that makes sense, any ideas how to setup the env?



Yar,

Could you please tell me that how did you set new env. variable? Can you tell that how to do it in Windows?

Thanks.
14 years ago
Hi

What are the ways to set system properties?

Thanks
14 years ago
Hi Paul

Thanks for the reply.

Is there any way to use this environment variable without passing it as an argument to java command?
That is, If I set this environment variable as you suggested and then just run java program using-
, how will this program pick up value of the said environment variable?

I want to acheive this: Whenever any Java program runs on my machine it should use the timezone specified through the environment variable.

Thanks.