[jboss-user] [JBossWS] - Re: ws-security: Problem using encryption

2006-08-20 Thread kristof_taveirne
My first post may have been a bit confusing 

So the problem is when the client encrypts its message.
The XML that is being send over the wire has in the soap-body a EncryptedData 
element.

The server only accepts element that are in the schema of the wsdl.
 for example.

I configured the server so that it requires encrypted data to be send, but 
instead of accepting the  element and decrypt it, it tries to find an  in my 
wsdl to map it the proper operation. Which ofcourse doesn't exist.

Does anyone know how I can fix this?

Greets,
Kristof.Taveirne

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

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


[jboss-user] [JBoss Seam] - When are components created?

2006-08-20 Thread SmokingAPipe
I created a very simple component like this:


  | @Name(requestBean)
  | @Scope(ScopeType.EVENT)
  | public class RequestBean {
  | private static final Logger logger = Logger.getLogger(RequestBean);
  | 
  | public RequestBean() {
  | logger.info(Created a request bean!);
  | }
  | 
  | private String affiliateId;
  | 
  | @RequestParameter
  | public String getAffiliateId() {
  | return affiliateId;
  | }
  | 
  | public void setAffiliateId(String affiliateId) {
  | logger.info(Setting the affiliate id param:  + affiliateId);
  | this.affiliateId = affiliateId;
  | }
  | 
  | }
  | 

It would seem that, because the scope is EVENT, this bean would need to be 
instantiated for every single seam request, and yet I never see it get 
instantiated.  Various other beans do get instantiated, and I'm not sure how 
Seam decides.

Also, what is the use of the @RequestParameter annotation?  I've put in in 
various beans (stateful, stateless, entity, JavaBeans, etc) and it never gets 
called.  Is there a way to get access to request parameters?

All I want to do is have it so that if a user shows up at the site, the 
affiliateId (which is in a GET parameter) gets saved in a cookie.  Shouldn't be 
this hard but I can't figure out how to even access the parameter within Seam, 
or even get Seam to instantiate my component.

Any suggestions welcome.


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

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


[jboss-user] [JBoss Messaging] - RC3 stable? which jdk? ad on: mssql-persistence-service.xml

2006-08-20 Thread [EMAIL PROTECTED]
hello,

we are using 
 jboss-4.0.4.GA
 win xp sp2
 Microsoft SQL Server  2000 - 8.00.760 
 jboss-messaging-1.0.1.CR3 and it works fine for us.

now the questions:

1.
we run jboss-4.0.4.GA (install: jboss-4.0.4.GA-Patch1-installer.jar default) 
under jdk1.5.0_07 (jdk-1_5_0_07-windows-i586-p.exe; build 1.5.0._07-b03) 
is this the right jdk?

2.
is it a good idea to use jboss-messaging-1.0.1.CR3 in a production environment?

3.
what content will have the destinations-service.xml in a production environment?

4.
when will the first jboss-messaging-x.y production release be available?

5.
some benefit: following, is my mssql-persistence-service.xml; all tests 
passed :-)
please check the file and reply when there are things wrong!


?xml version=1.0 encoding=UTF-8?



   mbean code=org.jboss.messaging.core.plugin.JDBCPersistenceManager
  name=jboss.messaging:service=PersistenceManager
  xmbean-dd=xmdesc/JDBCPersistenceManager-xmbean.xml
  jboss.jca:service=DataSourceBinding,name=LPDS
  depends 
optional-attribute-name=TransactionManagerjboss:service=TransactionManager
  depends 
