Joybrata Chakraborty

Greenhorn
+ Follow
since Nov 27, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joybrata Chakraborty

Hi Friends.

I am trying to execute unix commands using Java code. Basically Java code will take the commands from the database and will execute those in the target server using ssh or similar protocols.

If any one can help on this, will be highly appreciated. I have tried plink, but not sure how it will work.

Thanks
Joy
12 years ago
Thanks Ran for explaining the thing to me. Its very well written.
Joy
Hi

I like to understand when we will use bi directional relationship in JPA. I have table A & B. B is having the foreign key of A. In that case whether I need to use bi directional relationship between A & B entity.

Thanks
Joy
Hi

I need some help in SAML configuration in weblogic 10.3.


Joy
13 years ago

Lester Burnham wrote:Yes, there are other ways. Before we recommend something else which maybe you also "can't use", it would be useful for you to tell as why you can't use JAX-WS. Also, do you mean you can't use JAX-WS on the server, or that you can't use it on the client, or ... ?



Thanks Lester for your reply.

I know that JAXWS will be more convenient to use. But higher authorities decided not to use JAXWS. Now I am looking, is there any other possibilities with weblogic to create java artifacts from WSDL.(Like wsdl2java or wsdlc ). We can't use JAXWS in server side.

Thanks
Joy
13 years ago
Hi Friends

I need help. I need to create web service from WSDL with Weblogic. Now I can't use JAX-WS. Is there any other way to generate Java classes with out JAXWS example.
Please refer this URL.
http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/use_cases.html#wp220705

13 years ago
Hi Friends

I have adoubt on spring frame work. In my application I want to separate out the application context file. So how ref a bean which in the different application context.

Joy
13 years ago
Hi Friends

can you please suggest me some UML books?

Joy

Rob Prime wrote:Class a = Class.forName("Abc"); will use the system class loader. This class loader does not know anything about your MyClassLoader instance or the classes it has loaded. (Your MyClassLoader instance does know about the system class loader though, since that's its "parent".)
The system class loader will try to load class "Abc" using its own mechanism. It can't find it, so it throws an exception.

Your MyClassLoader instance is doing its work just fine, as both Class c and the object created by it are printed out without any problems.




So is there any way in java , where if that class is loaded by any(Custom) classloader then, system classloader will not try to load it again.
13 years ago

sumanta panda wrote:Dear All,

In the Arraylist how to store multiple object(like Integer and String) in a Arraylist and passing the same obj in a method to getting the data.

Please suggest.

Thanks and Regards,
Sumanta



If you don't use generics, you can add any objects in ArrayList.
13 years ago
Hi

I have written one class loader which will load a class, now if I want use that class , ClassNotFoundException is thorwn.


Here is the code:


MyClassLoader classLoader = new MyClassLoader();
try {
Class c = Class.forName("Abc", true, classLoader);
System.out.println(c.getName());

Object o = c.newInstance();
System.out.println(o);

Class a = Class.forName("Abc");
o=a.newInstance();
System.out.println(o);
}catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Output:
Abc
Abc [i=0, str=null]
java.lang.ClassNotFoundException: Abc
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at classloader.TestClassLoader.main(TestClassLoader.java:36)


Please help on this.
13 years ago

Samy Ganou wrote:I have an object of type ClassA , and I want to map it on a HashMap , Keys of the HashMap will be the attributes name of classA .
Thank you in advance.



Your question is not clear.
13 years ago
Hi

Please help me to understand the follwoing example.
http://java.sun.com/docs/books/tutorial/rmi/overview.html

How Pi class will be loaded in the server JVM?


Joy
13 years ago
CXF

Rauhl Roy wrote:May i know what is CXF ?

and how does they relate to web services?

and why should i use CXF?

is there any relationship between CXF and Spring webservice?



CXF is framework which gives the feature of JAXWS. With spring you can integrate your web service easily.Thats why Spring with CXF is preferred.
13 years ago
Hi Friends

I am new to Axis2 framework, whether with Axis2 we can generate wsdl dynamically as we do for CXF(JAXWS).

I got the following link, but not able to get whether it provides the similar features.
http://ws.apache.org/axis2/1_5_1/jaxws-guide.html
13 years ago