[jboss-user] [EJB 3.0 Users] - Re: JBoss 6.0.M1 and ejb 3.1 (JSR 318)

2009-11-22 Thread grdzeli_kaci
Hi jaikiran

And what is the stage of ejb 3.1 project? is there any release date scheduled?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266909#4266909

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266909
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Error in accessing pojocache mbean

2009-11-22 Thread torakesh
Hi,

I am new to the jboss cache, I want to use jboss cache in my application using 
MBean feature. I have created MBean using following configuration:





jboss:service=TransactionManager

org.jboss.cache.JBossTransactionManagerLookup


REPEATABLE_READ


REPL_SYNC


false


0


0


TreeCache-Cluster





















true


5000


15000


1






--
Now I am using it in my application using follwing code:

MBeanServer server = MBeanServerLocator.locate();   
s_cacheLoginPageRoom = (PojoCacheMBean) 
MBeanProxyExt.create(PojoCacheMBean.class,  
"jboss.cache:service=PojoCache",server);


When I am deploying my application I got follwoing error:

javax.management.InstanceNotFoundException: jboss.cache:service=PojoCache
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1303)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:903)
at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:407)
at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:99)
at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:324)
at com.portal.cache.PortalPageCache.(LoginCache.java:34)
at 
com.portal.cache.LoginCache.getS_cacheSingltonInstance(LoginCache.java:61)
at com.portal.cache.LoginCache.getLoginPageData(LoginCache.java:74)
at 
com.portal.cache.PortalCacheClient.getLoginPageList(PortalCacheClient.java:570)
at 
com.portal.controller.marketingadmin.ManageSequencePrioritizationController.getSequenceLoginList(ManageSequencePrioritizationController.java:92)
at 
com.portal.backingbean.login.LoginBean.iniInternetTable(LoginBean.java:397)
at 
com.portal.backingbean.login.LoginBean.getSequenceInternetShowList(LoginBean.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at javax.faces.component.UIData.getValue(UIData.java:609)
at 
com.icesoft.faces.component.panelseries.UISeries.getValue(UISeries.java:572)
at 
com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:357)
at 
com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:144)
at 
com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:136)
at 
com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:146)
at 
com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at 
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at javax.faces.component.UIData.encodeBegin(UIData.java:962)
at 
com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:298)
at 
com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:356)
at 
com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:492)
at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497)
at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:497)
  

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
I've to implement a class as follows:


  | import java.lang.reflect.Type;
  | import javax.ejb.EJB;
  | import javax.naming.Context;
  | import javax.naming.InitialContext;
  | import javax.naming.NamingException;
  | import javax.ws.rs.ext.Provider;
  | import com.sun.jersey.core.spi.component.ComponentContext;
  | import com.sun.jersey.spi.inject.Injectable;
  | import com.sun.jersey.spi.inject.InjectableProvider;
  | 
  | @Provider
  | public class EJBProvider implements InjectableProvider {
  |   public Injectable getInjectable(ComponentContext componentCtx,
  |   EJB ejbAnnotation,
  |   Type type) {
  | if (!(type instanceof Class))
  |   return null;
  | 
  | Class clazz = (Class) type;
  | 
  | String beanInterface = ejbAnnotation.beanInterface().getName();
  | if (Object.class.getName().equals(beanInterface)) {
  |   beanInterface = clazz.getName();
  | }
  | 
  | String jndiName = ???;  // get jndi name via beanInterface
  | 
  | Context ctx = null;
  | try {
  |   ctx = new InitialContext();
  |   Object obj = ctx.lookup(jndiName);
  | 
  |   return new Injectable() {
  | public Object getValue() {
  |   return obj;
  | }
  |   };
  | }
  | catch (NamingException e) { /* error handling */ }
  | finally { /* close ctx */ }
  |   }
  | }

So my 1st problem is: how to get the jndi name when the interface of an EJB is 
available?

I was trying the following where I only would need the DeploymentUnit object. 
Perhaps there are alternatives. Any hint is highly appreciated!
//import org.jboss.deployers.structure.spi.DeploymentUnit;
  | //import 
