Personally I think you should not do it this way. I will rather suggest that you create a Web service in Java for sending the message and invoke it from the C#. It's very clean. The webservice need not be a SOAP web service. You can create this web service very easily in java either via
By the way if you use WebSphere MQ then it comes with the necessary messaging libraries for .NET platform. Non Java Client support will be available in 2.x release JBOSS Messaging[^].
Prasad P. Khandekar
Knowledge exists, man only discovers it.
I need to make a java program which accepts input from user in form of item Code, quantity and rate and then display the total amount as well as discount .
the condition for getting discount is like
if the amount is greater than 5000 than discount is 10% of amount. i want to display amount and discount amount calculated ...my code works nice till it calculates amount but when moving to next step for calculating discount it shows error.
plzzz hep me out ...is there any error in my code??
am new to Core java
public static void main(String args)
Double discount= 0.0 ;
InputStreamReader istream = new InputStreamReader(System.in) ;
BufferedReader br= new BufferedReader(istream);
System.out.println("Welcome to My Java Program");
System.out.println("enter the item code:");
System.out.println("enter your quantity:");
System.out.println("enter the rate:");
int amnt= qty*Rate;
thanx a lot @ emadrefai ..now my code works perfect....
can you please explain me what exactly was happening before.... one thing i know if am not wrong is that the error message that i was getting was due to the Exception block code in Try and Catch