[JBossWS] - Pure message style SOAP exchange
by giusarno
Hi,
I would like to have a simple WS where I can send different XML documents (starting with a different root element) using the same SOAP channel.
I basically want to implement a simple and generic SOAP XML doc exchange interface.
I looked at the documentation and I thought Messaging style did for me.
But when I looked at the conf file I noticed that we still need to specify the root element for the incoming message and for the return message.
1 question: Why it is so ? if the either the sender and the responder implements method that do not care about the content ?
| <operation name="processElement" return-xml-name="Response">
| <parameter type="javax.xml.soap.SOAPElement" xml-name="Order"/>
| </operation>
| </service>
|
|
| public interface MessageTestService extends Remote
| {
| public Element processElement(Element msg) throws RemoteException;
| }
|
2 question: How can I solve my problem with JbossWS? is it possible ?
Can anyone please help on this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978124#3978124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978124
19 years, 9 months
[JBoss Seam] - jsf on jbossas 3.2.7
by pietro.maggi
Hi,
I don't know if this is the right forum to post (in that case please tell me a more suitable one...)
By the way:
I have a jsf web application using myfaces and I must make it run on JbossAS 3.2.7. I simply copied the war file under the server\default\deploy directory. It seems that when the jsf tries to access to the property 'myProp' of bean 'myBean' the following exception arises:
javax.faces.el.PropertyNotFoundException: Base is null: myBean
Actually the WEB-INF/lib directory contains the following jars (jsf and application specific):
bsh-2.0b4.jar
commons-beanutils.jar
commons-codec.jar
commons-collections.jar
commons-digester.jar
commons-el.jar
commons-fileupload.jar
commons-lang.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
myfaces-all.jar
portlet-api.jar
standard.jar
struts.jar
Under tomcat 5.0.x it works well.
Where I do wrong ?
Pietro
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978122#3978122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978122
19 years, 9 months
[JBoss Seam] - About Events (Observer/Observable pattern)
by rlhr
Hello,
I have a SFSB that I use to hold states in a pageflow. It resides in the conversation scope. Now I have a SLSB that I use to upload files.
What I try to achieve is that I want to decouple the uploading process from the the conversational flow (as file uploading should not be tigth to that particular flow).
So in the SFSB I implemented a methods like this:
@Observer("newUpload")
| public void onUploadEvent() {
| ...
| }
|
Then the upload method of the upload SLSB calls:
events.raiseEvent("newUpload");
after the upload is done.
The onUploadEvent() methods of the SFSB is called but it is not the instance of the SFSB in the conversation scope. It seems that another SFSB is instantiated and its method called.
It is not clear in the doc if the Events framework is only for Stateless bean or not. When an event is raised, does the event manager looks up in the differents scopes to find instances of already created components, or just instantiate a new one?
If I'm not supposed to use the events with a stateful bean, then what would be the best approach to implement the behaviour I descibed?
Thanks,
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978120#3978120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978120
19 years, 9 months
[JBoss Seam] - SWTException: Invalid thread access
by hispeedsurfer
Hello,
I have try to use Eclipse SWT with a Seam-Application.
But sometimes, not every time, I receive an exception caused by:
SWTException: Invalid thread access
Here the class use SWT:
| package org.jboss.util;
|
| import org.eclipse.swt.SWT;
| import org.eclipse.swt.ole.win32.OleAutomation;
| import org.eclipse.swt.ole.win32.OleClientSite;
| import org.eclipse.swt.ole.win32.OleFrame;
| import org.eclipse.swt.ole.win32.Variant;
| import org.eclipse.swt.widgets.Display;
| import org.eclipse.swt.widgets.Shell;
|
| public class OLEaccess {
|
| private static Display display = new Display();
| public OLEaccess(){
| }
| public static int OUTLOOK_MAIL_ITEM = 0;
|
|
|
| private Shell shell = new Shell(display);
|
| private OleFrame frm = new OleFrame(shell, SWT.NONE);
|
| private OleClientSite site = new OleClientSite(frm, SWT.NONE, "Outlook.Application");
|
| private OleAutomation auto = new OleAutomation(site);
|
| private int[] GetNamespaceDispId = auto
| .getIDsOfNames(new String[] { "GetNamespace" });
|
| private Variant Namespace = auto.invoke(GetNamespaceDispId[0],
| new Variant[] { new Variant("MAPI") });
|
| private OleAutomation NamespaceAutomation = Namespace.getAutomation();
|
| private OleAutomation mailItemAutomation;
|
|
| public String send(String to, String subject, String bodyTxt) {
| int[] LogonDispId = NamespaceAutomation
| .getIDsOfNames(new String[] { "Logon" });
|
| int[] LogoffDispId = NamespaceAutomation
| .getIDsOfNames(new String[] { "Logoff" });
|
| NamespaceAutomation.invoke(LogonDispId[0], new Variant[] {
| new Variant("YOUR MAIL ACCOUNT"), new Variant("YOUR PASSWORD"),
| new Variant(true), new Variant(true) });
|
| int[] CreateItemDispId = auto
| .getIDsOfNames(new String[] { "CreateItem" });
|
| Variant mailItem = auto.invoke(CreateItemDispId[0],
| new Variant[] { new Variant(OUTLOOK_MAIL_ITEM) });
|
| mailItemAutomation = mailItem.getAutomation();
|
| int[] ToPropertyDispId = mailItemAutomation
| .getIDsOfNames(new String[] { "To" });
|
| mailItemAutomation.setProperty(ToPropertyDispId[0], new Variant(
| "YOUR " +to));
|
| int[] SubjectPropertyDispId = mailItemAutomation
| .getIDsOfNames(new String[] { "Subject" });
|
| mailItemAutomation
| .setProperty(SubjectPropertyDispId[0], new Variant(
| subject +" "
| + System.currentTimeMillis()));
|
| int[] BodyPropertyDispId = mailItemAutomation
| .getIDsOfNames(new String[] { "Body" });
|
| mailItemAutomation.setProperty(BodyPropertyDispId[0], new Variant(
| bodyTxt));
|
| int[] SendDispId = mailItemAutomation
| .getIDsOfNames(new String[] { "Send" });
|
| mailItemAutomation.invoke(SendDispId[0]);
|
| NamespaceAutomation.invoke(LogoffDispId[0]);
|
|
| return "send";
| }
|
| public boolean dispose(){
| boolean rs = true;
| shell.dispose();
|
| auto.dispose();
|
| NamespaceAutomation.dispose();
|
| mailItemAutomation.dispose();
|
| site.deactivateInPlaceClient();
| site.dispose();
|
| frm.dispose();
| return rs;
| }
| }
|
and the EJB
| package org.jboss.business;
|
| import java.io.Serializable;
|
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.ejb.Stateless;
|
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.ScopeType;
| import org.jboss.util.OLEaccess;
|
| @Stateful
| @Name("outlookAccess")
| @Scope(ScopeType.SESSION)
| public class OutlookAccessAction implements OutlookAccess, Serializable {
|
| private OLEaccess ole = new OLEaccess();
|
| public String doAction()
| {
| ole.send("test(a)test.de", "Invoke SWT fom J2EE Webapp", "was langw wärt wird endlich gut");
| //ole.dispose();
| System.out.println("Action Called");
| return "success";
| }
|
| @Destroy @Remove
| public void destroy() {
| ole.dispose();
| }
| }
|
|
All swt dependencies are added to project.
Any idea?
Thanks
Andreas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978117#3978117
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978117
19 years, 9 months
[JBoss Portal] - portlet proxy setting
by cpage
hi,
i work behind a proxy.
i would like to make the weather portlet and rss portlet work.
i try to add param proxyhost and proxyport without success.
thanks
11:52:52,396 ERROR [NewsPortlet] Fatal Error reading/parsing XML Source.
| java.net.ConnectException: Connection timed out: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at sun.net.NetworkClient.doConnect(Unknown Source)
| at sun.net.www.http.HttpClient.openServer(Unknown Source)
| at sun.net.www.http.HttpClient.openServer(Unknown Source)
| at sun.net.www.http.HttpClient.<init>(Unknown Source)
| at sun.net.www.http.HttpClient.New(Unknown Source)
| at sun.net.www.http.HttpClient.New(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978115#3978115
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978115
19 years, 9 months