[JBossWS] - Issues with JBoss5 Beta 1 and WebService Annotations
by TTHUNT
Hi,
I'm trying to run a simple test in which I'd like to deploy an EJB in JBoss 5 Beta 1 (with Java 6). I've created an interface and implementation class (see below), put them in a JAR file and deploy the JAR. I can see on the console output that it is reading in the JAR file and creating an EJB, but there is nothing for the WebService. When I got to http://localhost:8080/jbossws/services there are no services listed. There are no errors reported either. I would expect something to come back. Is there a setting that needs to be changed for WebServices to auto deploy in JBoss 5? Is this a bug?
Thanks,
TTH
INTERFACE
package com.simple;
|
| import javax.jws.WebService;
| import javax.jws.WebMethod;
| import java.rmi.Remote;
|
| @WebService
| public interface Hello extends Remote {
| @WebMethod
| void speak();
|
| }
IMPLEMENTATION
package com.simple;
|
| import javax.jws.WebService;
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
|
| @WebService
| @Remote(Hello.class)
| @Stateless
| public class HelloBean implements Hello{
| public void speak(){
| System.out.println("Hello");
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037235#4037235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037235
19 years
[JBoss Seam] - How to double indirect a label (seam question)
by tony.herstell@gmail.com
I have an enumesation and I want to use the string value to inl8 it from the messages.properties...
from Advert:
| public enum AdvertType {Lineage, BannerAd};
| public static final String LINEAGE = AdvertType.Lineage.toString();
| public static final String BANNERAD = AdvertType.BannerAd.toString();
|
| ...
|
| @Transient
| public List<String> getAdvertTypes() {
| List<String> advertTypesToReturn = new ArrayList<String>();
| advertTypesToReturn.add(Advert.LINEAGE);
| advertTypesToReturn.add(Advert.BANNERAD);
| return advertTypesToReturn;
| }
|
How do I do this?
| <h:selectOneRadio id="advertType" value="#{advertisingCampaignController.campaign.advert.type}">
| <s:selectItems value="#{advertisingCampaignController.campaign.advert.advertTypes}" var="advertType" label="#{messages.label_ad_type_#{advertType}}"/>
| </h:selectOneRadio>
|
also tried:
| label="#{messages.label_ad_type_}#{advertType}"
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037230#4037230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037230
19 years