org.jboss.ejb3.common.resolvers.plugins.FirstMatchEjbReferenceResolver;
  | //import org.jboss.ejb3.common.resolvers.spi.EjbReference;
  | //import org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolver;
  | 
  | EjbReference ref = new EjbReference(ejbAnnotation.beanName(),
  | beanInterface,
  | ejbAnnotation.mappedName());
  | EjbReferenceResolver resolver = new FirstMatchEjbReferenceResolver();
  | 
  | DeploymentUnit du = ???;  // How to get DeploymentUnit? Via ClassLoader?
  | 
  | String jndiName = resolver.resolveEjb(du, ref);
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266911#4266911

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
BTW, the whole deployment is in an EAR, the class EJBProvider (see above) is in 
a web module, and the referenced EJB of course in an EJB module.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266914#4266914

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread alesj
"Juergen.Zimmermann" wrote : 
  | So my 1st problem is: how to get the jndi name when the interface of an EJB 
is available?
  | 
Dunno, this is EJB question not MC. ;-)
Either ask on their forum or check Weld-int 
where, afair, something similar had to be implemented.

"Juergen.Zimmermann" wrote : 
  | 
  |   | DeploymentUnit du = ???;  // How to get DeploymentUnit? Via ClassLoader?
  |   | 
  | 

  | ClassLoader cl = clazz.getClassLoader();
  | Module module = ClassLoading.getModuleForClassLoader(cl);
  | if (module instanceof AbstractDeploymentClassLoaderPolicyModule)
  | {
  |AbstractDeploymentClassLoaderPolicyModule deploymentModule = 
(AbstractDeploymentClassLoaderPolicyModule)module;
  |DeploymentUnit unit = deploymentModule.getDeploymentUnit();
  | 
This way you get the deployment unit owning the classloader/module,
but to actually get the right deployment unit you would need to check the whole 
hierarchy of this unit.
e.g.
get class's source location, and check it against unit's and sub-units 
classpath roots.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266915#4266915

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266915
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread alesj
"Juergen.Zimmermann" wrote :  the class EJBProvider (see above) is in a web 
module
You can use MC-int to get DeploymentUnit from ServletContext.
* http://anonsvn.jboss.org/repos/jbossas/projects/mc-int/trunk/servlet/

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266916#4266916

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266916
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
Thank you very much for your help!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266918#4266918

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: How to create a new profile outside theJboss-as/server d

2009-11-22 Thread jaikiran
By "profiles" do you mean, you want to place the deployments outside the JBoss 
AS folder structure? Or do you want to complete create a new set of profile 
which includes the "lib", "deployers" etc...?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266922#4266922

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266922
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Unable to re-publish war to jboss without restart (Sprin

2009-11-22 Thread jaikiran
Is that the complete stacktrace? It isn't completely informative. 

bean with name 'sessionFactory' defined in ServletContext resource 
[/WEB-INF/pcas-data.xml]: Invo
  | cation of init method failed; nested exception is 
java.lang.reflect.UndeclaredThrowableException
  | at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorRes
  | olver.java:698)
  | at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorRes
  | olver.java:192)
  | 

Although this piece doesn't say much, it seems to be coming from the spring 
framework classes. If there's more in the stacktrace, do post that part.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266923#4266923

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: How to create a new profile outside theJboss-as/server d

2009-11-22 Thread jdabbi
Jboss comes with a set of ptofiles such as default, all, web, etc. they are in 
the jboss-as/servers directory. I would like to create a new profile for each 
node of my cluster. however, i would like to place this profile on a separate 
drive and directory that is outside the jboss-as directory tree.

Thanks for your help in advance.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266925#4266925

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266925
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering] - Re: INSTRUCTIONS FOR JBOSS 2 NODE HORIZONTAL CLUSTER INSTALL