optional-attribute-name=ChannelMapperjboss.messaging:service=ChannelMapper
  java:/LPDS
  true
  true
  ![CDATA[
CREATE_MESSAGE_REF=CREATE TABLE JMS_MESSAGE_REFERENCE (CHANNELID BIGINT, 
MESSAGEID BIGINT, TRANSACTIONID BIGINT, STATE CHAR(1), ORD BIGINT, 
DELIVERYCOUNT BIGINT, RELIABLE CHAR(1), LOADED CHAR(1), PRIMARY KEY(CHANNELID, 
MESSAGEID))
CREATE_IDX_MESSAGE_REF_TX=CREATE INDEX JMS_MESSAGE_REF_TX ON 
JMS_MESSAGE_REFERENCE (TRANSACTIONID)
CREATE_IDX_MESSAGE_REF_ORD=CREATE INDEX JMS_MESSAGE_REF_ORD ON 
JMS_MESSAGE_REFERENCE (ORD)
CREATE_IDX_MESSAGE_REF_MESSAGEID=CREATE INDEX JMS_MESSAGE_REF_MESSAGEID ON 
JMS_MESSAGE_REFERENCE (MESSAGEID)
CREATE_IDX_MESSAGE_REF_LOADED=CREATE INDEX JMS_MESSAGE_REF_LOADED ON 
JMS_MESSAGE_REFERENCE (LOADED)
CREATE_IDX_MESSAGE_REF_RELIABLE=CREATE INDEX JMS_MESSAGE_REF_RELIABLE ON 
JMS_MESSAGE_REFERENCE (RELIABLE)
INSERT_MESSAGE_REF=INSERT INTO JMS_MESSAGE_REFERENCE (CHANNELID, MESSAGEID, 
TRANSACTIONID, STATE, ORD, DELIVERYCOUNT, RELIABLE, LOADED) VALUES (?, ?, ?, ?, 
?, ?, ?, ?)
DELETE_MESSAGE_REF=DELETE FROM JMS_MESSAGE_REFERENCE WHERE MESSAGEID=? AND 
CHANNELID=? AND STATE='C'
UPDATE_MESSAGE_REF=UPDATE JMS_MESSAGE_REFERENCE SET TRANSACTIONID=?, STATE='-' 
WHERE MESSAGEID=? AND CHANNELID=? AND STATE='C'
UPDATE_MESSAGE_REF_NOT_LOADED=UPDATE JMS_MESSAGE_REFERENCE SET LOADED='N' WHERE 
MESSAGEID=? AND CHANNELID=?
COMMIT_MESSAGE_REF1=UPDATE JMS_MESSAGE_REFERENCE SET STATE='C', TRANSACTIONID = 
NULL WHERE TRANSACTIONID=? AND STATE='+'
COMMIT_MESSAGE_REF2=DELETE FROM JMS_MESSAGE_REFERENCE WHERE TRANSACTIONID=? AND 
STATE='-'
ROLLBACK_MESSAGE_REF1=DELETE FROM JMS_MESSAGE_REFERENCE WHERE TRANSACTIONID=? 
AND STATE='+'
ROLLBACK_MESSAGE_REF2=UPDATE JMS_MESSAGE_REFERENCE SET STATE='C', TRANSACTIONID 
= NULL WHERE TRANSACTIONID=? AND STATE='-'
LOAD_REF_INFO=SELECT MESSAGEID, ORD, DELIVERYCOUNT FROM JMS_MESSAGE_REFERENCE 
WHERE CHANNELID=? AND STATE  '+' AND LOADED = 'N' AND ORD BETWEEN ? AND ? 
ORDER BY ORD
SELECT_COUNT_REFS=SELECT COUNT(MESSAGEID) FROM JMS_MESSAGE_REFERENCE WHERE 
CHANNELID=? AND STATE  '+' AND LOADED='N'
UPDATE_RELIABLE_REFS=UPDATE JMS_MESSAGE_REFERENCE SET LOADED='Y' WHERE ORD 
BETWEEN ? AND ? AND CHANNELID=? AND RELIABLE='Y' AND STATE  '+'
DELETE_CHANNEL_MESSAGE_REFS=DELETE FROM JMS_MESSAGE_REFERENCE WHERE CHANNELID=?
REMOVE_ALL_NONRELIABLE_REFS=DELETE FROM JMS_MESSAGE_REFERENCE WHERE RELIABLE='N'
UPDATE_ALL_RELIABLE_REFS=UPDATE JMS_MESSAGE_REFERENCE SET LOADED='N'
SELECT_MIN_ORDERING=SELECT MIN(ORD) FROM JMS_MESSAGE_REFERENCE WHERE 
CHANNELID=? AND STATE  '+' AND LOADED = 'N'
DELETE_NON_DURABLE=DELETE FROM JMS_MESSAGE_REFERENCE WHERE CHANNELID NOT IN 
(SELECT ID FROM JMS_CHANNEL_MAPPING)
CREATE_MESSAGE=CREATE TABLE JMS_MESSAGE (MESSAGEID BIGINT, RELIABLE CHAR(1), 
EXPIRATION BIGINT, TIMESTAMP BIGINT, PRIORITY BIGINT, COREHEADERS IMAGE, 
PAYLOAD IMAGE, CHANNELCOUNT BIGINT, TYPE BIGINT, JMSTYPE NVARCHAR(255), 
CORRELATIONID NVARCHAR(255), CORRELATIONID_BYTES VARBINARY(254), DESTINATION_ID 
BIGINT, REPLYTO_ID BIGINT, JMSPROPERTIES IMAGE, PRIMARY KEY (MESSAGEID))
LOAD_MESSAGES=SELECT MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, 
COREHEADERS, PAYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, 
CORRELATIONID_BYTES, DESTINATION_ID, REPLYTO_ID, JMSPROPERTIES FROM JMS_MESSAGE
INSERT_MESSAGE=INSERT INTO JMS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, 
TIMESTAMP, PRIORITY, COREHEADERS, PAYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, 
CORRELATIONID, CORRELATIONID_BYTES, DESTINATION_ID, REPLYTO_ID, JMSPROPERTIES) 
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
UPDATE_MESSAGE_CHANNEL_COUNT=UPDATE JMS_MESSAGE SET CHANNELCOUNT=? WHERE 
MESSAGEID=?
DELETE_MESSAGE=DELETE FROM JMS_MESSAGE WHERE MESSAGEID=?
MESSAGE_ID_COLUMN=MESSAGEID
REMOVE_ALL_NONRELIABLE_MSGS=DELETE FROM JMS_MESSAGE WHERE RELIABLE='N'
DELETE_ALL_MESSAGES=DELETE FROM JMS_MESSAGE

[jboss-user] [JBoss jBPM] - Re: Anyone running jBPM on Oralce AS 10.1.2 ?

2006-08-20 Thread kukeltje
sorry, we run the DB, not the appserver, but the question about the 'more 
info'still stands

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

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


[jboss-user] [JBoss Seam] - Re: Praise for Seam

2006-08-20 Thread SmokingAPipe
Ah, I'm glad it's there.  I have it working, and it's pretty cool that I can 
put properties for my components right there in seam.properties.

But still, Seam is a fragie framework.  Right now here is some code I'm working 
on.

A simple JavaBean, with event scope:


  | @Name(requestBean)
  | @Scope(ScopeType.SESSION)
  | @Intercept(InterceptionType.ALWAYS)
  | public class RequestBean implements Serializable {
  |   
  | private String message = null;
  | 
  | public void setMessage(String s) { }
  | 
  | public String getMessage() { 
  | logger.info(caling getMessage); return Super message:  + new 
Date(); }
  | 
  | }
  | 

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

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


[jboss-user] [JBoss jBPM] - Re: Migration from Vitria to jBPM

2006-08-20 Thread kukeltje
Bernhard,

pointing in what direction? A tool that can import the vitria xmi file? Or a 
mapping between vitria format and jpdl? 

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

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


[jboss-user] [JBoss Seam] - Re: Architecture Question

2006-08-20 Thread smies
So you are saying that I could use the same Action classes to create a non-web 
application with? I don't really see that. You already add a lot of annotations 
to the Action class to let it communicate with the view, like the @In, @Out, 
@DataModel, @DataModelSelection, etc... 

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

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


[jboss-user] [Beginners Corner] - Re: Composite Primary Key in an EntityBean (CMP) - XDoclet

2006-08-20 Thread bronks
lafr wrote : Add
  |  * @ejb.pk-field
  | to the getters comment of the PK-fields.
  | 
Thanks. I have done this but i am getting the following Deploymenterror:

anonymous wrote : [verifier] EJB spec violation: 
  | Bean   : OrderItem
  | Method : public OrderItemBean$PrimaryKey ejbCreate(Integer, Integer, 
Integer) throws CreateException
  | Section: 10.6.4
  | Warning: The return type of an ejbCreate(...) method must be the entity 
bean's primary key type.

What should i write at primkey-field= ???

I can not find the mistake. Please take a look at my code:

/**
  |  * !-- begin-xdoclet-definition --
  |  * @ejb.bean name=OrderItem 
  |  *  jndi-name=OrderItem
  |  *  type=CMP 
  |  *  primkey-field=ordernumber ?
  |  *  schema=OrderItemSCHEMA 
  |  *  cmp-version=2.x
  |  *
  |  *  @ejb.persistence 
  |  *   table-name=public.orderitems 
  |  * 
  |  * @ejb.finder 
  |  *query=SELECT OBJECT(a) FROM OrderItemSCHEMA as a  
  |  *signature=java.util.Collection findAll()  
  |  *
  |  * @ejb.pk class=OrderItemBean.PrimaryKey
  |  *
  |  *
  |  * @jboss.persistence datasource=java:/jdbc/pgtestdb 
datasource-mapping=PostgreSQL 8.0 table-name=zz create-table=true 
remove-table=false alter-table=false
  |  * !-- end-xdoclet-definition --
  |  * @generated
  |  **/
  | 
  | public abstract class OrderItemBean implements javax.ejb.EntityBean {
  | 
  | /**
  |  * Generated Primary Key Class
  |  * @generated
  |  */
  | public class PrimaryKey implements java.io.Serializable {
  | /**
  |  * @generated
  |  */
  | public java.lang.Integer ordernumber;
  | 
  | /**
  |  * @generated
  |  */
  | public java.lang.Integer orderitemnumber;
  | }
  | 
  | /**
  |  *
  |  * !-- begin-user-doc --
  |  * The  ejbCreate method.
  |  * !-- end-user-doc --
  |  *
  |  * !-- begin-xdoclet-definition -- 
  |  * @ejb.create-method 
  |  * !-- end-xdoclet-definition -- 
  |  * @generated
  |  */
  | public OrderItemBean.PrimaryKey ejbCreate(Integer aOrdernumber, 
  | 
  Integer aOrderitemnumber, 
  | 
  Integer aQuantity)
  | throws javax.ejb.CreateException {
  | 
  | setOrdernumber(aOrdernumber);
  | setOrderitemnumber(aOrderitemnumber);
  | setQuantity(aQuantity);
  | return null;
  | 
  | }
  | 
  | /**
  |  * !-- begin-user-doc --
  |  * The container invokes this method immediately after it calls 
ejbCreate.
  |  * !-- end-user-doc --
  |  * 
  |  * @generated
  |  */
  | public void ejbPostCreate() throws javax.ejb.CreateException {
  | // begin-user-code
  | // end-user-code
  | }
  | 
  | /**
  |  *
  |  *
  |  * !-- begin-user-doc --
  |  * CMP Field ordernumber
  |  *
  |  * Returns the ordernumber
  |  * @return the ordernumber
  |  * 
  |  * !-- end-user-doc --
  |  *
  |  * !-- begin-xdoclet-definition -- 
  |  *
  |  * @ejb.persistent-field 
  |  * @ejb.persistence
  |  *column-name=ordernumber
  |  * jdbc-type=INTEGER
  |  * sql-type=int4
  |  * read-only=false
  |  * @ejb.pk-field 
  |  *
  |  * @ejb.interface-method
  |  * 
  |  * !-- end-xdoclet-definition -- 
  |  * @generated
  |  */
  | public abstract java.lang.Integer getOrdernumber();
  | 
  | /**
  |  * !-- begin-user-doc --
  |  * Sets the ordernumber
  |  * 
  |  * @param java.lang.Integer the new ordernumber value
  |  * !-- end-user-doc --
  |  * 
  |  * !-- begin-xdoclet-definition -- 
  |  * @ejb.interface-method
  |  * !-- end-xdoclet-definition --
  |  * @generated 
  |  */
  | public abstract void setOrdernumber(java.lang.Integer ordernumber);
  | 
  | /**
  |  *
  |  *
  |  * !-- begin-user-doc --
  |  * CMP Field orderitemnumber
  |  *
  |  * Returns the orderitemnumber
  |  * @return the orderitemnumber
  |  * 
  |  * !-- end-user-doc --
  |  *
  |  * !-- begin-xdoclet-definition -- 
  |  *
  |  * @ejb.persistent-field 
  |  * @ejb.persistence
  |  *column-name=orderitemnumber
  |  * jdbc-type=INTEGER
  |  * sql-type=int4
  |  * read-only=false
  |  * @ejb.pk-field 
  |  *
  |  * @ejb.interface-method
  |  * 
  |  * !-- end-xdoclet-definition -- 
  |  * @generated
  |  */
  | public abstract java.lang.Integer getOrderitemnumber();
  | 
  | /**
  |  * !-- begin-user-doc --
  |  * Sets the orderitemnumber
  |  * 
  |  

[jboss-user] [Installation, Configuration Deployment] - jboss cannot find de data source

2006-08-20 Thread fernandogamba
hi, I follow the steps described in chapter 8 in the jbpm starting guide, i 
create the db, i ran the scripts in order to create the tables , i gave 
permissions  to localhost (trust) in the pg_hba.conf file, i made the changes 
specified in the server files, i create the jbpm-ds.xml file with the 
specification required, but when i launch the jboss, it lauch a warning jbpm 
data source not found
i work with linux debian kernel 2.6.16
postgresql 8.1.4 (the jar file is for 8.0.3 but i check the docs and is the 
same driver for 8.1.4)
jboss 4.0

thanks for any suggestions


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

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


[jboss-user] [J2EE Design Patterns] - JBoss Network Overhead

2006-08-20 Thread hyperbp
How many bits of network overhead does JBoss add?  Anyone know anything about 
how many bits of network overhead JMS adds?  Thanks.

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

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


[jboss-user] [JBoss Seam] - CRUD -- Facelets installation guide ( todo list for people@

2006-08-20 Thread nicola9000
CRUD -- Facelets installation guide ( todo list for [EMAIL PROTECTED] to fix 
wizard :-) )

hi mate

1. Like always remember to change JBOSS.HOME in build.properties

2.  build.xml
add this !-- EAR --



and this 
target name=ear  
   

3. Add this include  to enable auto.interception
fileset id=ejb3.root ...


4. file seam.properties delete all and leave only this 1
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local

5. web.xml
you can use booking example file, exactly like it is

6. component.xml. I have it so, but i think is not so important


!-- JNDI name pattern for JBoss EJB 3.0 --
#{ejbName}/local



7. faces-confilg.xml
Important !!
!-- Facelets support --


view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
locale-config
  default-localeen/default-locale
/locale-config



phase-listenerorg.jboss.seam.jsf.SeamPhaseListener/phase-listener


8. Add locale files message_XX in WEB-INF/classes

9. persistence.xml
Modify it with your database ( and dialect )
change it so

delete this line
!--property name=jboss.entity.manager.factory.jndi.name 
value=java:/EntityManager/--


10. ejb-jar
ejb-jar
   assembly-descriptor
  interceptor-binding
 ejb-name*/ejb-name
 
interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class
  /interceptor-binding
   /assembly-descriptor
/ejb-jar

11.jboss-abb
jboss-app
  loader-repository 
  seam.jboss.org:loader=xage
  /loader-repository 
/jboss-app 

12. application.xml. Add this module

jboss-seam.jar


13. WEB-INF/lib : add these libraries
el-api, el-ri,jboss-seam-debug, jboss-seam-ui, jsf-facelet

14. Project path-lib add only these libs : 
hibernate-all, jboss-ejb3-all, jboss-seam, myface-api.jar

USE ALL BOOKING-EXAMPLE VERSION LIBS

15.
replace in all java.files:
javax.ejb.Interceptors -- javax.interceptor.Interceptors

16. Every where there is a ResourceBundle declaration change it so
  @In(create=true)
  private transient ResourceBundle resourceBundle;

17. And fix the EM declarations so
@PersistenceContext
private EntityManager entityManager;

18. Now you can //comment some 1-N getters to compile the project

19. remember you can use import.sql to  populate 1st time your db with 
create-drop option

I hope i did not forget many things
Good Work , and have a nice sunday :-)

Ciao Nicola




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

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


[jboss-user] [JBoss Seam] - Re: CRUD -- Facelets installation guide ( todo list for peo

2006-08-20 Thread nicola9000
CORRIGE

1. Like always remember to change JBOSS.home in build.properties

2.  build.xml
add this [!-- EAR --]
[fileset id=seam.lib dir=lib]
[include name=jboss-seam.jar/]
[/fileset]
and this 
[target name=ear  
   [zipfileset refid=seam.lib/]

3. Add this include  to enable auto.interception
[fileset id=ejb3.root ...
[include name=META-INF/ejb-jar.xml/]

4. file seam.properties delete all and leave only this 1
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local

5. web.xml
you can use booking example file, exactly like it is

6. component.xml. I have it so, but i think is not so important
[components]
[component name=org.jboss.seam.core.init]
[!-- JNDI name pattern for JBoss EJB 3.0 --]
[property name=jndiPattern]#{ejbName}/local[/property]
[/component]
[/components]

7. faces-confilg.xml
Important !!
[!-- Facelets support --]
[application]

[view-handler]org.jboss.seam.ui.facelet.SeamFaceletViewHandler[/view-handler]
[locale-config]
  [default-locale]en[/default-locale]
[/locale-config]
[/application]

[lifecycle]
[phase-listener]org.jboss.seam.jsf.SeamPhaseListener[/phase-listener]
[/lifecycle]

8. Add locale files message_XX in WEB-INF/classes

9. persistence.xml
Modify it with your database ( and dialect )
change it so
[property name=hibernate.hbm2ddl.auto value=update/]
delete this line
[!--property name=jboss.entity.manager.factory.jndi.name 
value=java:/EntityManager/--]


10. ejb-jar
[ejb-jar]
   [assembly-descriptor]
  [interceptor-binding]
 [ejb-name]*[/ejb-name]
 
[interceptor-class]org.jboss.seam.ejb.SeamInterceptor[/interceptor-class]
  [/interceptor-binding]
   [/assembly-descriptor]
[/ejb-jar]

11.jboss-abb
[jboss-app]
  [loader-repository] 
  seam.jboss.org:loader=xage
  [/loader-repository] 
[/jboss-app] 

12. application.xml. Add this module
[module]
[java]jboss-seam.jar[/java]
[/module]

13. WEB-INF/lib : add these libraries
el-api, el-ri,jboss-seam-debug, jboss-seam-ui, jsf-facelet

14. Project path-lib add only these libs : 
hibernate-all, jboss-ejb3-all, jboss-seam, myface-api.jar

USE ALL BOOKING-EXAMPLE VERSION LIBS

15.
replace in all java.files:
javax.ejb.Interceptors --] javax.interceptor.Interceptors

16. Every where there is a ResourceBundle declaration change it so
  @In(create=true)
  private transient ResourceBundle resourceBundle;

17. And fix the EM declarations so
@PersistenceContext
private EntityManager entityManager;

18. Now you can //comment some 1-N getters to compile the project

19. remember you can use import.sql to  populate 1st time your db with 
create-drop option

I hope i did not forget many things
Good Work , and have a nice sunday :-)

Ciao Nicola




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

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


[jboss-user] [Clustering/JBoss] - LoadBalancing application wrapped in JMX

2006-08-20 Thread garitt
Hi All,

I have wrapped an application using JMX and deployed in JBOSS as an MBean 
service.

I am using JBOSS clustering with difference instances running on different 
systems.

On deployment, the application is now available on all the running nodes which 
indicates that clustered environment is correctly setup.

An external client, is sending messages to this wrapped application by 
providing a particular IP address and port number.

As is obvious for Load Balancing, I am trying to ensure that if the number of 
message is more than X per sec, then the additional messages must go to the 
next node.

Can anyone suggest how can I achieve this ?

Regards,
Arijit

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

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


[jboss-user] [JBoss jBPM] - Re: Switching the Database Backend

2006-08-20 Thread kukeltje
hypersonic is on if it is configured in the jboss config. It's great that you 
modified the files, but if you do not post what their content is, we can NEVER 
see what might be wrong.

Also , how did you deploy jBPM, is the hibernate.cfg you think you use actually 
used? etc..etc...etc.. there are lots of things you can and should try yourself 
which we cannot do for you. So please post more info 

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

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


[jboss-user] [EJB/JBoss] - error in deploying EJBS/jboss4.0.3sp1 / log4j? xerces?

2006-08-20 Thread MmarcoM
hi all,
 i  m really lost in this problem... :(
i have been deploying EJBs which inside have a log4j.properties file

i have been receiving following error
ERROR: invalid console appender config detected, console stream is looping

by browsing web, i found that as a solution ((since also jbos suses log4j) i 
needed to remove my log4j.properties from my jars
I did it, and redeployed EJBs, b ut after doiing that i got followng exception 
while deploying EJBs..


  | 2006-08-20 17:09:15,656 DEBUG [org.jboss.ejb.EntityContainer] Starting 
failed 
jboss.j2ee:jndiName=commons/ejb/partners/contact/ContactLocalHome,service=EJB
  | org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - 
nested throwable: (java.lang.reflect.InvocationTargetException)
  | at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.init(JDBCCreateBeanClassInstanceCommand.java:56)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:124)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:381)
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
  | at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor4.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:428)
  | at sun.reflect.GeneratedMethodAccessor6.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy56.start(Unknown Source)
  | at org.jboss.ejb.EjbModule.startService(EjbModule.java:395)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor4.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:428)
  | at sun.reflect.GeneratedMethodAccessor6.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 

