[JBoss-user] [JBoss jBPM] - Webservice in front of the BPEL process realized by a sessio
Hello everyone, I've some questions concerning the "Hello World Example" included in the BPEL extension. In this example we have one webservice , which is realized by the web archive "hello-web.war". This webservice is the frontend to the bpel process "hello.bpel". By calling the webservice at http://localhost:8080/hello/caller you can start the bpel process. There is a queue involved in the communication between the webservice and the BPEL engine. My questions are: 1) Is it possible to replace hello-web.war by a session bean which realizes a webservice. 2) If yes, how to establish the communication between the session bean and the BPEL engine? Is there an example or a description how to do this? 3) What are the reasons for the queue ? Is it possible to have a webservice in front of the BPEL engine without a queue? Many thanks in advance Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950243#3950243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950243 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Transient members
Hello Milan, thank you for your hint. I switched on the EJB3EntityTreeCache and this cache works. One can check this via jmx-console -> service=EJB3EntityTreeCache -> java.lang.String printDetails() invoke But here is a catch in it! Only the data persistent via the hibernate mapping is cached. So this does not have the desired effect. I'm trying now the following: I create a reference from the JNDI to this bean. If I access the field transientText in the Node-bean, then I get the originally value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929424#3929424 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929424 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Transient members
Although the data is not persistent via the EJB3 persistence mechanism, I would like to keep some data in the entity beans. I will take a closer look at the the jboss-entity-cache! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927572#3927572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927572 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Transient members
Hello Milan, thanks for your answer. Do you know wether the entity bean is always fetched from the database or is it possible that the entity bean exist as an object in the java virtual machine? Of course changes to the persistent fields must be in sync with the database. Best Regards Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927556#3927556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927556 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Transient members
Hello, I have a question concerning transient members. In the follwoing code there is an Entity Bean: package entities; | | import java.io.Serializable; | import java.util.*; | import javax.persistence.*; | | @Entity | public class Node implements Serializable { | | private int id; | private String persistentText; | private String transientText; | | public Node(){} | | public Node(int id) | { | setId(id); | } | | @Id | public int getId() { | return id; | } | | public void setId(int id) { | this.id = id; | } | | public String getPersistentText() { | return persistentText; | } | | public void setPersistentText(String persistentText) { | this.persistentText = persistentText; | } | | @Transient | public String getTransientText() { | return transientText; | } | | public void setTransientText(String transientText) { | this.transientText = transientText; | } | } a Session Bean: package server.sessions; | | import javax.ejb.*; | import javax.persistence.*; | import org.hibernate.*; | import entities.*; | | import java.util.*; | | @Stateful | public class ClientSessionBean implements ClientSessionLocal, ClientSessionRemote{ | | @PersistenceContext private EntityManager manager; | | List nodes; | Node node; | | public void createNode() | { | node = new Node(1); | node.setTransientText("transient"); | node.setPersistentText("persistent"); | manager.persist(node); | nodes = manager.createQuery("from Node where id=1").getResultList(); | node = nodes.get(0); | System.out.println("createNode persistentText: "+node.getPersistentText()); | System.out.println("createNode transientText: "+node.getTransientText()); | } | | public void showNode() | { | nodes = manager.createQuery("from Node where id=1").getResultList(); | node = nodes.get(0); | System.out.println("showNode persistentText: "+node.getPersistentText()); | System.out.println("showNode transientText: "+node.getTransientText()); | } | | } | and a client, which calls the two methods createNode() and showNode(): package client; | | import javax.naming.InitialContext; | import java.util.*; | import entities.*; | import server.sessions.*; | | public class Client { | | static ClientSession clientSession; | | public static void main(String[] args) { | try { | Hashtable env = new Hashtable(); | env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); | env.put("java.naming.provider.url", "localhost"); | InitialContext ctx = new InitialContext(env); | clientSession = (ClientSession)ctx.lookup("ClientSessionBean/remote"); | clientSession.createNode(); | clientSession.showNode(); | } | catch (Exception e) | { | System.out.println(e); | } | } | } I get the following answer: .. 10:59:02,531 INFO [STDOUT] createNode persistentText: persistent 10:59:02,531 INFO [STDOUT] createNode transientText: transient 10:59:02,562 INFO [STDOUT] showNode persistentText: persistent 10:59:02,562 INFO [STDOUT] showNode transientText: null .. Is the last line correct? I've exptected the last line: 10:59:02,562 INFO [STDOUT] showNode transientText: transient Thanks for your efforts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927404#3927404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927404 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Data modeling and persistence with EJB3
Hello everybody, I would like to migrate an application to EJB3. Let me give a short explanation of the old application: The application governs data in n table t1, .. , tn, where n is about 500. The data in these tables add up up to 500MB. Let me call this data the mass data. For each table tj (0http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926905#3926905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926905 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - mapping with primitive types
I have question concerning mappings in EJB3. I found examples with mappings, where the values are entity beans. I would like to define a mapping with primitive types like java.lang.String. My example is the following: package bean; import java.io.Serializable; import java.util.Map; import javax.persistence.*; import org.hibernate.annotations.CollectionOfElements; @Entity public class Test implements Serializable { private int id; private Map texts; @Id @GeneratedValue(strategy=GenerationType.AUTO) public int getId() { return id; } public void setId(int id) { this.id = id; } @CollectionOfElements @MapKey public Map getTexts() { return texts; } public void setTexts(Map texts) { this.texts = texts; } } and I use jboss-4.0.4RC1 with the "all" configuration. While deploying I get with the mentioned settings the following errors: 19:17:28,812 WARN [ServiceController] Problem starting service persistence.units:unitName=tempdb java.lang.reflect.InvocationTargetException 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) Caused by: org.hibernate.AnnotationException: Associated class not found: java.lang.String at org.hibernate.cfg.annotations.MapBinder.bindKeyFromAssociationTable(MapBinder.java:65) at org.hibernate.cfg.annotations.MapBinder.access$000(MapBinder.java:32) at org.hibernate.cfg.annotations.MapBinder$1.secondPass(MapBinder.java:55) at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35) at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:331) at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1296) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:629) ... Please could you tell me how to define a mapping with Strings as values? Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925413#3925413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925413 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user