[jboss-user] [JBoss Cache Users] - Re: MVCC leading to deadlocks in synchronous replication mod

2009-12-09 Thread spennec
We'll try this out, thanks!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269732#4269732

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269732
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - standalone consumer for clustered queue did not get all mess

2009-12-09 Thread arminhaaf
we are currently migrating from JBoss AS 4.2.2  with MQ to a clustered JBoss AS 
5.1 with messaging

We have some standalone JMS consumers to connect external systems. 

The problem is that a standalone JMS consumer connects to only one node and so 
gets the messages from this node only.

The queue is Clustered:

mbean code=org.jboss.jms.server.destination.QueueService
  | name=jboss.messaging.destination:service=Queue,name=TestClusteredQueue
  |xmbean-dd=xmdesc/Queue-xmbean.xml
  | dependsjboss.messaging:service=PostOffice/depends
  | depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  | attribute name=Clusteredtrue/attribute
  | /mbean
  | 

A sample external consumer

  | public static void main(String[] args) throws Exception {
  | System.setProperty(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
  | System.setProperty(java.naming.factory.url.pkgs, 
org.jboss.naming);
  | System.setProperty(java.naming.provider.url, 
node1:1100,node2:1100);
  | 
  | 
  | final InitialContext tInitialContext = new InitialContext();
  | final ConnectionFactory tConnFactory = (ConnectionFactory) 
tInitialContext.lookup(ClusteredConnectionFactory);
  | final Queue tLisaToMfcQueue = (Queue) 
tInitialContext.lookup(/queue/TestClusteredQueue);
  | 
  | javax.jms.Connection jmsConnection = 
tConnFactory.createConnection();
  | 
  | Session tSession = jmsConnection.createSession(false, 
Session.CLIENT_ACKNOWLEDGE);
  | 
  | System.out.println(from browser);
  | Enumeration tMessages = 
tSession.createBrowser(tLisaToMfcQueue).getEnumeration();
  | while (tMessages.hasMoreElements()) {
  | Message tMessage = (Message) tMessages.nextElement();
  | System.out.println(tMessage);
  | }
  | 
  | System.out.println(from consumer);
  | 
  | final MessageConsumer tConsumer = 
tSession.createConsumer(tLisaToMfcQueue);
  | 
  | tConsumer.setMessageListener(new MessageListener() {
  | public void onMessage(final Message pMessage) {
  | System.out.println(pMessage);
  | try {
  | pMessage.acknowledge();
  | } catch (JMSException e) {
  | e.printStackTrace();  
  | }
  | }
  | });
  | 
  | jmsConnection.setExceptionListener(new ExceptionListener() {
  | 
  | public void onException(final JMSException e) {
  | System.out.println(got exception);
  | }
  | });
  | 
  | jmsConnection.start();
  | 
  | }
  | 


So how can i get a standalone consumer getting all messages from the queue



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269737#4269737

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269737
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Entity variable

2009-12-09 Thread juanignaciosl
Neat. As I read at the documentation it's likely that I should be able to save 
as an Hibernate entity, but Serializable is good enough for the time being.

Nevertheless, when I make it Serializable it gets stored but it can't be 
loaded, taskService.getVariables throws the following exception:


  | org.jbpm.api.JbpmException: couldn't deserialize object
  | (...)
  | org.jbpm.api.JbpmException: couldn't deserialize object
  |  Caused by: java.lang.ClassNotFoundException
  | 

I'm trying to deploy the .class file inside a .bar or .jar together with the 
jpdl and deploying it with createDeployment()  
.addResourcesFromZipInputStream(zip), but the class won't get deployed.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269744#4269744

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269744
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: @WebFault and @XmlType issues for Exception classes

2009-12-09 Thread craiggreenhalgh
Hi did you come up with a solution for this?

I have the same requirement

Thanks

Craig


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269745#4269745

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Using enviroment variables in persistence.xml

2009-12-09 Thread jwirsig
I couldn't manage to get it working though i followed the advices posted here.

Can anybody tell me in which versions of JBoss it is supposed to work?

I have a Jboss 4.2.0 in use.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269746#4269746

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269746
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security] - Use EJB inside a LoginModule, repeated calls to login()

2009-12-09 Thread Thomas.Woelfl
We try to access a EJB stateless service inside a custom LoginModule. The 
problem is that the login() method is called again and again when the  the EJB 
stateless service is accessed.


  | public class DatabaseServerLoginModuleTm3 extends DatabaseServerLoginModule
  | {
  | @Override
  | public boolean login() throws LoginException
  | {
  | try {
  | boolean successLogin = super.login();
  | return successLogin;
  | }
  | catch ( LoginException e ) {
  | increaseFailedLogins();
  | throw e;
  | }
  | }
  | 
  | private void increaseFailedLogins()
  | {
  | if ( this.getClaimedUsername() == null ) {
  | return;
  | }
  | InitialContext ctx = new InitialContext();
  | return (PersonServiceLocal) ctx.lookup( PersonServiceBean/local );
  | 
  | PersonServiceLocal personService = lookupContactService();
  | Person person = personService.getPersonByUsername( 
this.getClaimedUsername() );
  | 
  | personService.increaseFailedLoginsForPerson( person );
  | }
  | }
  | 

In jboss.xml we defined the security domain TM3-security for all beans:


  | jboss
  | security-domainjava:/jaas/TM3-security/security-domain
  | unauthenticated-principalguest/unauthenticated-principal
  | /jboss
  | 


In login-config.xml the used login-modules are defined:


  | application-policy name = TM3-security
  |authentication
  |login-module code = 
org.jboss.security.auth.spi.RunAsLoginModule flag = required
  | module-option 
name=roleNameLoginModuleUser/module-option
  |/login-module
  |
  |login-module code = 
com.tm3.erp.core.business.DatabaseServerLoginModuleTm3 flag = required
  | module-option name = 
unauthenticatedIdentityguest/module-option
  | module-option name = 
dsJndiNamejava:/PostgresDS/module-option
  | module-option name = 
ignorePasswordCasefalse/module-option
  | module-option name = 
principalsQueryxy/module-option   
  | module-option name = 
rolesQueryxy/module-option
  | /login-module
  | 
  | login-module 
code=org.jboss.security.ClientLoginModule flag=required
  |   module-option 
name=multi-threadedtrue/module-option
  |   module-option 
name=restore-login-identitytrue/module-option
  | /login-module 
  |/authentication
  | /application-policy
  | 

We tried to moved the called EJB (PersonService) to a different Security Domain 
using the annotions:
a) @org.jboss.ejb3.annotation.SecurityDomain(java:/jaas/other)
b) @org.jboss.security.annotation.SecurityDomain (java:/jaas/other)

No success. Any ideas? Thank you.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269747#4269747

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269747
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - how to connect jboss MDB to jboss messaging - different ver

2009-12-09 Thread pierods
Hi,

we have been trying to connect an MDB running inside JBoss to a remote queue in 
JBoss Messaging.

But since the naming context factory class of the remote JBoss messaging server 
has the same name and package name as the local JBoss naming context factory, 
BUT A DIFFERENT VERSION, JBoss will load the wrong version, and when the  
connection factory is loaded, it explodes.

How do we tell JBoss to load a specific version (jar) of the naming factory to 
give to the MDB?

thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269748#4269748

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269748
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB] - NullPointerException with an ejbRemove

2009-12-09 Thread lukemanner
Hi,
I have some problem with a remove of a stateless ejb.
The error code is:

2009-12-09 10:24:10,993 ERROR [STDERR] java.lang.NullPointerException
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:101)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:91)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.invocation.InvokerInterceptor.createInvocationCopy(InvokerInterceptor.java:327)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:287)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61)
  | 2009-12-09 10:24:10,994 ERROR [STDERR]  at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
  | 2009-12-09 10:24:10,995 ERROR [STDERR]  at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
  | 2009-12-09 10:24:10,995 ERROR [STDERR]  at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
  | 2009-12-09 10:24:10,995 ERROR [STDERR]  at 
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
  | 2009-12-09 10:24:10,995 ERROR [STDERR]  at $Proxy725.remove(Unknown Source)
  | 