2009-11-22 Thread babazs
Drools does not work with Seam in clustered environment. :(
http://seamframework.org/Community/ClusteringSeamApplicationDroolsSerializationErrpr

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266926#4266926

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266926
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
Thanks for help.

If one peristence unit is mapped to many data sources(with same tables), is 
there any problems with Hibernate caching?

We tried the following in a stateless session bean: 

Map configOverrides = new HashMap();
EntityManagerFacotry emf = Persistence.createEntityManagerFactory("unit1", 
configOverrides);

But got exception:

javax.persistence.PersistenceException: [PersistenceUnit: unit1] Unable to 
build EntityManagerFactory


  
  |java:/dataSource1
  |  
  |
  | 
  | 
  |   
  |
  |

But the following works.

@PersistenceContext (unitName="unit1")
  | protected EntityManager em; 

What is the right way to create entityManagerFactory?  Thanks!
Dave

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266927#4266927

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266927
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - what enterprise integration in jbpm use for?

2009-11-22 Thread optixpro
i saw jbpm-enterprise.jar can you tell me what it use for? thanks you

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266928#4266928

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266928
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


Re: [jboss-user] [Security] - JAAS - more data about the user

2009-11-22 Thread Jari Fredriksson


On 21.11.2009 20:56, ndario wrote:
> So far I developed webapps with User object in session that holds username, 
> full name, role name etc.
> 
> Now I setup declarative security using LoginModule and all is well but all I 
> have from current user is it's principal which is username only.
> 
> What can I do if I want to get hold of more user information from DB when 
> authentication is performed? Do i have to create my own login module?
> 
> What is suggested way of dealing with this?
> 

IMHO JAAS does not have anything for this. You have to have own ways to
access the data store that the LoginModule uses.

It does not have to be own LoginModule. I use "standard" SQL
LoginModule, and maintain user with Ejb3 entity beans in my app. If it's
LDAP back end, you use LDAP means.

-- 
http://www.iki.fi/jarif/

Sheriff Chameleotoptor sighed with an air of weary sadness, and then
turned to Doppelgutt and said 'The Senator must really have been on a
bender this time -- he left a party in Cleveland, Ohio, at 11:30 last
night, and they found his car this morning in the smokestack of a British
aircraft carrier in the Formosa Straits.'
-- Grand Panjandrum's Special Award, 1985 Bulwer-Lytton
   bad fiction contest.



signature.asc
Description: OpenPGP digital signature
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: what enterprise integration in jbpm use for?

2009-11-22 Thread kukeltje
running jbpm with ejb3 timers and a jms queue for async nodes instead of the 
custom implementation. The rest is the same.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266929#4266929

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266929
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - EntityManager.refresh() works only on managed entities.

2009-11-22 Thread CatchSandeepVaid

   Why can't EntityManager.refresh() work on detatched entities? Any reason 
behind this ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266932#4266932

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266932
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: How to create a new profile outside theJboss-as/server d

2009-11-22 Thread PeterJ
Yes, you can do this - just set the appropriate system properties to let the 
app server know where to look.

For example, if you copy server/default to /opt/myconfig, then when starting up 
the app server, add the following to the JAVA_OPTS:

-Djboss.server.base.dir=/opt/myconfig 
-Djboss.server.base.url=file:///opt/myconfig/

That should be the only two you have to set.

For a list of most of the properties: 
http://www.jboss.org/community/wiki/JBossProperties
Or use the jmx-console and the SystemProperites mbean to see everything.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266933#4266933

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266933
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: Upgraded jboss As 4.1 to 5.1 and performance degrated

2009-11-22 Thread PeterJ
Do you mean just slow startup times, or response times in general? If the 
former, check the JBoss AS Users forum - it contains a lot of entries related 
to this issue.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266935#4266935

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user



[jboss-user] [jBPM Users] - JBoss AS & jBPM

2009-11-22 Thread StevenMayhew
Hi all,

I'm having a few issues sorting out an installation of JBoss to configure it 
correctly with jBPM. Currently I have a JBoss AS instance running correctly on 
the machine and it all works perfectly. However its integrating it with jBPM 
that I'm having issues with. The only tutorial that I could find is dated 
(http://www.jboss.org/community/wiki/jbpm3gettingstarted) and isn't much help 
with the latest version (4.2) of jBPM.

I tried reverting to an old version so that I could run through the 
instructions in the wiki and still had no luck. Basically I'm just after some 
guidance to configuring my JBoss 5.1.0 install so that I can successfully use 
jBPM with it.

Any help at all would be appreciated. You can assume that so far all I have 
done is unzip the JBoss AS instance and tested it, because thats pretty much as 
far as I have come before hitting brick walls and enduring head-smash-on-desk 
moments.

Cheers,
Steven

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266938#4266938

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266938
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - WebLogic 10 : couldn't lookup 'UserTransaction' from jndi

2009-11-22 Thread dtoch
I'm trying to use JBPM 4.2 in WebLogic 10, but I get:

org.jbpm.api.JbpmException: couldn't lookup 'UserTransaction' from jndi: Unable 
to resolve 'UserTransaction'. Resolved '': Unable to resolve 'UserTransaction'. 
Resolved ''
at 
org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupFromJndi(JtaTransaction.java:137)
at 
org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupJeeUserTransaction(JtaTransaction.java:116)
at 
org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:42)
at 
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at 
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at 
org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at 
org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)
at 
org.jbpm.pvm.internal.cfg.ProcessEngineImpl.buildProcessEngine(ProcessEngineImpl.java:170)

