[Beginner's Corner] - MQ Howto?
by Thinus Pollard
Thinus Pollard [https://community.jboss.org/people/thinusp] created the discussion
"MQ Howto?"
To view the discussion, visit: https://community.jboss.org/message/777123#777123
--------------------------------------------------------------
Hi All
Pretty new to the whole JBoss thing.
I am looking for a Howto or something on getting MQ and Message Driven Beans to play nice. I've installed MQ (7.1.0-2) and latest nightly build of JBoss 7.2. (there is a bug in 7.1.1 where MDB's where not activated when a message is placed on a Queue).
I've deployed the resource adapter and it seems to deploy sucessfully. My MDB has an activation config via annotations. Upon deployment of the EAR project I get a RemoteFAP<init> NoSuchMethodException referring to the constructor for the RemoteFAP class. I have inspected the jar file (JMQI MQ jar file) and the constructor is definitly there.
So my initial questions are:
* Is there a step by step tutorial somewhere that shows how to get MQ working with JBoss for the above mentioned versions?
* Failing that, which MQ jars should be included in my EAR? (currently I have the com.ibm.mq, jmqi and jms jars included at this point in time).
Currently I have no idea where the issues may be hiding (is it MQ or the fact that I'm trying to use the nightly JBoss build). Any pointers would be appreciated.
Thinus
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777123#777123]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Web Services] - Is it possible to configure JAX-WS services with an external descriptor?
by Carlo Bonamico
Carlo Bonamico [https://community.jboss.org/people/carlo.bonamico] created the discussion
"Is it possible to configure JAX-WS services with an external descriptor?"
To view the discussion, visit: https://community.jboss.org/message/762155#762155
--------------------------------------------------------------
Hi,
I had to manage a situation similar to https://community.jboss.org/thread/146575 https://community.jboss.org/thread/146575 where a JBoss instance publishes a JaxWs service (annotated with @WebService) on plain http:// http:// on an internal network, and an external Apache httpd server with mod_proxy or mod_jk re-publishes the service over https:// https:// on the outside. The environment is JBoss-WS on JBoss AS 5.1.0.
In order to be able to rewrite the soap:address field in the WSDL I successfully followed @asoldano advice:
>Something else you might want to try is setting your soap:address to something like " https://replace-me/ https://REPLACE-ME", that should force the https protocol to be use in the soap:address when rewriting it. I think this probably has the side effect of overwriting the webServicePort you might want to >specify though.
Then enabled rewriting of the address in
jbossws.deployer/META-INF/jboss-beans.xml
<bean name="ServiceEndpointManager" class="org.jboss.ws.server.ServiceEndpointManager">
<!--
The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless AlwaysModifySOAPAddress is true.
If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
-->
<property name="webServiceHost">www.external.domain.com</property>
<property name="webServiceSecurePort">443</property>
<property name="alwaysModifySOAPAddress">true</property>
...
</bean>
In this way the resulting url exposed in the wsdl is https://www.external.domain.com/path/ https://www.external.domain.com/path/... which is what I needed to achieve.
However, apparently this only works for services which have an associated wsdl file provided by the developer (@WebService(wsdlLocation = "WEB-INF/...")) in the deployment. I would like to enable a similar behavior on services which have only the defining implementation class.
Is it possible to associate to an @WebService class an external deployment descriptor which only specifies soap:address and/or other specific jaxws parameters, without having to explcitely create (and obviously maintain over time) the wsdlby hand?
In general, I think that this scenario is not so uncommin, and it would be useful to have a parameter as suggested by @asoldano to simply enable rewriting of http:// into https://
>If nothing of this helps, please create a feature request jira. We might think about adding another configuration option (webServiceProtocol) and achieve what you want throught that.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762155#762155]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Web Services] - Resteasy encryption using jboss
by amit kumar
amit kumar [https://community.jboss.org/people/amit02.sharma12] created the discussion
"Resteasy encryption using jboss"
To view the discussion, visit: https://community.jboss.org/message/820394#820394
--------------------------------------------------------------
i have made one web service now i want to encrypt that json data using s/mime rest easy encryption at server side
@Path("/All")
@GET
@Produces("application/json")
@GZIP
public EnvelopedOutput getAllOpenMeetings(@QueryParam("batchsize")
int batchSize, @QueryParam("offset")
int offset, @Context
HttpServletRequest req) {
String ipAddress = req.getRemoteAddr();
EnvelopedOutput output=null;
CustomerBean bean=null;
try {
bean=new CustomerBean();
bean.setDesc("abc");
bean.setName("xyz");
X509V3Generator generator=new X509V3Generator();
X509Certificate certificate=generator.get();
output = new EnvelopedOutput(bean, MediaType.APPLICATION_XML_TYPE);
output.setCertificate(certificate);
} catch (Exception ex) {
String result = "Error 500 - Internal Server Error";
System.out.println("exception=="+ex.getMessage());
// throw new WebApplicationException(Response.status(500).entity(result).build());
}
return output;
}
but give eception:org.codehaus.jackson.map.JsonMappingException: Direct self-reference leading to cycle
but when i change @Produces("application/json")=@Produces("text/plain") then its not return the encrypted form its return simply object of EnvelopedOutput.
please help me
thank you
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820394#820394]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[Beginner's Corner] - Jboss 7
by nav
nav [https://community.jboss.org/people/nav] created the discussion
"Jboss 7"
To view the discussion, visit: https://community.jboss.org/message/820249#820249
--------------------------------------------------------------
Hi,
I'm using jboss 7.1.1 and the security domain definition is placed in the standalone.xml file.
<security-domain name="XXX">
<authentication>
<login-module code="LdapExtended" flag="required">
<module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
<module-option name="java.naming.provider.url" value="ldap://XXX"/>
<module-option name="java.naming.security.authentication" value="simple"/>
<module-option name="bindDN" value="cn=administrator"/>
<module-option name="bindCredential" value="secret"/>
<module-option name="baseCtxDN" value="ou=Users,DC=AS400SRV,DC=QUEBEC,DC=CANADA,DC=ACME,DC=COM"/>
<module-option name="baseFilter" value="(uid={0})"/>
<module-option name="rolesCtxDN" value="ou=Roles,DC=AS400SRV,DC=QUEBEC,DC=CANADA,DC=ACME,DC=COM"/>
<module-option name="roleFilter" value="(member={1})"/>
<module-option name="roleAttributeID" value="cn"/>
</login-module>
</authentication>
In order to facilitate different deployment environments (dev/test/prod) can this configuration be bundled in my EAR or WAR file as a deployment descriptor?
So, basically, when I build for 'Dev' I want my build to create/pick the correct dev configuration and bundle it in the war file, and in order to do that I need to define this configuration out of standalone.xml
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820249#820249]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - SyncTaskServiceWrapper timeout issue
by Adedayo Koko
Adedayo Koko [https://community.jboss.org/people/mydevbox] created the discussion
"SyncTaskServiceWrapper timeout issue"
To view the discussion, visit: https://community.jboss.org/message/820225#820225
--------------------------------------------------------------
I have been running into random timeout issues when using SyncTaskServiceWrapper for Human task related services. My current setup has humantask service war and gwt-console-server deployed in same server, using the same configured datasource in JBoss 7. I noticed when i complete a human task with the SyncTaskServiceWrapper, it appears when i access human task related services through the rest service, I get stale task data. I will sometime have to wait about 2sconds to get updated human task info. My questions are -
1. Any problem with current setup (i.e using rest service and humantask. No local service/direct jta setup)?
2. If there are problems with q1, what are the possible solutions?
I noticed SyncTaskServiceWrapper already provides for some wait/delay support. So ideally i do not think i should be suspending thread excution or implementing wait/delay stuffs in my code.
Some guidance will be greatly appreciated. Thanks
Koko
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820225#820225]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - comming from osworkflow
by fachhoch con
fachhoch con [https://community.jboss.org/people/fachhoch] created the discussion
"comming from osworkflow"
To view the discussion, visit: https://community.jboss.org/message/820210#820210
--------------------------------------------------------------
I used osworkflow and now we want to move to jBPM, tutorials of osworkflow describe defining process difiniotaiton and using java code to start the process and perform actions and its simple persisitance layer is self explanatory just by looking tables we can understand how it works.
in jBPM is it too copmplex to write the process definition in xml ? does jBMP users write process difinition in xml ?
I am reading the book BPM5 Developer guide , the process definition exaplined there using BPM was too complex and no talk of writing it but use the tool to create it.
Is there a tutorial explaining writing a simple flow and using java api to start and persists.
All I care is defining a simple flow in xml , use api to start and perform actions and datamnmodel on how this is persisted in database ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820210#820210]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months