Is there someone who can help me?
Thanks in advance,
Luke

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269750#4269750

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269750
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal Users] - ClassCastException while Integrating Spring SWF portlet with

2009-12-09 Thread nikhild
Hi ,

I am using Jboss Portal 2.7 and Spring WebFlow 2.0

While integrating Spring sample portal with Jboss portal it gives error below,

java.lang.ClassCastException: 
org.jboss.portal.portlet.impl.jsr168.api.PortletContextImpl cannot be cast to 
javax.servlet.ServletContext
at 
com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
at 
org.jboss.portletbridge.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:195)
at 
org.springframework.faces.webflow.FlowFacesContext.newInstance(FlowFacesContext.java:69)
at 
org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:70)
at 
org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:179)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Flow.start(Flow.java:535)
at 
org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:364)
at 
org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:222)
at 
org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at 
org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:235)
at 
org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:228)
a

Does any one have a solution for this?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269751#4269751

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269751
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: transaction closed ... guess timeout problem

2009-12-09 Thread premrajwarke
increase the timeout period

Regards,
Premraj

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269752#4269752

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269752
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Using enviroment variables in persistence.xml

2009-12-09 Thread jaikiran
Please post the exact details including what you did and what doesn't work.

While posting logs or xml content or code, please remember to wrap it in a code 
block by using the Code button in the message editor window. Please use the 
Preview button to ensure that your post is correctly formatted.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269756#4269756

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269756
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB] - String in DTO strangely truncated upon EJB call return

2009-12-09 Thread bamball
I am having a puzzling problem where the returned DTO object has its String 
field truncated as an empty String.

This problem only occurs when the returning String is sufficiently large 
(30kb). I've used the eclipse debugger to trace through the code. The DTO is 
intact until it reaches the other end. The String has become an empty String 
when it reaches the client side. 

The client of the EJB lives in a WAR in the deploy directory. The WAR itself 
contains the xforms implementation - Orbeon 3.71. The EJB3 call is made within 
the same instance of JBOSS (4.03SP).

I am not sure if this is caused by the client classes (the DTO interface) being 
garbage collected before the call finished. 

Any clues ? Any help / suggestion is much appreciated =)





View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269757#4269757

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269757
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss OSGi Users] - JBossOSGi 1.0.0.Beta5 Released (09-Dec-2009)

2009-12-09 Thread thomas.dies...@jboss.com
I am happy to announce the release of JBossOSGi-1.0.0.Beta5.

http://jbossosgi.blogspot.com/2009/12/jbossosgi-100beta5-released.html

The release comes with improvements in the following areas

* Improved JBoss Microcontainer based Framework support.
* Improved Eclipse Equinox Integration support.
* Added Enterprise OSGi Transaction support.
* Added Compendium Event Admin support.
* Added JBossXB based XML Binding support.
* Added Lifecycle Interceptor support.

For details please have a look at the latest version of our User Guide.

Here are the change log details

Bug

* [JBOSGI-129] - Filter behaviour change in r4v42
* [JBOSGI-137] - Cannot parse Bundle-SymbolicName
* [JBOSGI-153] - Cannot parse Import-Package parameters
* [JBOSGI-187] - Husky SocketInvocation may block forever
* [JBOSGI-199] - Use thread safe collections where information is mutable
* [JBOSGI-212] - Cannot refresh Microcontainer service

Feature Request


* [JBOSGI-125] - Add ManagedFramework service
* [JBOSGI-202] - Allow override of where the bootstrap file comes from

Task

* [JBOSGI-157] - JTA (RFC-98) - Initial Implementation
* [JBOSGI-181] - Add EventAdmin as available service
* [JBOSGI-182] - Release JBoss OSGi 1.0.0.Beta5
* [JBOSGI-183] - Introduce notion of OSGi Interceptors
* [JBOSGI-188] - Separate DeployerService from SPI
* [JBOSGI-190] - Allign getting started guide with latest release
* [JBOSGI-200] - Split getParameter(s) calls into directives/attributes
* [JBOSGI-215] - Update Blueprint to 1.0.0.Alpha3
* [JBOSGI-216] - Update to Apache Felix-2.0.2
* [JBOSGI-217] - Update to Eclipse Equinox-3.5.1
* [JBOSGI-218] - Update to jboss-osgi-common-1.0.3
* [JBOSGI-219] - Update to jboss-osgi-husky-1.0.2
* [JBOSGI-220] - Update to jboss-osgi-jmx-1.0.2
* [JBOSGI-221] - Update to jboss-osgi-jndi-1.0.2
* [JBOSGI-222] - Update to jboss-osgi-microcontainer-2.0.9
* [JBOSGI-223] - Update to jboss-osgi-spi-1.0.3
* [JBOSGI-224] - Update to jboss-osgi-xml-binding-2.0.2.Beta3
* [JBOSGI-225] - Update to jboss-osgi-apache-xerces-2.9.1.SP3
* [JBOSGI-226] - Update to jboss-osgi-hotdeploy-1.0.3
* [JBOSGI-227] - Update to jboss-osgi-framework-1.0.0.Alpha2
* [JBOSGI-228] - Update to jboss-osgi-jaxb-2.1.10.SP3
* [JBOSGI-229] - Add jboss-osgi-deployment-1.0.0
* [JBOSGI-230] - Add jboss-osgi-jta-1.0.0
* [JBOSGI-231] - Add jboss-osgi-reflect-2.0.2
* [JBOSGI-232] - Add jboss-osgi-webapp-0.7.2
* [JBOSGI-233] - Update to org.apache.felix.configadmin-1.2.4
* [JBOSGI-234] - Add org.apache.felix.eventadmin-1.0.0

Enjoy

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269763#4269763

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269763
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - JBoss Messaging Newbie Needs Help

2009-12-09 Thread ericy
Hi,
I am relatively new to JBoss Messaging and I am currently evaluating it in the 
context of a project.

The project itself consists of the development of a distributed Java 
application based on a client/server architecture. The clients are disparate UI 
technologies (Swing, Web and Command Line for now)  running on Windows and 
Linux machines. The Server runs on Red Hat. 

The application is not built using J2EE. We have a proprietary application 
distribution mechanism that consists of managing multiple JVM processes running 
on one or more machines (each process is a distributed component).

We use JBoss Messaging for inter-process communication. Being relatively new to 
this technology I would like your expert opinions on the following questions:

1. Is our decision to use JBoss Messaging for Client/Server communication a 
sensible one, especially in the context of GUI Clients? What Challenges should 
we anticipate?

2. We are using a standalone JBoss Messaging Server. Can this be configured for 
Single Sign-On?

3. The JBoss Messaging documentation suggests that it can be configured to use 
JAAS authentication and authorisation. The JAAS example that ships with the 
JBoss Messaging Server shows a CallbackHandler that does nothing. How do you 
know that the client's credentials are valid? How do you know what the client 
is authorised to do and how is this handled when using JAAS? I am assuming that 
jboss-users.xml and jboss-configuration.xml files are not required when using 
JASS.

4. When using JASS + LDAP server what exactly gets stored in the LDAP server? 
Are the files jboss-users.xml and jboss-configuration.xml still required? I am 
assuming no, in which case user accounts and credentials must be stored in the 
LDAP server. If so in what format and how is this accessed by the JBoss 
Messaging Server?

I've had look on the internet for JBoss tutorials around this subject but 
couldn't find much.

Any help would be greatly appreciated.
Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269766#4269766

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269766
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: unidirectional and bidirectional relationship

2009-12-09 Thread Wolfgang Knauf
Hi,

assume that you have a relation Person has many addresses with two entities 
Person and Address.

If you declare a bidirectional relationship, your code can navigate from Person 
to Address, and from Adress to Person.

With a unidirectional relationship, your code can navigate only from one side 
to the other. E.g. you can get the addresses of a person, but you cannot get 
the person of an address.

The database representation of the relationship is not affected by your 
unidirectional/bidirectional decision. This defines only, how the code side 
looks like.

Hope this helps