In WebLogic the JNDI name is javax.transaction.UserTransaction, not 
UserTransaction. Apparently org.jbpm.pvm.internal.tx.jta.JtaTransaction 
contains a protected member userTransactionJndiName in order to pass another 
JNDI name then the default one which is for JBoss, but I'm not sure what's the 
correct/elegant way to override it. Should I use the JBPM Environment API for 
this, or should I customize the JBPM XML configurations?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266939#4266939

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266939
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JBoss AS & jBPM

2009-11-22 Thread sebastian.s
What exactly are your problems? Have you referred to the user's guide and have 
you tried using the supplied ant-script to install jBPM into an existing 
instance of JBoss AS?

http://docs.jboss.com/jbpm/v4/userguide/html_single/#jboss



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266941#4266941

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266941
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Custom StrictMaxPool settings in ...-aop.xml ignored

2009-11-22 Thread shreyasshinde
Okay. I have a solution for this. It turns out that when EJBs applications are 
deployed, the properties in ejb3-interceptors-aop.xml file under the deploy 
directory are applied first. The following annotation in the file says "if the 
class is not present then apply this property.


  | 
  |  @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", 
maxSize=20, timeout=1)
  |   
  | 

So, when I was bundling my -aop.xml file with my EJB application, the property 
should read:



  | 
  |  @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", 
maxSize=10, timeout=1)
  |   
  | 

Which means, if the class is present then apply this property. As the 
properties from ejb3-interceptors-aop.xml file are always applied first, the 
class is present and therefore we only check for its existence.

Most of the documentation is misleading in a way that this point is not very 
clear.

Thanks,

Shreyas

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266942#4266942

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal Users] - Why does request URI change between processAction and doView

2009-11-22 Thread JohnnyTheHun
We are calling an action url:
https://mine.com/authsec/portal/myportal/mypage/myportletWindow?action=1&myparam=myvalue

We are checking the underlying HttpServletRequest in the processaction and the 
doview methods:

  | HttpServletRequest req = (HttpServletRequest) 
PolicyContext.getContext("javax.servlet.http.HttpServletRequest");
  | 

We print the path info for debugging:

  | log().info("PATH INFO in processAction: 
+req.getPathInfo()+"?"+req.getQueryString());
  | log().info("PATH INFO in doView: 
+req.getPathInfo()+"?"+req.getQueryString());
  | 

Under JBoss Portal 2.7.0.CR1 we get:
PATH INFO in processAction: 
/portal/myportal/mypage/myportletWindow?action=1&myparam=myvalue
PATH INFO in doView: 
/portal/myportal/mypage/myportletWindow?action=1&myparam=myvalue

Under JBoss Portal 2.7.2 we get:
PATH INFO in processAction: 
/portal/myportal/mypage/myportletWindow?action=1&myparam=myvalue
PATH INFO in doView: 
/portal/myportal/mypage/myportletWindow?action=e&windowstate=normal&mode=view

notice the change in the path info we get under 2.7.2 from doView method.

What happened, why doesn't 2.7.0.CR1 and 2.7.2 react the same way? What can we 
do to get the path info from doView as well?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266945#4266945

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266945
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: what enterprise integration in jbpm use for?

2009-11-22 Thread optixpro
thankyou kukeltje



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266952#4266952

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266952
___
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 set socket timeouts?

2009-11-22 Thread gaohoward
Did you find any exceptions in your log? You can turn on the 
TRACE log level to see more details.

If you believe it's a real problem, you can raise a jira and attach logs/tests 
if any.

Thanks
Howard


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266954#4266954

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - mysql and JBPM Integration Problem

2009-11-22 Thread Sunay
Hello All,

I got following stack trace when i migrated from hsql to mysql

java.lang.NullPointerException
at 
org.jboss.jms.server.ServerPeer.getPostOfficeInstance(ServerPeer.java:1382)
at 
org.jboss.jms.server.destination.DestinationServiceSupport.setMaxSizeForQueues(DestinationServiceSupport.java:273)
at 
org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSupport.java:110)
at 
org.jboss.jms.server.destination.QueueService.startService(QueueService.java:65)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
at org.jboss.mq.server.jmx.Queue.start(Queue.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)