[jboss-user] [JBoss jBPM] - Re: Switching the Database Backend

2006-08-20 Thread xiaolong
Thx for answering;

I just found : http://www.jboss.com/index.html?module=bbop=viewtopict=86232

Going to invest that way

I give myself till tommorrow to find how to make it works; else I'll probably 
post one more time here ^^

Regards

Stephane

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

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


[jboss-user] [EJB/JBoss] - Client stubs

2006-08-20 Thread bluetrade
Hi, 
I have a class annotated with @Remote, now I wanted to build the client stubs 
so that I can connect to the server, but the rmic tool doesn't seem to 
recognize the @Remote, it tells me that remote isn't implemented... is there a 
new way to generate stubs for the client side? 

Thanks
Joey 

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

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


[jboss-user] [JBoss Seam] - Stubs for Seam

2006-08-20 Thread bluetrade
Hi, 
I have a class annotated with @Remote, now I wanted to build the client stubs 
so that I can connect to the server, but the rmic tool doesn't seem to 
recognize the @Remote, it tells me that remote isn't implemented... is there a 
new way to generate stubs for the client side? 

Another question: is there any info out there how to use Seam for Web Services?

Thanks
Joey 

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

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


[jboss-user] [JBoss Seam] - Re: RMI and Seam

2006-08-20 Thread bluetrade
Hi, 
sorry for the reply... was vacation-time :)
I have some classes that I have exposed vie @Remote. However, I can access them 
from my development computer because the client is on the same machine as the 
server ie they both can deal with EJB annotations. Now, I want to move the 
client to a different machine, where I don't have a full EJB container or the 
EJB libraries, so how can I access my @Remote classes from a client there? I 
don't want to supply the client with the real Entities, they contain too much 
internal information, I mean the client doesn't have the EJB stuff anyways - is 
there an elegant way of solving this - or do I have to write all classes by 
hand w/o annotations? 

