[jboss-user] [JNDI and Naming] - Re: Unable to find out Jndi port number?

2011-10-22 Thread sampath subramaniam
sampath subramaniam [http://community.jboss.org/people/sampathonline] created 
the discussion

"Re: Unable to find out Jndi port number?"

To view the discussion, visit: http://community.jboss.org/message/633154#633154

--
1099 didnt work. My machine has several jboss instances. My domain server 
starts like this: 
run -Djboss.service.binding.set=ports-01. 
And the configuration for port-01 in bindings-jboss-beans.xml is defined as 
follows:


   
  
 
 ports-01
 
 ${jboss.bind.address}
 
** *1716*
 
 
  
   

Since the offset is changed to 1716, I thought the jndi port is 1099+1716=2815, 
but when I do the context lookup for 2815, it fails
--

Reply to this message by going to Community
[http://community.jboss.org/message/633154#633154]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI and Naming] - Re: Unable to find out Jndi port number?

2011-10-22 Thread antonio gonzalez
antonio gonzalez [http://community.jboss.org/people/bluesockets] created the 
discussion

"Re: Unable to find out Jndi port number?"

To view the discussion, visit: http://community.jboss.org/message/633151#633151

--
Ususally out of the box it's port 1099. In server.log if you look for 1099 or 
whatever port the jnp server is supposed to bind to you should see the 
address/location. Can you post the entire stacktrace for the error it throws at 
you? Off the top of my head it could be a binding problem - if you bind jboss 
to a particular domain, it'll generally only listen for that address. If it 
binds to 127.0.0.1, I think it'll bind to all addresses.
--

Reply to this message by going to Community
[http://community.jboss.org/message/633151#633151]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services] - Re: Session-based web service with JBossWS?

2011-10-22 Thread Steve Cohen
Steve Cohen [http://community.jboss.org/people/stevecoh4] created the discussion

"Re: Session-based web service with JBossWS?"

To view the discussion, visit: http://community.jboss.org/message/633149#633149

--
It "SEAMS" that Seam, with its conversational web service concept takes me 
closer to where I want to go than relying upon bare JBossWS.  I will start 
directing my attention in that direction.
--

Reply to this message by going to Community
[http://community.jboss.org/message/633149#633149]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - consume message inside a QueueBrowser loop

2011-10-22 Thread everson .
everson . [http://community.jboss.org/people/everjava] created the discussion

"consume message inside a QueueBrowser loop"

To view the discussion, visit: http://community.jboss.org/message/633148#633148

--
I would like after do something consume/delete/take out the message from queue, 
but I can't 
I have  4 messages on queue and I want consume just one

QueueConnectionFactory factory = (QueueConnectionFactory) 
getInitialContext().lookup("/ConnectionFactory");//java:/ConnectionFactory
    Queue queue = (Queue) getInitialContext().lookup("queue/MyQueue");
    connection  = factory.createQueueConnection();
    session = connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE);
*QueueBrowser* queueBrowser = session.createBrowser(queue);

    Enumeration messages = queueBrowser.getEnumeration();
    while (messages.hasMoreElements()) {
    ObjectMessage objectMessage = (ObjectMessage) 
messages.nextElement();
    Person p = (Person) objectMessage.getObject();
    System.err.println(p.getId());    
    //do something
    //* after do something take out the message from queue
    }

* I tried code below, but i got error
QueueReceiver receiver = session.createReceiver(queue, 
"JMSMessageID="+objectMessage.getJMSMessageID());
MessageConsumer consumer = session.createConsumer(queue, 
"JMSMessageID="+objectMessage.getJMSMessageID());
--

Reply to this message by going to Community
[http://community.jboss.org/message/633148#633148]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools] - Re: JBoss tools does not put impl classes on classpath for AS7

2011-10-22 Thread henk de boer
henk de boer [http://community.jboss.org/people/henk53] created the discussion

"Re: JBoss tools does not put impl classes on classpath for AS7"

To view the discussion, visit: http://community.jboss.org/message/633141#633141

--
> Max Rydahl Andersen wrote:
> 
> I hear you  :) 
> 
> 
> More suggestions and reason/arguments for both sides are very much welcome. 

Thanks for your understanding response!

It's maybe interesting to notice that both the JRE classpath container in 
Eclipse and the Glassfish one do expose the implementation classes.

I would say a good compromise is to install the hiding classpath container by 
default, but give users the option to either install the full one separately, 
or (maybe even better) let the user switch between limited and full by means of 
a property on the container. 

Not sure if the last thing is easy to implement in Eclipse though. Classpath 
containers do have property pages when right clicking on them in e.g. the 
project explorer view, but they typically cause an other container to be used 
in .classpath (e.g. system default JRE vs a specific one).

At any length, that location would be the first place where I think users would 
look to change the behavior of a given container.

One step further, if JBoss tools knows about a limiting (API only) and full 
classpath container, it could potentially validate the code to see if classes 
are used in the project that are only in the full container and not in the 
limiting one or otherwise on the classpath. A warning could be flagged for that 
situation.
--

Reply to this message by going to Community
[http://community.jboss.org/message/633141#633141]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI and Naming] - Unable to find out Jndi port number?

2011-10-22 Thread sampath subramaniam
sampath subramaniam [http://community.jboss.org/people/sampathonline] created 
the discussion

"Unable to find out Jndi port number?"

To view the discussion, visit: http://community.jboss.org/message/633140#633140

--
I am using jboss 5.1.0. I have created a JMS queue on server. I have written a 
standalone java client program to list all the queues on the server.
In doing so, i need the jndi port number to do a intial context lookup. But I 
do not know the jndi port number. I am aware of the configuration 
settings(default, port-01, port-02) used in the file: 
server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml. But 
the lookup is failing when i specify the jndi port number configured in 
bindings-jboss-beans.xml. My question now is "Is there a way to find out jndi 
port number from jboss admin-console,jmx-console or server.log?
--

Reply to this message by going to Community
[http://community.jboss.org/message/633140#633140]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services] - Re: Session-based web service with JBossWS?

2011-10-22 Thread Steve Cohen
Steve Cohen [http://community.jboss.org/people/stevecoh4] created the discussion

"Re: Session-based web service with JBossWS?"

To view the discussion, visit: http://community.jboss.org/message/633138#633138

--
OK, I keep learning more stuff but it's not getting me where I want to be but I 
feel I'm getting close.

Here

 http://download.oracle.com/docs/cd/E19879-01/819-3669/bnbyw/index.html 
http://download.oracle.com/docs/cd/E19879-01/819-3669/bnbyw/index.html

I find that the javax.annotation.security annotations can be placed on methods 
as well as classes.  Great, that is what I was missing.  Everything compiles, 
deploys without a hitch.  Alas, it doesn't work:  


package org.javactivity.ws.ejb;
 
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.ejb.Stateless;
import javax.jws.HandlerChain;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
 
import org.jboss.ejb3.annotation.SecurityDomain;
import org.jboss.wsf.spi.annotation.WebContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
@Stateless
 
@WebContext(
    contextRoot="attrsws-ejb", 
    urlPattern="/*",
    authMethod = "BASIC",
    secureWSDLAccess = false)
@SecurityDomain(value = "JBossWS")
 
@WebService(targetNamespace = "http://org.javactivity/MyService/";, 
portName="MyServiceSOAP",
serviceName="MyService", 
endpointInterface="org.javactivity.ws.ejb.MyServicePort")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = 
SOAPBinding.ParameterStyle.BARE) 
@HandlerChain(file = "handlers.xml") 
 
public class MyServicePortImpl implements MyServicePort {
    private static final Logger log = 
LoggerFactory.getLogger(MyServicePortImpl.class);
    private static int nextSession = 0;
 
    @Override
    @PermitAll
    public int foo(UserTypeType usertype, String username, String key) {
    nextSession++;
    log.debug("foo returning a value of {}", nextSession);
    return nextSession;
    }
    @Override
    @RolesAllowed("friend")
    public int login(UserIdentity identity) {
    nextSession++;
    log.debug("Login returning a value of {}", nextSession);
    return nextSession;
    }
}
 

If I supply a bad password, neither method allows access.  If I supply a good 
password, both methods allow access.  The annotations are not being recognized. 

What ELSE must I do to get these method permissions recognized by JBoss?
--

Reply to this message by going to Community
[http://community.jboss.org/message/633138#633138]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: [jbpm5] how to use the property 'Content' of the Human Task

2011-10-22 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: [jbpm5] how to use the property 'Content' of the Human Task"

To view the discussion, visit: http://community.jboss.org/message/633135#633135

--
Hello,
As Mauricio said the content parameter is used to pass all info for a specific 
human task, to the human task server. To achieve this you have two main methods,
1. Set data to the Content parameter from the field, as you have done. This way 
you may only pass String data
2. Set data to the Content parameter from a parameter mapping, to pass any type 
of data. Check out the following link,
 
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables
 
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables

To access the data you may do it inside the ftl as shown in the link above, or 
via code/API check the following links,
  http://community.jboss.org/message/603362#603362 
http://community.jboss.org/message/603362
  
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
 
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
--

Reply to this message by going to Community
[http://community.jboss.org/message/633135#633135]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools] - Re: JBoss tools does not put impl classes on classpath for AS7

2011-10-22 Thread Max Rydahl Andersen
Max Rydahl Andersen [http://community.jboss.org/people/maxandersen] created the 
discussion

"Re: JBoss tools does not put impl classes on classpath for AS7"

To view the discussion, visit: http://community.jboss.org/message/633134#633134

--
I hear you  :) 

There is a war going on between the two world views of "full access/user 
responsible for not using the right API" vs "limited acces/platform responsible 
for not exposing the wrong API".

The problem is that the current notion in java world of runtimes and tooling 
doesn't provide a good mechanism to serve both sides well.

Personally i'm on your side of wishing transparency before limited access but 
also understand users are baffled/annoyed when we tell them they used internal 
API without realizing it. 

I hope we can find a way to easily make easy debugging and introspection 
possible.

More suggestions and reason/arguments for both sides are very much welcome.
--

Reply to this message by going to Community
[http://community.jboss.org/message/633134#633134]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user