Any Suggestions?

Thanks 
Sunay Shah


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266955#4266955

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266955
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Process is not restored after restart?

2009-11-22 Thread 4ntoine
"kukeltje" wrote : Yes... but is it IN your database
Is it a bug or feature? Please, give a link to doc, if it is documented.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266956#4266956

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266956
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Process is not restored after restart?

2009-11-22 Thread 4ntoine
"kukeltje" wrote : Yes... but is it IN your database
Is it possible to have process just in the same state as before restarting?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266957#4266957

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266957
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
>From debugging, the issue seems to be in method:

PersistenceUnitDeployment.start();

which is in the jar "jboss-jpa-deployer.jar".

Where can I find the source code for the jar? I could not find it under
http://anonsvn.jboss.org/repos/

Thanks!


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266959#4266959

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266959
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Slow consumer is blocking producer

2009-11-22 Thread gaohoward
Hello,

I did a simple test and I couldn't see there is a problem. I used the topic 
example in JBM 1.x with some changes. I sent 40k messages and had a message 
listener. In its onMessage() I gave a 5 sec sleep. 

Tests shows in about 10 sec all messages have been sent while at the receiving 
end only two messages was arrived.

Do you have a test to reproduce this?

Howard


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266960#4266960

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Problems with examples.

2009-11-22 Thread gaohoward
in etc/jndi.properties under the queue folder.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266961#4266961

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Spring Integration] - Spring Integration with JBOSS 4.2.3.GA and 4.3.0.GA Servers

2009-11-22 Thread rangarajrayappan
I'm new to spring integration. 

I need to know which version of Spring Framework and Spring Security can be 
used with JBOSS-4.2.3.GA and JBOSS-4.3.0.GA. I am using Jboss 4.2.3 and 
Jboss4.3.0 for different environments.

Thanks in advance,
Rangaraj Rayappan

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266962#4266962

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
the previous message is for deploy phase.  I was wrong.  From further debug,  
the exception is thrown in SessionFactoryImp.java