THanks, 
Joey

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

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


[jboss-user] [JBoss jBPM] - Re: Switching the Database Backend

2006-08-20 Thread kukeltje
http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmDbCompatibility

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

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


[jboss-user] [Clustering/JBoss] - Re: LoadBalancing application wrapped in JMX

2006-08-20 Thread [EMAIL PROTECTED]
Probably the best approach is to create a ProxyFactoryHA mbean that will create 
an HA proxy for your service and bind it in JNDI.  The HA proxy will include 
load balancing behavior, much like a proxy for a clustered EJB does.  Your 
external client would then download the proxy from JNDI.

The forum thread at 
http://www.jboss.com/index.html?module=bbop=viewtopict=77986[/url] gets into 
this is some detail, including an as yet unresolved bug the user found 
([url]http://jira.jboss.com/jira/browse/JBAS-3194).  He also describes his 
workaround for the bug.

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - jboss IDE 2.0.0- server doesn't take my login - config

2006-08-20 Thread bentins
I configured my jboss 4.0.3Sp1 server to run in the ide. This server runs 
perfectly from command line. However when I run it from the server and deploy 
my application it fails on DB connectivity. My datasource connects using a 
login configuration in the conf directory's login-config.xml which holds my 
user and encrypted password. The server is unable to connect to the DB.

Is there a way to config this, have I configured it wrong, or is this some knd 
of problem with the IDE.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Slight problem still regarding the fix for bug JBAS-1489

2006-08-20 Thread jokum
Any thought on this? I'm currently facing the exact same problem. (Windows XP)

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Http Server start error

2006-08-20 Thread cimatch
I solved this event to the self. 

I thought that there was a problem in the version of jmx.jar of JBoss4.0.1sp1. 
Therefore, when exchanging for JBoss-jmx.jar offered with JBoss4.0.3sp1, and 
testing, the phenomenon was not generated. 

It is everyone's favor. 


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

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


[jboss-user] [JBoss Messaging] - Re: Invalid column index problem

2006-08-20 Thread davidrh
Thanks Ovidiu. We'd been having other problems from CR3 to CR4 and so went back 
to square one with the installation guide to make sure that we hadn't missed 
anything in the automated build that we do.  We did change from using the 
standalone target to the install target, so that's where the difference came 
from. I'll change back to standalone. Sorry for the confusion.

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

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


[jboss-user] [JBoss Messaging] - Re: Is Messaging Performance Framework available for other J

2006-08-20 Thread igarashit
Thanks.
Can I run it only putting client runtime into somewhere? or I should write 
Executor code for other JMS?(ActiveMQ, WebSphereMQ, and etc..)

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

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


[jboss-user] [JBossCache] - how to support treecache transaction in CMT

2006-08-20 Thread confuz
Dear All,
  I used  TreeCache 1.4.0.GA and Jboss 4.0. currently need to support cache 
transaction in CMT. in the session bean method, the db operation will be 
rollbacked while cache operation won't when exception is threw.

how to support cache transaction in cmt?

Thanks for any help.

code sample in session bean

  | try{
  | dboperation
  | cacheoperation
  | 
  | }catch(Exception e){
  | sessionContext.setRollbackOnly();
  | CCException ee = handleSQLException(e) ;
  | throw ee;
  | } finally {
  | closeConnection(this.getClass().getName(), dbConn);
  | }
  | 

configuration

  | server
  | 
  | classpath codebase=./lib archives=jboss-cache.jar, jgroups.jar/
  | 
  | 
  | !-- 
 --
  | !-- Defines TreeCache configuration
  --
  | !-- 
 --
  | 
  | mbean code=org.jboss.cache.TreeCache
  | name=jboss.cache:service=testTreeCache
  | 
  | dependsjboss:service=Naming/depends
  | dependsjboss:service=TransactionManager/depends
  | attribute name=UseReplQueuefalse/attribute
  | 
  | attribute 
name=TransactionManagerLookupClassorg.jboss.cache.GenericTransactionManagerLookup/attribute
  | 
  | attribute name=IsolationLevelREPEATABLE_READ/attribute
  | 
  | attribute name=CacheModeLOCAL/attribute
  | 
  | attribute name=ClusterNameTreeCache-Cluster/attribute
  | 
  | attribute name=ClusterConfig
  | config
  | UDP mcast_addr=228.1.2.5 mcast_port=45577
  | ip_ttl=64 ip_mcast=true
  | mcast_send_buf_size=15 mcast_recv_buf_size=8
  | ucast_send_buf_size=15 ucast_recv_buf_size=8
  | loopback=false/
  | PING timeout=2000 num_initial_members=3
  | up_thread=false down_thread=false/
  | MERGE2 min_interval=1 max_interval=2/
  | FD shun=true up_thread=true down_thread=true/
  | VERIFY_SUSPECT timeout=1500
  | up_thread=false down_thread=false/
  | pbcast.NAKACK gc_lag=50 
retransmit_timeout=600,1200,2400,4800
  | up_thread=false down_thread=false/
  | pbcast.STABLE desired_avg_gossip=2
  | up_thread=false down_thread=false/
  | UNICAST timeout=600,1200,2400 window_size=100 
min_threshold=10
  | down_thread=false/
  | FRAG frag_size=8192
  | down_thread=false up_thread=false/
  | pbcast.GMS join_timeout=5000 join_retry_timeout=2000
  | shun=true print_local_addr=true/
  | pbcast.STATE_TRANSFER up_thread=false 
down_thread=false/
  | /config
  | /attribute
  | 
  | attribute name=InitialStateRetrievalTimeout2/attribute
  | 
  | attribute name=SyncReplTimeout15000/attribute
  | 
  | attribute name=LockAcquisitionTimeout1/attribute
  | 
  | 
  | attribute 
name=EvictionPolicyClassorg.jboss.cache.eviction.LRUPolicy/attribute
  | attribute name=EvictionPolicyConfig
  |config
  |   attribute name=wakeUpIntervalSeconds3/attribute
  |   !-- Cache wide default --
  |   region name=/_default_
  |   attribute name=maxNodes5000/attribute
  |   attribute name=timeToLiveSeconds1000/attribute
  |   /region
  |   region name=/org/jboss/data
  |   attribute name=maxNodes5000/attribute
  |   attribute name=timeToLiveSeconds1000/attribute
  |   /region
  |   region name=/test
  |   attribute name=maxNodes500/attribute
  |   attribute name=timeToLiveSeconds0/attribute
  |   attrubute name=maxAgeSeconds0/attrubute
  |   /region
  |/config
  | /attribute
  | /mbean
  | 
  | 
  | /server
  | 

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

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


[jboss-user] [JBossCache] - Re: how to support treecache transaction in CMT

2006-08-20 Thread [EMAIL PROTECTED]
That looks like it should work.  The cache should be participating in the tx as 
a Synchronization, and when the tx rolls back, the cache modifications should 
roll back.

What specifically do you do in cacheoperation?

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

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


[jboss-user] [JBoss Seam] - Re: Architecture Question

2006-08-20 Thread [EMAIL PROTECTED]
smies wrote : So you are saying that I could use the same Action classes to 
create a non-web application with? I don't really see that. You already add a 
lot of annotations to the Action class to let it communicate with the view, 
like the @In, @Out, @DataModel, @DataModelSelection, etc... 

Yes, you can create a non-web application with those actions.  I haven't seen 
it yet, but I'm sure that someone will come up with a pure client/server 
ViewHandler suitable for Swing apps.  The real difference would be that 
rendering happens on the client instead of the server, but the response from 
the action would work just fine as-is.

Notice that the JSF/Seam scopes are not even tied to servlet/web technology.

None of those annotations have anything to do with a particular view 
technology.  They are about managing state that any view is free to access.  

The question is, why would you want to hide this state behind another layer?  
There were good reasons for it in J2EE 1.4, but with EJB3/Seam those reasons go 
away.

Stan

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

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


[jboss-user] [JBossCache] - Re: how to support treecache transaction in CMT

2006-08-20 Thread confuz
[EMAIL PROTECTED] wrote : That looks like it should work.  The cache should 
be participating in the tx as a Synchronization, and when the tx rolls back, 
the cache modifications should roll back.
  | 
  | What specifically do you do in cacheoperation?

the session bean method will invoke this method. forgive for the disorder code.

  | 
  | public String checkAccess(String key1) throws Exception {
  | String key = key1.substring(0,2);
  | String value = key1;
  | String command = key1.substring(2,5);
  | TreeCache cache = CacheFactory.getCache();
  | 
  | 
  | if(add.equals(command)){
  | Address add = 
((Person)cache.get(/test/p1,p1)).getAddress();
  | add.setCity(value); 
  | cache.put(/test/a1,a1 ,add);
  | 
  | if(pp.equals(key)){
  | 
System.out.println(Gettbefore:a1= + cache.get(/test/a1,a1));
  | throw new Exception(throw exception 
for rollback);
  | }
  | 
  | }
  | else{
  | boolean inCache = cache.exists(/test/ + 
key,key);
  | boolean inLoader = 
false;//cache.getCacheLoader().exists(Fqn.fromString(/test/ + key));
  | System.out.println(Exists in cache: + inCache 
+  exists in loader: + inLoader);
  | Object o = (cache.get(/test/ + key,key));
  | if(o != null)
  | value = o.toString();
  | System.out.println(Get: + key + = + value);
  | }
  |  
  | 
  | System.out.println(Gettafter:a1= + 
cache.get(/test/a1,a1));
  | 
  | return value;
  | }
  | 
CacheFactory.getCache()

  | 
  | public static synchronized TreeCache getCache(){
  | if(CACHE != null) return CACHE;
  | initCache();
  | return CACHE;
  | }
  | 
  | 
  | private static void initCache(){
  | try{
  | CACHE = new TreeCache();
  | PropertyConfigurator pc = new PropertyConfigurator();
  | pc.configure(CACHE, tree-service.xml);
  | 
  | CACHE.startService();
  | 
  | Person p1 = new Person();
  | p1.setName(P1);
  | Person p2 = new Person();
  | p2.setName(P2);
  | Address add = new Address();
  | add.setCity(SZ);
  | add.setStreet(NR);
  | add.setZip(3009884);
  | p1.setAddress(add);
  | p2.setAddress(add);
  | 
  | CACHE.put(/test/p1,p1, p1);
  | CACHE.put(/test/p2, p2, p2);
  | CACHE.put(/test/a1, a1,add);
  | }
  | catch(Exception e){
  | e.printStackTrace();
  | } 
  | }
  | 

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Using JNDIProviderAdapter from client (MDB) code?

2006-08-20 Thread ewestland
Thanks for the tip...

I am pretty wiped out now, so forgive me, but I don't quite get your solution.  

My objective is indeed to use a -ds.xml file (JCA) connection to your provider 
outbound, but my initial problem was getting access to the destinations on the 
remote JMS provider. My JBoss-specific (hokey?) solution does that.

I like that your solution looks portable, but it appears to be missing some of 
the extra sauce. My issue is that I am unclear how to lookup the remote 
destination (i.e. queue/test) etc; assuming remote provider defined as 
RemoteJmsXA (i.e. ./deploy/jms/remotejmsxa-ds.xml).

If you could extend your example a bit to include creating a MessageProducer 
to a remote queue it would be helpful.

Standard example client code:

  | InitialContext ctx = new InitialContext();
  | Destination topic = (Destination) ctx.lookup(queue/test);
  | ConnectionFactory factory = 
(ConnectionFactory)ctx.lookup(UIL2ConnectionFactory);
  | Connection connection = factory.createConnection();
  | Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
  | MessageProducer publisher = session.createProducer(topic);
  | ...
  | 

Cheers,
Erik

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

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


[jboss-user] [JBossCache] - Re: JBossCacheIDE 1.0 Released

2006-08-20 Thread [EMAIL PROTECTED]
OK, my bad! I forgot the doc that you sent before. :-)