Wolfgang

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269767#4269767

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269767
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: deploy() takes an awefully LONG time

2009-12-09 Thread kukeltje
Uhh I assume you have WAY more logging if so please post here. If not, 
it is very, very hard for us to help.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269773#4269773

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269773
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: Galileo JBoss Tools

2009-12-09 Thread snjeza
I believe you faced https://jira.jboss.org/jira/browse/JBIDE-5402 Create new 
Portlet wizard - portlet source not generated

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269779#4269779

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269779
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Setting up classloaders to override JSF version in JBoss

2009-12-09 Thread hirowla
Do any of these still apply for JBoss 5 and 6? Some of them are dated back to 
2004 when I know the classloading was different. That's what makes it really 
hard to tell what to do.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269782#4269782

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269782
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB] - Re: Transaction and EJB3 Singleton

2009-12-09 Thread sandello
Thx. The problem was solved after installing ejb3 plugin v.1.0.19

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269787#4269787

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269787
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: How a pass signal from state a task or java?? I do not u

2009-12-09 Thread cmjhingeniero
Thanks for answering

I want that when response comes in N get out of the event and pass the task, 
hello. The variable response is filled with 


  | response = reposicion.verificarCarguePorReposicion(documento, caf); 
//RETURN N or S
  | 

I this error when I go out the signal executionService.signalExecutionById 
(execution.getId ());

When I remove executionService.signalExecutionById (execution.getId ()); I stay 
in an endless cycle that never goes to the next task


  | public void notify(EventListenerExecution executionListener) throws 
Exception {
  | String response = 
executionListener.getVariable(response)+;
  | if (response.equals(null)) {
  | response = new String();
  | executionListener.setVariable(response, response);
  | }
  | ReposicionDao reposicion = new ReposicionDao();
  | response = reposicion.verificarCarguePorReposicion(documento, 
caf); //RETURN N or S
  | if (processEngine == null) {
  | processEngine = Configuration.getProcessEngine();
  | executionService = processEngine.getExecutionService();
  | }
  | ProcessInstance processInstance = 
executionService.findProcessInstanceById(executionListener.getId
  | ());
  | Execution execution = 
processInstance.findActiveExecutionIn(verify);
  | System.out.println(===+execution.getId());
  | //WHEN response IS EQUAL TO N I MOVE TO ANOTHER TASK AND GET OUT OF THE 
TIMER
  | if(executionListener.getVariable(response).toString().equals(N)){
  | processInstance = 
executionService.signalExecutionById(execution.getId());
  | }
  | }
  | 

I hope having explained

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269789#4269789

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: JBoss Messaging Newbie Needs Help

2009-12-09 Thread timfox
Have you considered using HornetQ - HornetQ supersedes JBoss Messaging.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269790#4269790

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269790
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: JBoss Messaging Newbie Needs Help

2009-12-09 Thread ericy
Tim, thx for the suggestion.
No I haven't considered using HornetQ and I will look into it. But I think the 
questions raised in my post ealier will still stand though and I am very keen 
to the answers to them.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269793#4269793

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269793
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: Failed to load org.jboss.wsf.spi.invocation.WebServiceCo

2009-12-09 Thread pa12399
Yes, I did use ant deploy-jboss423 to update the webservices on JBoss 4.2.3. It 
is still giving this exception.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269795#4269795

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269795
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Docs recommend ProcessEngine in JNDI But fails with Thre

2009-12-09 Thread jedizippy
Ok figured out how this is done in JBoss and implemented the same strategy in 
WLS and it appears to work. In the meantime saw some nice bugs in JBPMService 
class not closing initial context and ignoring supplied jndi name..

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269799#4269799

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: standalone consumer for clustered queue did not get all

2009-12-09 Thread arminhaaf
it seems it is a misconfiguration of the servers, on another installation it 
works as expected

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269802#4269802

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269802
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Conterpart of UIL2XAConnectionFactory?

2009-12-09 Thread Marco.Pehla
Here is the configuration file from JBoss MQ. 

uil2-service.xml:
server
  | 
  |   !-- JBossMQ using the Unified Invocation Layer
  |All communication uses one socket connection --
  | 
  |   mbean code=org.jboss.mq.il.uil2.UILServerILService
  |  name=jboss.mq:service=InvocationLayer,type=UIL2
  | 
  | !-- The server chain --
  | depends 
optional-attribute-name=Invokerjboss.mq:service=Invoker/depends
  | !-- JNDI binding --
  | attribute name=ConnectionFactoryJNDIRefConnectionFactory/attribute
  | !-- JNDI binding for XA --
  | attribute 
name=XAConnectionFactoryJNDIRefXAConnectionFactory/attribute
  | !-- The bind address --
  | attribute name=BindAddress${jboss.bind.address}/attribute
  | !-- The bind port --
  | attribute name=ServerBindPort8093/attribute
  | !-- The ping period in millis --
  | attribute name=PingPeriod6/attribute
  | !-- Whether tcp/ip does not wait for buffer fills --
  | attribute name=EnableTcpNoDelaytrue/attribute
  | !-- Used to disconnect the client on the serverside if there is no 
activity --
  | !-- Ensure this is greater than the ping period --
  | attribute name=ReadTimeout12/attribute
  | !-- Used to disconnect the client on the clientside if there is no 
activity --
  | !-- Ensure this is greater than the ping period --
  | attribute name=ClientReadTimeout12/attribute
  | !-- The size of the buffer (in bytes) wrapping the socket --
  | !-- The buffer is flushed after each request --
  | attribute name=BufferSize2048/attribute
  | !-- Large messages may block the ping/pong --
  | !-- A pong is simulated after each chunk (in bytes) for both reading 
and writing --
  | !-- It must be larger than the buffer size --
  | attribute name=ChunkSize100/attribute
  |   /mbean
  | 
  |   !-- Aliases UIL - UIL2 for backwards compatibility 
  |the deprecated UIL deployment can be found in docs/examples/jca --
  |mbean code=org.jboss.naming.NamingAlias 
name=jboss.mq:service=InvocationLayer,type=UIL
  |   attribute name=FromNameUILConnectionFactory/attribute
  |   attribute name=ToNameConnectionFactory/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  |mbean code=org.jboss.naming.NamingAlias 
name=jboss.mq:service=InvocationLayer,type=UILXA
  |   attribute name=FromNameUILXAConnectionFactory/attribute
  |   attribute name=ToNameXAConnectionFactory/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  |mbean code=org.jboss.naming.NamingAlias
  |   
name=jboss.mq:service=InvocationLayer,type=UIL2,alias=UIL2ConnectionFactory
  |   attribute name=FromNameUIL2ConnectionFactory/attribute
  |   attribute name=ToNameConnectionFactory/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  |mbean code=org.jboss.naming.NamingAlias
  |   
name=jboss.mq:service=InvocationLayer,type=UIL2XA,alias=UIL2XAConnectionFactory
  |   attribute name=FromNameUIL2XAConnectionFactory/attribute
  |   attribute name=ToNameXAConnectionFactory/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  | 
  |!--
  |   Two JNDI bindings that act like jms client connections remotely
  |   but have j2ee defined semantics inside JBoss
  |--
  |mbean code=org.jboss.naming.LinkRefPairService
  |   name=jboss.jms:alias=QueueConnectionFactory
  |   attribute name=JndiNameQueueConnectionFactory/attribute
  |   attribute name=RemoteJndiNameConnectionFactory/attribute
  |   attribute name=LocalJndiNamejava:/JmsXA/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  |mbean code=org.jboss.naming.LinkRefPairService
  |   name=jboss.jms:alias=TopicConnectionFactory
  |   attribute name=JndiNameTopicConnectionFactory/attribute
  |   attribute name=RemoteJndiNameConnectionFactory/attribute
  |   attribute name=LocalJndiNamejava:/JmsXA/attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  | /server

As you can see, we find the implementation of the MBean in the class 
org.jboss.mq.il.uil2.UILServerILService. An alias UIL2XAConnectionFactory is 
defined and refers to XAConnectionFactory.

Is it possible to do something similar with JBoss Messaging?