throw new HibernateException("The chosen transaction strategy requires  access 
to the JTA TransactionManager");

if ( settings.getTransactionManagerLookup()!=null ) {
  |   log.debug("obtaining JTA TransactionManager");
  |   transactionManager = 
settings.getTransactionManagerLookup().getTransactionManager(properties);
  | }
  | else {
  |   if ( settings.getTransactionFactory().isTransactionManagerRequired() ) { 
throw new HibernateException("The chosen transaction strategy requires  access 
to the JTA TransactionManager");
  |   }
  |   transactionManager = null;
  | }

How to fix it? It seems a configuration issue. Thanks!
JBoss: 5.1.0GA.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266964#4266964

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266964
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: SQLException throws after changing C3P0 configuration

2009-11-22 Thread darshgohel
Hi All,

One more thing i would like to ask is whether its is allowed to use both JDBC 
and JBPMContext for data retrival?

Like as mentioned in the example, fist the JDBC query is firing and based on 
the results we get, rs.getString("headquarteraddressid"), Address Data is 
populated.

So there are 2 different DB calls initialized which might creating problem.

Can anyone guide us in the same?

Thanks & Regards,
Darsh.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266965#4266965

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Re: Null element in the Vector

2009-11-22 Thread roman.mandel...@gmail.com
Here is the output of simple concurrency test

Thread: [44] pushing
  | Thread: [45] poping
  | Thread: [45]
  | [null],
  | Thread: [45] poping
  | Thread: [44]
  | [23],
  | Thread: [44] pushing
  | Thread: [44]
  | [23], [23],
  | Thread: [45]
  | [null],
  | Thread: [44] pushing
  | Thread: [44]
  | [23], [23], [23],
  | Thread: [44] pushing
  | Thread: [44]
  | [23], [23], [23], [23],
  | Thread: [44] pushing
  | Thread: [44]
  | [23], [23], [23], [23], [23],
  | Thread: [44] pushing
  | Thread: [44]
  | [23], [23], [23], [23], [23], [23],
  | Thread: [45] poping
  | Thread: [44] pushing
  | Thread: [45]
  | [23], [23], [23], [23], [null],
  | Thread: [45] poping
  | Thread: [45]
  | [23], [23], [23], [null], [null], [23],
  | Thread: [45] poping
  | Thread: [44]
  | [null], [null], [null], [null], [null], [23], [23],
  | Thread: [44] pushing
  | Thread: [45]
  | [23], [23], [null], [null], [23], [null],
  | Thread: [45] poping
  | Thread: [45]
  | [23], [null], [null], [23], [null], [null], [23],




Here is the code of the test:



  | 
  | 
  | 
  | package org.galtstreet.cache.test;
  | 
  | import java.util.Properties;
  | 
  | import javax.naming.Context;
  | import javax.naming.InitialContext;
  | import javax.naming.NamingException;
  | import javax.resource.NotSupportedException;
  | import javax.transaction.SystemException;
  | import javax.transaction.UserTransaction;
  | 
  | import junit.framework.TestCase;
  | 
  | import org.galtstreet.exchangeboard.trying.WrappedQueue;
  | import org.jboss.cache.config.Configuration.CacheMode;
  | import org.jboss.cache.factories.UnitTestConfigurationFactory;
  | import org.jboss.cache.lock.IsolationLevel;
  | import org.jboss.cache.pojo.PojoCache;
  | import org.jboss.cache.pojo.PojoCacheFactory;
  | 
  | 
  | public class SimpleConcurrencyTest extends TestCase{
  | 
  | 
  | 
  |PojoCache cache1;
  | 
  | protected void setUp() throws Exception {
  | 
  |   Properties prop = new Properties();
  |   prop.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.cache.transaction.DummyContextFactory");
  |   boolean toStart = false;
  |   
  |   
  |   
  |   cache1 = 
PojoCacheFactory.createCache(UnitTestConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC),
 toStart);
  |   cache1.getCache().getConfiguration().setSyncCommitPhase(true);
  | 
  |   
cache1.getCache().getConfiguration().setLockParentForChildInsertRemove(true);
  |   
cache1.getCache().getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
  |   cache1.start();
  | }
  | 
  | 
  | UserTransaction getTransaction() throws SystemException, 
NotSupportedException, NamingException
  | {
  | Properties prop = new Properties();
  | prop.put(Context.INITIAL_CONTEXT_FACTORY,
  | 
"org.jboss.cache.transaction.DummyContextFactory");
  | return (UserTransaction) new 
InitialContext(prop).lookup("UserTransaction");
  | }   
  | 
  | 
  | public void testWrappedQueue(){
  | 
  | WrappedQueue queue = new WrappedQueue();
  | 
  | cache1.attach("queue-1", queue);
  | 
  | 
  | ProducerThread pt = new ProducerThread(queue);
  | pt.start();
  | 
  | 
  | ConsumerThread ct = new ConsumerThread(queue);
  | ct.start();
  | 
  | sleeping(12);
  | 
  | }
  | 
  | 
  | 
  | class ConsumerThread extends Thread{
  | 
  | WrappedQueue queue = null;
  | 
  | public ConsumerThread(WrappedQueue queue) {
  | this.queue = queue;
  | }
  | 
  | @Override
  | public void run() {
  | 
  | while (true){
  | 
  | UserTransaction ut = null;
  | 
  | try {
  | ut = getTransaction();
  | ut.begin();
  | }catch (Throwable th){
  | th.printStackTrace();
  | }
  | 
  | System.out.println("Thread: [" + this.getId() + 
"] poping ");
  | queue.popInteger();
  | 
  | System.out.println("Thread: [" + this.getId() + 
"] \n" + queue.toString() );
  | sleeping(500);
  | 
  | 
  | try {
  | ut.commit();
  | }ca

[jboss-user] [jBPM Users] - Re: Process is not restored after restart?

2009-11-22 Thread kukeltje
yes, that is normal jbpm behaviour.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266967#4266967

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266967
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Process is not restored after restart?

2009-11-22 Thread 4ntoine
"kukeltje" wrote : yes, that is normal jbpm behaviour.
can you link to doc describing that situation, please. probably, i made smth 
wrong like params or configs

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266968#4266968

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266968
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Custom StrictMaxPool settings in ...-aop.xml ignored

2009-11-22 Thread jaikiran
"shreyasshinde" wrote : It turns out that when EJBs applications are deployed, 
the properties in ejb3-interceptors-aop.xml file under the deploy directory are 
applied first. 

That's because, your configuration instructs the container to do so:


  | 

Notice the "extends". You have instructed that your domain extends the 
Stateless Bean domain which comes from ejb3-interceptors-aop.xml

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266969#4266969

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user