Here are some of my additional comments:

1. If LOCAL mode is experimental only, then why don't we provide the user 
capability to add/remove the nodes? Is it technical or userability issue?

2. For access to remote cache instance, if we provide JMX access directly, will 
that be more difficult than remote jndi (of whcih needs another mbean 
definition)?

2. I have managed to get the TreeCache to hook up the the AS and display the 
contents. Pretty cool. But I still have had problem with PojoCache.

Basically, I can see the tree nodes on the left pane. But the graph view is all 
blank. I have attached the appropriate jar file as needed. I can also see the 
individual node value from the jmx-console, actually.

Anything that I missed here? I am using a test case from the http clustering 
unit test (http-field.war).

Thanks,

-Ben

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

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


[jboss-user] [JBoss Seam] - Re: why booking example does not work when i try to change t

2006-08-20 Thread gringalet
error list is the belows:


type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

javax.servlet.ServletException: Error calling action method of component with 
id _id16:_id32
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)

org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

javax.faces.FacesException: Error calling action method of component with id 
_id16:_id32

org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)

org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)

org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)

org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.17 logs.



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

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


[jboss-user] [JBossCache] - Re: Hibernate/Cache conceptual mismatch

2006-08-20 Thread [EMAIL PROTECTED]
I think what you describe is a mismatch indeed. From Cache point of view, when 
you deposit any data, if there is concurrency, then some kind of lokc is 
necessary. So I think what you are looking for is lock level that can be 
changed per API call. Something like Brian suggested to put into Option.