Thank you in advance.

regards 
Marco

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269811#4269811

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Re: RAR classloading inversion

2009-12-09 Thread kukeltje
Env:
- JBoss AS 5.1.0.GA
- JDK 1.6.0_12 
- Windows XP

I'm trying to create a rar for the filesystem jca example that I pointed to in 
my other post  The rar gets deployed, but when I try to create a corresponding 
-service.xml file, I get classloading errors. 

The error I get is :

Caused by: java.lang.ClassNotFoundException: 
org.jboss.resource.connectionmanager.XATxConnectionManager

The logging (on level trace for the classloader) when deploying the 
fs-service.xml file, the fs-service.xml file itself are given below. 

It does not make a difference if I deploy this either in 'deploy' or in e.g. 
'deploy/fs'.

My fs-service.xml file


  | server
  | mbean code=org.jboss.resource.connectionmanager.XATxConnectionManager
  | name=jboss.jca:service=XATxCM,name=filesystem
  | dependsjboss.jca:service=RARDeployer/depends
  | depends optional-attribute-name=ManagedConnectionFactoryName
  | mbean 
code=org.jboss.resource.connectionmanager.RARDeployment
  | name=jboss.jca:service=XATxFS,name=filesystem
  | depends 
optional-attribute-name=OldRarDeployment
  | 
jboss.jca:service=RARDeployment,name=jca-filesystem-1.0.0-SNAPSHOT.rar
  | /depends
  | attribute 
name=ManagedConnectionFactoryProperties
  | properties
  | config-property
  | 
config-property-namepath/config-property-name
  | 
config-property-typejava.lang.String/config-property-type
  | 
config-property-value/tmp/as/fs_store/config-property-value
  | /config-property
  | /properties
  | /attribute
  | attribute 
name=ManagedConnectionFactoryClassorg.ewe.jca.fs.impl.FsManagedConnectionFactory/attribute
  | !--attribute 
name=JndiNameTransFS/attribute--
  | /mbean
  | /depends
  | depends optional-attribute-name=ManagedConnectionPool
  | mbean
  | 
code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool
  | 
name=jboss.jca:service=ManagedConnectionPool,name=filesystem
  | attribute 
name=ManagedConnectionFactoryNamejboss.jca:service=XATxFS,name=filesystem/attribute
  | attribute name=MinSize0/attribute
  | attribute name=MaxSize50/attribute
  | attribute 
name=BlockingTimeoutMillis5000/attribute
  | attribute 
name=IdleTimeoutMinutes15/attribute
  | attribute 
name=CriteriaByContainer/attribute
  | /mbean
  | /depends
  | depends 
optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedConnectionManager/depends
  | depends 
optional-attribute-name=JaasSecurityManagerServicejboss.security:service=JaasSecurityManager/depends
  | /server
  | 

Logging on trace level (stacktraces shortend for readbility, do not show any 
(believe me) usable information)


  | 2009-12-09 14:29:54,422 DEBUG 
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) 
Creating jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG 
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) 
Created jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG 
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) 
Starting jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG 
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) 
Started jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] 
(HDScanner) classloaderdom...@9b1670{defaultdomain} 
org.jboss.resource.connectionmanager.XATxConnectionManager matches parent 
beforeFilter=EVERYTHING
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] 
(HDScanner) classloaderdom...@9b1670{defaultdomain} load class from parent 
org.jboss.resource.connectionmanager.XATxConnectionManager 
parent=org.jboss.bootstrap.noannotationurlclassloa...@e5855a
  | 2009-12-09 14:29:54,422 TRACE 
[org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) 
classloaderdom...@9b1670{defaultdomain} findLoader 
org/jboss/resource/connectionmanager/XATxConnectionManager.class 

[jboss-user] [JNDI and Naming] - EJB (SLSB) invocation ignores read timeout, blocks indefinit

2009-12-09 Thread sumitsu
I have an application which is exposed as an EJB 3 stateless session bean, and 
which is running on a clustered environment of JBoss 4.2.3 instances under Java 
6.  In some cases, the service exposed by the SLSB never returns after 
invocation, and in that event, it is imperative that the client time out (and 
fail out with an Exception) after a relatively short interval.

