Sorry for missing this earlier!! Which version of the ESB are you using?
Also... can you show us you're ESB config please?
I got the solution for this. I was using AppServer(4.2) and ESB combination(4.3) and now i am using ESB server 4.3 and its working fine. Now i have an other issue. After all the transformations i need to send the req to a server and i need to get the res back. I am using org.jboss.soa.esb.actions.routing.http.HttpRouter class and code in my config file
with this it is touching app server but its not taking that req. For this do we need to write any properties file and use like
<http-client-property name="file" value="/localhost-https-18443.properties" />
and what this properties file should contain? or do we need to write any class? and one more thing based on one field in the request the url to send will change. How do we write for this requirement?
Please send the reply ASAP. Thank You..........
Can anybody help me in sloving the problem ASAP. If i dont mention properties file in my config file i am getting the app servers index page code as Response. And if i use that property file inside my config i am getting error by saying
ERROR [STDERR] javax.net.ssl.SSLHandshakeException: Remote host clo
sed connection during handshake
[STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.re
I strucked there and not finding any solution. Trying to run the sample https_2way_ssl, which came with download is also not working.
Highly thankful work quick responses.
I got the solution for this too.... :)
So what was the problem?
That was a small mistake.
i did not write any property file and i just used POST method and its working. I successfully finished applying ESB to my project. But still that https_2way_ssl sample is not working. Is the problem from my side or its thr every where? and my doubt is how can we mention the URL for this .esb files? Like if somebody wants to post data to my esb thn what could be the URL. I just tried running the esb from command prompt as i got the flow from guides. and for getting quick responses is thr any other forum?????
Plz i need urgent help regarding this.
I have successfully finished creating ESB. But i am not understanding how we can integrate ESB from a JSP or HTML? How can we invoke an ESB from JSP?????????
As we have predefined method for HTTP Tranformmer in Mule dont we have such methods in JBoss ESB? I dont want to expose it as a web service. That is not my requirement. I just need a URL so that my clients can post data to my ESB and get the response back....
Thanks in advance for ur responses.
Sorry, but I don't know where we are with this at the moment :)
Could you send me a log file showing the error you are currently getting?
oh....may b my explanation was poor...:)
I have not started integrating the ESB with the JSP. actually mine is a web application and accepts only one type of request format. But i have 4 clients and the formats of their request is diifrent from mine. So i am using ESB and changing their format to my application understandable format and sending the response back after receiving the response from my application server by changing in to their specific format.
This i have successfully finished with out any errors and my response is also exactly same as what i wanted. But for this i have followed the guide of JBOSS ESB and i created in a way which will run through command prompt.
Is there any direct class (like in Mule, "org.mule.components.simple.BridgeComponent") through which we can assign a url for this ESB or we have to write a JSP class compulsory? and how i can call ESB from my doPost()/doGet() method of my JSP/Servlet...??????????
i have gone through native_client sample which is exposed as a web service.. i dont want to expose my ESB as a web service.. I just want to make my ESB as a web so that i can call that through a URL...
Any help is highly appreciable..
Regarding calling ESB services, there is class ServiceInvoker which does that. Try to find it in source code or documentation to see how it is used, but in general it is as follows:
Message esbMessage = MessageFactory.getInstance().getMessage(); Call call = new Call(); call.setMessageID(new URI(UUID.randomUUID().toString())); esbMessage.getHeader().setCall(call); esbMessage.getBody().add(text); new ServiceInvoker(category, name).deliverAsync(esbMessage);