However, it can be tricky though. Just imagine that I have /a/b, and /a/c. If 
node b and c have different lock levels during a tx, then there can be data 
integrity issue.

Steve, is this mismatch causing deadlock or performance slowdown?


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

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


[jboss-user] [Remoting] - Re: question about connector.xml

2006-08-20 Thread cnbs
Thank you.
It works )

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

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


[jboss-user] [JBossWS] - Re: JBossWS Web Service using ArrayList

2006-08-20 Thread rksangubotla
stevenh wrote : Hi Ravi, 
  |What heiko is trying to say is to use and array rather than the array 
list.. ie you will have to invoke the toArray method on your array list. 
  | 
  | ie 
  | public result[] getResults()   
  | 
  | rather than 
  | 
  | public Collection getResults()
  | 
  | Steve. 
  | 

Thanks Steven for the reply.I was successfull in working on the same. But is it 
the only way to develope web services using collections ? What if I try with 
document style instead of rpc-style ?

Regards
ravi.

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

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


[jboss-user] [JBossWS] - Re: JBossWS Web Service using ArrayList

2006-08-20 Thread stevenh
Hi Ravi, 
   Its not really a limitation on the soap message rather than the limitations 
on jax-rpc.  The topic has been covered quite extensivly,  see:

http://www.jboss.com/index.html?module=bbop=viewtopict=84998

Which is where i probably should have pointed you in the first place, rather 
than adding info to a repeated topic. 

Steve. 

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

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


[jboss-user] [JBoss Seam] - Re: components.xml suggestion

2006-08-20 Thread zzzz8
I have some questions about components.xml, too.

In terms of managed beans and faces-config.xml, I would like to do something 
similar in components.xml in terms of reusing Seam components.  I understand 
that Seam offers annotations to do this: @Role and @Roles.  However, I'd like 
to set different properties for each role.  Do I do this in the components.xml 
file?  What if I wanted to initialize properties with Lists and Maps?  TIA.

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

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