Clients of the SLSB invoke it via JNDI, and the behavior observed is that even 
though the properties used to build the JNDI context specify both jnp.timeout 
and jnp.sotimeout (as prescribed by the NamingContextFactory documentation: 
http://www.jboss.org/community/wiki/NamingContextFactory), invocations of the 
SLSB block, and never time out.

I have verified this behavior by deploying a test version of the application 
which deliberately enters an infinite loop upon invocation, and therefore the 
clients should encounter the read timeout every time.

Server-Side Code:


  | public void postData() {
  | log.info(\n +
  |  
!!\n +
  |  
!!\n +
  |  
!!\n +
  |   TIMEOUT TEST -- STALLING NOW +
  |  
!!\n +
  |  
!!\n +
  |  
!!\n);
  | Object nullRef = null;
  | while (nullRef == null) {
  | try {
  | Thread.sleep(360);
  | } catch (InterruptedException iEx) {
  | // Do nothing.
  | }
  | }
  | log.error(\n +
  |   
??\n +
  |   
??\n +
  |   
??\n +
  |TIMEOUT TEST -- OUT OF STALL ?? +
  |   THIS SHOULD NEVER HAPPEN... TEST MUST 
NOT BE WORKING... +
  |   
??\n +
  |   
??\n +
  |   
??\n);
  | }
  | 

Client-Side Code:


  | Properties jndiProps;
  | jndiProps = new Properties();
  | jndiProps.setProperty(Context.PROVIDER_URL, 
jnp://node1:31501,jnp://node2:31601);
  | jndiProps.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  | jndiProps.setProperty(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  | jndiProps.setProperty(jnp.socketFactory, 
org.jnp.interfaces.TimedSocketFactory);
  | jndiProps.setProperty(jnp.timeout, 1000);
  | jndiProps.setProperty(jnp.sotimeout, 1000);
  | jndiProps.setProperty(jnp.maxRetries, 1);
  | jndiProps.setProperty(jnp.disableDiscovery, true);
  | 
  | String relayJndiName = RELAY_JNDI_NAME;
  | 
  | log.info(e...@gsc: JNDI Connection Properties:  + jndiProps);
  | 
  | Context jndiContext = new InitialContext(jndiProps);
  | 
  | ServiceRelay relay = 
  | (ServiceRelay)
  | PortableRemoteObject.narrow(jndiContext.lookup(relayJndiName),
  | 
ServiceRelay.class);
  | relay.postData();
  | 

Server-Side Logs:


  | 07:35:10.317 INFO   [relay.ServiceRelayBean]
  | !!
  | !!
  | !!
  |  TIMEOUT TEST -- STALLING 
NOW!!
  | !!
  | !!
  | 

Client-Side Logs:

(actual IP addresses replaced by (node1); 31516 is the EJB3 Server Bind Port 
specified in deploy/ejb3.deployer/META-INF/jboss-service.xml)


  | 2009-12-08 21:22:43,408 INFO  [(client)] e...@gsc: JNDI Connection 
Properties: 
{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, 
java.naming.provider.url=jnp://(node1):31500, jnp.disableDiscovery=true, 
jnp.timeout=1000, jnp.maxRetries=1, 
jnp.socketFactory=org.jnp.interfaces.TimedSocketFactory, 
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, 
jnp.sotimeout=1000}
  | 
  | 2009-12-08 21:22:43,580 DEBUG [org.jboss.security.SecurityAssociation] 
Using ThreadLocal: false
  | 
  | 2009-12-08 21:22:43,595 TRACE 

[jboss-user] [jBPM Users] - Re: async fork

2009-12-09 Thread nizzy
Fixed by updating to 3.3.1.GA and adding lock=pessimistic to join.

Thanks for your help!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269822#4269822

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269822
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Durable subscriptions management via JMX console

2009-12-09 Thread jeffleboss

I have the same requirement.

The problem is that I cannot upgrade to HornetQ, since we are using JBoss 5.1.0.

I have a solution where we delete the subscription from the persistence 
database which works partially because, the server does not refresh its memory 
and does not see that its has been deleted. We must, restart the server so this 
works.

Would there be a way to delete the durable subscription from the database and 
trigger the messaging engine to refresh its state without restarting the server?

Jeff

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269823#4269823

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - JBC spends 90% of its time in TPE$Worker.run

2009-12-09 Thread chtimi2
I'm benchmarking JBC writes with our application POJOs (80% update, 10% create, 
10% delete).
So far it is too slow for our requirements, but i haven't spent a lot of time 
tuning it yet.

The topology of the bench is: 
-there are two nodes, on a local network
-i write to a node A (always the same), and writes are replicated to the other 
node B.

I profiled A with Visula VM, and 90% of the time is spent in 
java.util.concurrent.ThreadPoolExecutor$Worker.run.
VVM also says that this is called by threads like OOB-something, and that all 
the time is spent in the self-time of the Worker.run method.

What do these symptoms mean and how can i speed up my writes?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269825#4269825

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269825
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: ProcessEngine.close() in jBPM 4 javadocs but not in sour

2009-12-09 Thread jedizippy
OK seems to be added between 4.1 and 4.2 so upgrading to 4.2 should hopefully 
solve our issues with undeployment.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269827#4269827

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269827
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Durable subscriptions management via JMX console

2009-12-09 Thread timfox
jeffleboss wrote : 
  | I have the same requirement.
  | 
  | The problem is that I cannot upgrade to HornetQ, since we are using JBoss 
5.1.0.
  | 

HornetQ works with both JBoss 4 and JBoss 5 (see quickstart guide)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269830#4269830

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269830
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-09 Thread mike_burton
Thanks for your reply. environment-interceptor / is specified in 
jbpm.cfg.xml. Here is my complete configuration.

jbpm-configuration
process-engine-context
repository-service /
repository-cache /
execution-service /
history-service /
management-service /
identity-service /
task-service /
command-service
retry-interceptor /
environment-interceptor /
/command-service
 
 hibernate-configuration
 
 /hibernate-configuration
 hibernate-session-factory /
 script-manager default-expression-language=juel
default-script-language=juel
  script-language name=juel 
factory=org.jbpm.pvm.internal.script.JuelScriptEngineFactory /
/script-manager

id-generator /

address-resolver /
   /process-engine-context
transaction-context
repository-session /
db-session /
message-session /
timer-session /
history-session /
  /transaction-context


/jbpm-configuration

Please suggest me if something wrong in this configuration.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269835#4269835

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269835
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Re: RAR classloading inversion

2009-12-09 Thread jaikiran
mbean code=org.jboss.resource.connectionmanager.XATxConnectionManager
  | 
java.lang.ClassNotFoundException: 
org.jboss.resource.connectionmanager.XATxConnectionManager

That looks like a genuine CNFE and not related to any classloading 
configurations. I don't see that class being shipped in the AS. Infact, i see a 
thread where a user has mentioned that it's not even shipped in AS-4.2.x 
(actually the LocalTxConnectionManager) 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4063708

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269837#4269837

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: unidirectional and bidirectional relationship

2009-12-09 Thread amira88
Wolfgang Knauf wrote : Hi,
  | 
  | assume that you have a relation Person has many addresses with two 
entities Person and Address.
  | 
  | If you declare a bidirectional relationship, your code can navigate from 
Person to Address, and from Adress to Person.
  | 
  | With a unidirectional relationship, your code can navigate only from one 
side to the other. E.g. you can get the addresses of a person, but you cannot 
get the person of an address.
  | 
  | The database representation of the relationship is not affected by your 
unidirectional/bidirectional decision. This defines only, how the code side 
looks like.
  | 
  | Hope this helps
  | 
  | Wolfgang
tHANK U so much sir ,
Now i can see the difference but i have a new question another time, i'm 
developping an oaw project so after generating 
the code i have to build tables, That's why i used jboss ,but when i wanna add 
the oaw project in the server(add and remove option by right click on the sever 
),i can not find the name of the oaw project ,So i created a new ejb3 project 
and i copy and paste the generated class into it finally i added 
the annotation and the relation ships into entities is it a good idea!!!
Because My collegues add annotation (ejb3 code)in the Template!!
That's why i'm wondering ,and I'm afraid if made a mistake!!
What do you think Sir Knauf!!
Viele Danke für Ihre Hilfe!!
Thank you for ur help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269838#4269838

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269838

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


[jboss-user] [JBoss Microcontainer Users] - Re: Running a deployer on resource in classpath

2009-12-09 Thread rareddy
I  extended the my deployer using the AbstractSimpleVFSRealDeployer as below


  | public class SystemVDBDeployer extends 
AbstractSimpleVFSRealDeployerSystemVDBMetadata {
  | 
  |   public SystemVDBDeployer() {
  |  super(SystemVDBMetadata.class);
  |   }
  | 
  |   @Override
  |   public void deploy(VFSDeploymentUnit unit, SystemVDBMetadata deployment)
  | throws DeploymentException {
  | System.out.println(My deployer invoked);
  |   }
  | }
  | 

added the -jboss-beans.xml file to the deployers directory, but deploy 
call never invoked by the container. 

Then I thought there is no deployment unit available for this to be invoked, 
so added @ManagementDeployment and @ManagementObject annotations to my 
metadata object SystemVDBMetadata class and deployed that object, this object 
is available as input to the deployer by adding setInput, still the deployer 
never invoked. 


  | @ManagementObject
  | @ManagementDeployment(types = {vdb})
  | public class SystemVDBMetadata implements Serializable {
  | }
  | 

What I am confused is what will be my deployment unit in this case, as the 
resource I want to load is inside a JAR in lib directory. My intention was 
use the above code and once I am in the deploy call use the technique 
mentioned above to  load resource.

Any suggestions as what I may be doing wrong?  

Thank you.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269840#4269840

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269840
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: [jbpm 4.2] Finding a Process Instance

2009-12-09 Thread saraswati.santanu
Name of the command service and the id-generator are to be changed in 4.2. 
Yours is for 4.1. But you should have got exception at some other step because 
of these. This is a sample cfg file for 4.2


  | jbpm-configuration
  | 
  |   import resource=jbpm.businesscalendar.cfg.xml /
  |   import resource=jbpm.jpdl.cfg.xml /
  | 
  |   process-engine-context
  | repository-service /
  | repository-cache /
  | execution-service /
  | history-service /
  | management-service /
  | task-service /
  | identity-service /
  | command-service name=txRequiredCommandService
  |   skip-interceptor /
  |   retry-interceptor /
  |   environment-interceptor /
  |   standard-transaction-interceptor /
  | /command-service
  | 
  | hibernate-configuration
  |   cfg resource=jbpm.hibernate.cfg.xml / 
  | /hibernate-configuration
  | 
  | hibernate-session-factory /
  | 
  | object class=org.jbpm.pvm.internal.id.DatabaseDbidGenerator
  |   field name=commandServiceref object=txRequiredCommandService 
//field
  | /object
  | 
  | object class=org.jbpm.pvm.internal.id.DatabaseIdComposer 
init=eager /
  | 
  | script-manager default-expression-language=juel 
default-script-language=juel
  |   script-language name=juel 
factory=org.jbpm.pvm.internal.script.JuelScriptEngineFactory /
  | /script-manager
  | 
  | job-executor auto-start=false /
  | 
  | types resource=jbpm.variable.types.xml /
  |   /process-engine-context
  | 
  |   transaction-context
  | repository-session/
  | db-session/
  | 
  | message-session/
  | timer-session/
  | hibernate-session current=true/
  |   /transaction-context
  | 
  | /jbpm-configuration
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269842#4269842

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Namespace defined in method tag

2009-12-09 Thread mbarker
I'm deploying a web service on JBoss 4.2. I am a consumer of a vendor's web 
service.  I submit my request and receive a response indicating a successful 
submission.  Some time later, possibly hours, the vendor sends me a status thus 
I become the provider.

The vendor is sending me the following request.  Notice that the namespace is 
defined in the tag:  Callback xmlns=SomeCallback

soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  | soap:Body
  |   Callback xmlns=SomeCallback
  | ID0/ID
  | ItemID1362/ItemID
  | Authleopard/Auth
  | Status-900/Status
  | StatusTime2009-12-08T11:13:52/StatusTime
  |   /Callback
  | /soap:Body
  | /soap:Envelope


My test request (below) defines the namespace before the tag is used:  
pos:Callback

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:pos=SomeCallback
  |soapenv:Header/
  |soapenv:Body
  |   pos:Callback
  |  ID1/ID
  |  ItemID2/ItemID
  |  Authsmitty/Auth
  |  Status-1000/Status
  |  StatusTime2009-12-08T11:59:59/StatusTime
  |   /pos:Callback
  |/soapenv:Body
  | /soapenv:Envelope

Here's my code.  My web service does receive the request from the vendor, but 
all the objects are null and int is 0. Namespace is the key.  What do I have to 
change in my code below so that my request matches the vendor's request?   

@WebService(targetNamespace = SomeCallback)
  | @SOAPBinding(parameterStyle = ParameterStyle.WRAPPED)
  | public class SomeCallback {
  | 
  | @WebMethod(operationName = Callback)
  | public @WebResult(name = CallbackResult, targetNamespace = 
SomeCallback)
  | int callback(@WebParam(name = ID) int id,
  | @WebParam(name = ItemID) int itemId,
  | @WebParam(name = Auth) String auth,
  | @WebParam(name = Status) int status,
  | @WebParam(name = StatusTime) Date statusTime) {
  | }
  | }

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269843#4269843

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Durable subscriptions management via JMX console

2009-12-09 Thread jeffleboss
Thanks for the info.

In our setup, we have a JBoss 5.1.0 MDB client and the JBoss 5.1.0 which has 
the topic.

If we decide to upgrade our server JMS solution with HornetQ, will this require 
that JBoss client on which the MDB lives be upgraded as well ? 

In theory, if we are implementing the same JMS spec, the answer is no but we 
had many problems configuring the JMS messaging/remoting in 5.1.0 that I am not 
to hot about this upgrade. 

From what I have seen in the code, a lot of things hav changed since messaging 
1.4 (in remoting and messaging).

Jeff

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269845#4269845

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: How to recieve RPC/encoded SOAP messages in JBoss5?

2009-12-09 Thread shadowcreeper
OK, here's what seems to be working for me... It's a horrible hack, but it 
works...

First, take your WSDL file and turn it into RPC/literal (for me it was as easy 
as replacing the word encoded with literal).

Next, setup your JBossWS stuff as though you will be receiving RPC/literal 
documents (from its standpoint, you will).

Now for the tricky part... You will have already setup a servlet (@WebService), 
which you now need to add an XSLT filter to...

All I had to do to make my SOAP messages understandable to JBossWS was flatten 
the multiRef nodes.

Original SOAP message:

  | myWebServiceMethod
  |myArgumentObject href=#id0/
  | /myWebServiceMethod
  | multiRef id=id0 ...
  |actualGutsOfArgument/
  |referencedGutNum2 href=#id2/
  | /multiRef
  | multiRef id=id2 ...
  |moreActualGuts/
  | /multiRef
  | 

Flattened SOAP message:

  | myWebServiceMethod
  |myArgumentObject id=id0 ...
  |  actualGutsOfArgument/
  |  referencedGutNum2 id=id2 ...
  | moreActualGuts/
  |  /referencedGutNum2
  |/myArgumentObject
  | /myWebServiceMethod
  | 

Note: The only attribute I removed was href, all of the attributes to the 
multiRef node became attributes to the node that referenced it (this includes 
xsi:type info which I believe gets ignored anyway since it is already specified 
in the XSD file that my WSDL references).

The filter will look something like this:

  | public class MultiRefFlattener
  |implements Filter
  | {
  |private Transformer m_transformer = null;
  | 
  |public void init ( FilterConfig filterConfig )
  |   throws ServletException
  |{
  |   final String stylePath = 
filterConfig.getServletContext().getRealPath( 
WEB-INF/multi-ref-flattener.xslt );
  |   final Source styleSource = new StreamSource( stylePath );
  |   final TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
  |   try
  |   {
  |  m_transformer = transformerFactory.newTransformer( styleSource );
  |   }
  |   catch( TransformerConfigurationException e )
  |   {
  |  throw new ServletException( Error creating XSLT transformer: , e 
);
  |   }
  |}
  | 
  |public void doFilter(
  |   final ServletRequest request,
  |   final ServletResponse response,
  |   final FilterChain chain )
  |   throws IOException, ServletException
  |{
  |   final String requestText;
  |   try
  |   {
  |  final CharArrayWriter caw = new CharArrayWriter();
  |  final StreamResult result  = new StreamResult(caw);
  |  m_transformer.transform(new 
StreamSource(request.getInputStream()), result);
  |  requestText = caw.toString();
  |   }
  |   catch( TransformerException e )
  |   {
  |  throw new ServletException( Error filtering data );
  |   }
  | 
  |   final ServletInputStream requestStream = new ServletInputStream()
  |   {
  |  private int m_column = 0;
  |  public int read ()
  | throws IOException
  |  {
  | if( m_column = requestText.length() )
  |return -1;
  | final int character = requestText.charAt( m_column );
  | ++m_column;
  | return character;
  |  }
  |   };
  | 
  |   final HttpServletRequest httpServletRequest = 
(HttpServletRequest)request;
  |   final HttpServletRequestWrapper wrapper = new 
HttpServletRequestWrapper( httpServletRequest )
  |   {
  |  @Override
  |  public int getContentLength ()
  |  {
  | return requestText.length();
  |  }
  | 
  |  @Override
  |  public ServletInputStream getInputStream ()
  | throws IOException
  |  {
  | return requestStream;
  |  }
  |   };
  |   chain.doFilter( wrapper, response );
  |}
  | 
  |public void destroy ()
  |{
  |   m_transformer = null;
  |}
  | }
  | 

If anybody has a better way of faking an HttpServletRequest, please let me know.

And here is my flattening XSLT file:

  | xsl:stylesheet version=1.0
  |xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  |xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  | 
  |xsl:template match=/
  |   xsl:call-template name=CopyNode/
  |/xsl:template
  | 
  |xsl:template name=CopyNodeRef
  |   xsl:param name=elementName/
  |   xsl:param name=hrefId/
  |   xsl:copy
  |  xsl:element name=$elementName
  | xsl:for-each select=//multir...@id = $hrefId]/@*
  |xsl:copy
  |   xsl:apply-templates mode=keeping/
  |/xsl:copy
  | /xsl:for-each
  | xsl:for-each select=//multir...@id = 
$hrefId]/node()[not(@href)]
  |xsl:call-template name=CopyNode/
  | /xsl:for-each
  | xsl:for-each 

[jboss-user] [JBoss Microcontainer Users] - Re: Running a deployer on resource in classpath

2009-12-09 Thread alesj
rareddy wrote : 
  | Then I thought there is no deployment unit available for this to be 
invoked, so added @ManagementDeployment and @ManagementObject annotations 
to my metadata object SystemVDBMetadata class and deployed that object, this 
object is available as input to the deployer by adding setInput, still the 
deployer never invoked. 
  | 
  | 
  |   | @ManagementObject
  |   | @ManagementDeployment(types = {vdb})
  |   | public class SystemVDBMetadata implements Serializable {
  |   | }
  |   | 
  | 
There is no need for this -- this is just for management features, 
ProfileService etc.

rareddy wrote : 
  | What I am confused is what will be my deployment unit in this case, as the 
resource I want to load is inside a JAR in lib directory. My intention was 
use the above code and once I am in the deploy call use the technique 
mentioned above to  load resource.
  | 
Who creates and attaches this SystemVDBMetadata to DeploymentUnit?

Parsing deployers only look into metadata locations.
For spec defined deployments these are:
* META-INF for .jar and .ear
* WEB-INF for .war
(see StructureDeployer(s) for more details)
So, jar's lib directory won't be checked unless you explicitly configure it.

The DeploymentUnit == (Sub)Deployment == .ear or .war or .jar 
(.jar which is not just lib, but real (sub)deployment)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269866#4269866

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269866
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: How to run a Filter before the WebService to alter the S

2009-12-09 Thread shadowcreeper
Never mind, it was easier than I thought. The servlet doesn't do anything until 
after the filters run, so all you have to do is pass in a modified 
ServletRequest to the next filter on the chain.

The trickiest part is faking an HttpServletRequest with the modified String as 
the ServletInputStream.

Thanks.
-Shadow

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269872#4269872

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Docs recommend ProcessEngine in JNDI But fails with Thre

2009-12-09 Thread kukeltje
Then please makea jira issue for it. (DEFAULT_JNDI;-))

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269877#4269877

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Getting JBoss to work with Apache and Coldfusion

2009-12-09 Thread fsweb
First let me start off by saying I'm a JBoss newbie :)

I have Jboss 5.0 installed along with Apache 2.2.14 and Coldfusion 9 on a 
Windows box. I'm having a hard time getting Apache to hand off to JBoss/CF to 
get the CFML processed.

I've been reading up on it a lot but everything I seem to find is either 4+ 
years old or doesn't work for me. I don't know if I should be using mod_proxy 
or mod_jk or something else for Apache. It seems like there should be an easy 
solution since I'm just trying to get them working together and get a little 
test page up so I can hand this box off to the developers :)

Anyways please let me know what I'm doing wrong and thanks for any help!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269879#4269879

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Error when deploying JBossESB SmooksAction to server

2009-12-09 Thread bbuzzard
I'm using JBossESB 4.5GA.  I created an ESB that has a SmooksAction.  
Everything works fine in the IDE, but when I try to deploy the ESB to the 
server I get an error stating that smooks-graphics-ext.xsd can not be 
located.  I copied the xsd into my browser and I got a site that had nothing to 
do with the xsd.

I can remove the graph namespace and element from my smooks-config file and I 
can deploy with no errors; however, I can no longer use the GUI in the IDE to 
edit the smooks-config file.  

Does anyone know what's going wrong here and/or how to fix it?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269881#4269881

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269881
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Re: RAR classloading inversion

2009-12-09 Thread kukeltje
Yes, I noticed the relation ;-)  In the debug/trace logging, you can see it is 
found, at least that was my interpretation, in combination with things like 
'blacklisted' etc... but that could be 'matching generic filters e.g. 
org.jboss.* ;-(

I read many posts about this subject, but the one you refer to was not one of 
them, thanks. 

And I did notice of the JBoss JCA example on the internet was for 4.2 but I saw 
it in some 5.0 docs as well. It might be that it is indeed just not there 
(anymore). I'll try to find out, thanks. (LocalTx, NoTx also do not work). 
Makes me wonder though what the alternative is. Tx? I do want to use 'pooling' 
in my RAR.

Thanks again.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269883#4269883

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio

2009-12-09 Thread hrworx
In the previous post I pasted in an old jbpm.cfg.xml  Here is the actual 
current one:


  | jbpm-configuration
  |   import resource=jbpm.businesscalendar.cfg.xml /
  |   import resource=jbpm.jpdl.cfg.xml /
  | 
  | 
  |   process-engine-context
  | repository-service /
  | repository-cache /
  | execution-service /
  | history-service /
  | management-service /
  | task-service /
  | identity-service /
  | command-service name=txRequiredCommandService
  |   retry-interceptor /
  |   environment-interceptor /
  |   spring-transaction-interceptor /
  | /command-service
  | 
  | object class=org.jbpm.pvm.internal.id.DatabaseDbidGenerator
  |   field name=commandService
  | ref object=txRequiredCommandService /
  |   /field
  | /object
  | 
  | object class=org.jbpm.pvm.internal.id.DatabaseIdComposer
  |   init=eager /
  | 
  | import resource=jbpm.jobexecutor.cfg.xml /
  | types resource=jbpm.variable.types.xml /
  |   /process-engine-context
  | 
  |   transaction-context
  | repository-session /
  | db-session /
  | message-session /
  | timer-session /
  | history-session /
  | 
  | object 
class=com.hrworx.formworx.service.user.JbpmIdentitySessionImpl /
  | transaction /
  | hibernate-session current=false /
  |   /transaction-context
  | 
  | /jbpm-configuration

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269884#4269884

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Advanced Documentation] - Re: How to Configure Jboss4.2.2 using Https

2009-12-09 Thread deveshkbhatia
I am getting following error when i run

java -Djavax.net.ssl.keyStore=client.keystore 
-Djavax.net.ssl.keyStorePassword=123456 
   -Djavax.net.ssl.trustStore=client.truststore 
-Djavax.net.ssl.trustStorePassword=123456 
acme/ReadHttpsURL2 https://localhost:8443


Exception in thread main java.lang.NoClassDefFoundError: acme/ReadHttpsURL2


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269890#4269890

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - Re: WS client reuse http connection

2009-12-09 Thread cdebergh
I've discovered the http.maxConnections property for JAX-WS. I understand the 
default is 5 connections, but I am confused as to why my JAX-WS client is 
opening more that 5 socket connections if there is a max and http.keepAlive is 
true?
If anyone could point me in the right direction or let me know if I 
misunderstood this setting, that would be very appreciated!
I'm hoping to avoid writing a pool for the jax-ws client to limit the number of 
socket connections.
Previously I used axis2. It has an option HTTPConstants.REUSE_HTTP_CLIENT so it 
would only use one connection over and over. Perhaps JAX-WS has a similar 
option?

Thanks!
/Chip 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269904#4269904

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Urgent: Problem of set the jboss datasource with name

2009-12-09 Thread SARA1232007
Hi,

I tried to deploy juddi onto jboss-4.0.5.GA. I have modified and declared 
datasource with name comp/env/jdbc/juddiDB on jboss. And I get the 
information as following when the jboss server starting:


  | 17:11:25,150 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jb
  | oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 
'java:JmsXA'
  | 17:11:25,415 INFO  [WrapperDataSourceService] Bound ConnectionManager 
'jboss.jca
  | :service=DataSourceBinding,name=comp/env/jdbc/juddiDB' to JNDI name 
'java:comp/e
  | nv/jdbc/juddiDB'.

But I fail to access the juddiDB datasource by a test.jsp as following:

  | %
  | out.print(Test JBoss/MySQL Connection pool+br);
  | try{
  | 
  | InitialContext initCtx = new InitialContext();
  | DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/juddiDB);
  | 
  | 
  | Connection conn = ds.getConnection();
  | out.print(MySQL connection pool runs perfectly);
  | conn.close();
  | }
  | catch(Exception ex){
  | out.println(Connect error : );
  | out.print(ex.getMessage());
  | }
  | %

The information I get from the jsp page is following:

  | Test JBoss/MySQL Connection pool
  | Connect error : jdbc not bound 

Could anyone tell me what's wrong? As java:comp/env/jdbc/juddiDB is the 
required name of juddi datasource, what should I do to realize this?

Urgently need help!

Thanks.

Sara

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269905#4269905

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269905

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


[jboss-user] [Persistence] - Urgent: Problem of set the jboss datasource with name

2009-12-09 Thread SARA1232007
Hi,

I tried to deploy juddi onto jboss-4.0.5.GA. I have modified and declared 
datasource with name comp/env/jdbc/juddiDB on jboss. And I get the 
information as following when the jboss server starting:

  | 17:11:25,150 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jb
  | oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 
'java:JmsXA'
  | 17:11:25,415 INFO  [WrapperDataSourceService] Bound ConnectionManager 
'jboss.jca
  | :service=DataSourceBinding,name=comp/env/jdbc/juddiDB' to JNDI name 
'java:comp/e
  | nv/jdbc/juddiDB'.

But I fail to access the juddiDB datasource by a test.jsp as following:

  | %
  | out.print(Test JBoss/MySQL Connection pool+br);
  | try{
  | 
  | InitialContext initCtx = new InitialContext();
  | DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/juddiDB);
  | 
  | 
  | Connection conn = ds.getConnection();
  | out.print(MySQL connection pool runs perfectly);
  | conn.close();
  | }
  | catch(Exception ex){
  | out.println(Connect error:);
  | out.print(ex.getMessage());
  | }
  | %


The information I get from the jsp page is following:

  | Test JBoss/MySQL Connection pool
  | Connect error: jdbc not bound 

Could anyone tell me what's wrong? As java:comp/env/jdbc/juddiDB is the 
required name of juddi datasource, what should I do to realize this?

Urgently need help!

Thanks.

Sara

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269906#4269906

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Durable subscriptions management via JMX console

2009-12-09 Thread gaohoward
I think you do need to upgrade. HornetQ has a pluggable transport layer and 
doesn't require remoting. Currently it comes with netty as its transport.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269908#4269908

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269908
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Conterpart of UIL2XAConnectionFactory?

2009-12-09 Thread gaohoward
I'm sorry I don't know much about MQ. The UIL2XAConnectionFactory seems just a 
name for a XAConnectionFactory JMS object. I think you can post the question to 
JBoss MQ forum for more help.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269909#4269909

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269909
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: standalone consumer for clustered queue did not get all

2009-12-09 Thread gaohoward
I think it was not properly configured. Have a look at the user's manual and 
also compare it with your workable installation.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269910#4269910

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269910
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: how to connect jboss MDB to jboss messaging - different

2009-12-09 Thread gaohoward
I think you need ask JBoss AS forum.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269912#4269912

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269912
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Bug in process designer eclipse

2009-12-09 Thread suganda
Hi All,

I found weird behaviour of eclipse plugin for jbpm4.2

when i write manually xml using decision state like 

  







   

I move one of state using eclipse process designer , then when i check again 
the xml results it will become 

   



   

which will automatically delete all of my fields for that handler class

secondly when i modify manuall xml , the empty jpeg files will be generated in 
the same packages of my process definition. However when i move a bit one of 
state using process designer, i can see clearly the correct jpeg files that is 
generated.

Any clue or is it really bug ? 


Thanks in advance,

Best Regards,
Suganda 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269913#4269913

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Advice regarding complex proccess modeling

2009-12-09 Thread siva_movva
Hi,

Is there a similar API in JBPM3 that allows subTask creation for an existing 
task?

Any help would be appreciated.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269914#4269914

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Bug in process designer eclipse

2009-12-09 Thread suganda
Sorry, i forgot to put the xml in code tag

when i write manually xml using decision state like 

  |   decision g=428,221,80,40 name=INPUT.READY
  | handler class=com.abc.def.jbpm.impl.InputImpl 
  | field name=phasestring value=INPUT//field
  | field name=processstring value=//field
  | field name=statestring value=READY//field
  | /handler
  | transition g=-79,-18 name=Completed to=UDB.EXEC/
  | transition g=-79,-18 name=Error to=INPUT.ERROR/
  |/decision

I move one of state using eclipse process designer , then when i check again 
the xml results it will become 

  | decision g=428,221,80,40 name=INPUT.READY
  | handler class=com.abc.def.jbpm.impl.InputImpl /
  | transition g=-79,-18 name=Completed to=UDB.EXEC/
  | transition g=-79,-18 name=Error to=INPUT.ERROR/
  |/decision

seems like its automatically changed by process designer eclipse plugin 

Thanks in advance,

Best Regards,
Suganda

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269915#4269915

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269915
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Conterpart of UIL2XAConnectionFactory?

2009-12-09 Thread bershath27
bershath27 wrote : Marco.Pehla wrote : Hello Howard,
  |   | 
  |   | since I didn't wrote the application, I don't know if there's a reason 
why this special UIL2XAConnectionFactory has been used. The following Wiki page 
is everything I know so far.
  |   | 
  |   | http://www.jboss.org/community/wiki/ConfigUIL2
  |   | 
  |   | I hope it helps.
  |   | 
  |   | 
  |   | With kind regards,
  |   | Marco
  | 
  | AFAIK this is possible adding a JNDI. Reference in jms-ds.xml 
  | 

The UIL2XAConnectionFactory isn't used in JBossMessaging. In JBossMQ, the 
connection factories are named with having the invocation layer used for each 
connection factory. 

The UIL2 indicates that the given connection factory is using UIL2 layer for 
transport/invocations. This is just a wrapper for the XAConnection factory. 
However, in JBM we're using remoting and we don't use the former notation in 
JBM.

Since you don't/can't change your application's source code, simply add a JNDI 
binding on the ConnectionFactory, which is defined at 
connection-factories-service.xml. 
...
UIL2XAConnectionFactory
...

eg :
   mbean code=org.jboss.jms.server.connectionfactory.ConnectionFactory
  |   name=jboss.messaging.connectionfactory:service=ConnectionFactory
  |   xmbean-dd=xmdesc/ConnectionFactory-xmbean.xml
  |   depends 
optional-attribute-name=ServerPeerjboss.messaging:service=ServerPeer/depends
  |   depends 
optional-attribute-name=Connectorjboss.messaging:service=Connector,transport=bisocket/depends
  |   dependsjboss.messaging:service=PostOffice/depends
  | 
  |   attribute name=JNDIBindings
  |  bindings
  | binding/ConnectionFactory/binding
  | binding/XAConnectionFactory/binding
  | bindingjava:/ConnectionFactory/binding
  | bindingjava:/XAConnectionFactory/binding
  | bindingUIL2XAConnectionFactory/binding  !-- HERE --
  |  /bindings
  |   /attribute
  |/mbean

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269918#4269918

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: Error when deploying JBossESB SmooksAction to server

2009-12-09 Thread dennyxu
Did you get the smooks-graphics-ext.xsd can not be located error from server 
console or from project deployment ui?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269920#4269920

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269920
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - List of Tasks assigned to a user

2009-12-09 Thread raghavarapu
Hi,

In jbpm4.1 is there any method that can find out the list of tasks assigned to 
a particular user? In the examples, I could find out,

taskService.findPersonalTasks(username); 

but this extends the class, JbpmTestCase, which may not be used in the actual 
production code. So, is there any method that could give the list of tasks that 
are assigned to a particular user.

Please help me.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269921#4269921

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269921
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: List of Tasks assigned to a user

2009-12-09 Thread raghavarapu
Sorry guys, I was able to use the same method, once I created the 
TaskService.class in the environment. 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269923#4269923

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Got marshalling exception, exiting java.io.IOException:

2009-12-09 Thread GoldenHawk
gaohoward wrote : The connections used to deliver messages are those from 
which you create your consumers. 
  | 
  | I'm not sure what you mean by 'scan data'?
  | 
  | Howard
By 'scan data' I meant peaking into the messages going to  from the topic

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269924#4269924

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269924
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: Error when deploying JBossESB SmooksAction to server

2009-12-09 Thread DartPeng
Hi bbuzzard:

If you removed the smooks-graphics-ext.xsd namespace uri from the smooks 
config file , the Smooks editor can open it also, but some input informations 
will lose. 

Are you sure that you have removed all XML elements associated the 
smooks-graphics-ext.xsd namespace ?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269925#4269925

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269925
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Re: Urgent: Problem of set the jboss datasource with name

2009-12-09 Thread jaikiran
java:comp/env namespace has a special meaning. Why are you setting the JNDI in 
the datasource to this format? Why not set the jndi-name in the -ds.xml to:

jndi-namejdbc/juddiDB/jndi-name

Then you can lookup using:

initCtx.lookup(java:jdbc/juddiDB);

If you want the datasource to be available in the java:comp/env namespace then 
it requires a different set of steps.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269926#4269926

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269926
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Re: Weird generated SQL with JBoss 5.1

2009-12-09 Thread jaikiran
You might have better luck asking this in the Hibernate user forum 
https://forum.hibernate.org/viewforum.php?f=1.

Also, try specifying the return type of the query result:

getEntityManager().createNativeQuery(nativeQuery, Date.class);

I don't know if that's going to make a difference though.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4269927#4269927

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269927
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user