[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-19 Thread Marco Rietveld
Marco Rietveld [https://community.jboss.org/people/marco.rietveld] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828773#828773

--
Pure local transactions and local transactions *with spring* are unfortunately 
very different things. Both are true. 

5.4.x supports local transactions +using a spring transaction manager+, but 
does not support pure local transactions with a normal transaction manager.
--

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

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

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

[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-19 Thread Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created 
the discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828775#828775

--
Hi Marco,

Oh I just knew about that. 

Ok thank you very much.


Regards,
Thomas Setiabudi
--

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

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

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

[jboss-user] [JBoss Remoting] - Cannot set up serverBindAddress for secondarySocket in bisocket transport

2013-07-19 Thread Igor Kostromin
Igor Kostromin [https://community.jboss.org/people/elw00d] created the 
discussion

Cannot set up serverBindAddress for secondarySocket in bisocket transport

To view the discussion, visit: https://community.jboss.org/message/828781#828781

--
Hello, I use bisocket transport in Remoting 2.5.4.SP4 and have a trouble with 
my server which is placed behind a translating firewall. The point of my 
problem is described here  https://issues.jboss.org/browse/JBREM-1322 
https://issues.jboss.org/browse/JBREM-1322. May I hope this will be fixed in 
next release ?
--

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

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

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

[jboss-user] [JBoss Web Services] - Re: Migrating secured WS from JBoss 5.1 to 7.1.1

2013-07-19 Thread Xavier Dury
Xavier Dury [https://community.jboss.org/people/xdury] created the discussion

Re: Migrating secured WS from JBoss 5.1 to 7.1.1

To view the discussion, visit: https://community.jboss.org/message/828791#828791

--
Hi Massai,

I have something like that in my standalone.xml:
subsystem xmlns=urn:jboss:domain:webservices:1.2
 modify-wsdl-addresstrue/modify-wsdl-address
 ...
/subsystem
Do you have it too?

Xavier  
--

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

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

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

[jboss-user] [JBoss Web Services] - Configuring @WebServiceRef on EJB via XML in AS7

2013-07-19 Thread Xavier Dury
Xavier Dury [https://community.jboss.org/people/xdury] created the discussion

Configuring @WebServiceRef on EJB via XML in AS7

To view the discussion, visit: https://community.jboss.org/message/828798#828798

--
Hi,

I have some EJBs that call WebServices. In JBoss AS5, I had something like that:

@Stateless
public class MyServiceBean implements MyService {

 @WebServiceRef(name = services/MyWebService)
 MyWebPort myWebService;

 ...
}


jboss.xml:

session
 ejb-nameMyServiceBean/ejb-name
 service-ref
  service-ref-nameservices/MyWebService/service-ref-name
  service-impl-classeg.MyWebService/service-impl-class
  port-component-ref
   
service-endpoint-interfaceeg.MyWebPort/service-endpoint-interface
   stub-property
    prop-namejavax.xml.ws.service.endpoint.address/prop-name
    prop-valuehttp://some.url.here/prop-value
   /stub-property
  /port-component-ref
 /service-ref
/session


Now that I've migrated to JBoss AS7, jboss-ejb3.xml is used instead of 
jboss.xml. But it seems I can't use custom jboss elements in it.

So how do I achieve this in AS7?

Thanks,

Xavier
--

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

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

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

[jboss-user] [JBoss Web Services] - Re: how to migrate jboss-wsse-server.xml setting of jboss 5 to jboss 7.1?

2013-07-19 Thread Xavier Dury
Xavier Dury [https://community.jboss.org/people/xdury] created the discussion

Re: how to migrate jboss-wsse-server.xml setting of jboss 5 to jboss 7.1?

To view the discussion, visit: https://community.jboss.org/message/828807#828807

--
You could also take a look at this thread:  
https://community.jboss.org/thread/214266 
https://community.jboss.org/thread/214266
--

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

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

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

[jboss-user] [jBPM] - Trying to connect to database through jBPM script task.

2013-07-19 Thread avatarkim
avatarkim [https://community.jboss.org/people/avatarkim] created the discussion

Trying to connect to database through jBPM script task.

To view the discussion, visit: https://community.jboss.org/message/828814#828814

--
Hi,

I'm trying to access MySql database through jBPM workflow's script task but I'm 
getting the error code below when the workflow run the script task. I already 
uploaded the MySQL driver jar file as POJO in the Guvnor and I'm still getting 
this error.
No suitable driver found for jdbc:mysql://localhost:3306/test
so I'm assuming the jBPM need some other way for it to handle MySQL driver jar 
but I don't know where and what should I do this for this to work.

Below is my code in my Workflow's Script Task

java.sql.Connection con = null;
java.sql.PreparedStatement pst = null;
java.sql.ResultSet rs = null;
java.sql.ResultSetMetaData rsmd = null;


String url = jdbc:mysql://localhost:3306/test;
String user = root;
String password = password;


String temp = DEBUG: ;


try 
{
    con = java.sql.DriverManager.getConnection(url, user, password);
    pst = con.prepareStatement(SELECT * FROM aquitimber_messages);
    rs = pst.executeQuery();
    rsmd = rs.getMetaData();


    int rowSize = 0;
    rs.last();
    rowSize = rs.getRow();
    rs.first();


    for (int countRow = 0; countRow lt; rowSize; countRow++)
    {
  for (int count = 1; count lt; rsmd.getColumnCount(); count++)
    {
      System.out.print(rs.getString(count) + , );
      temp = temp + rs.getString(count) + , ;
    }
    System.out.println();
    rs.next();
    }
} catch (java.sql.SQLException ex) 
{
  System.out.println(ex.getMessage());
  temp = temp +ex.getMessage();
} finally
{
  try
  {
    if (rs != null)
    {
      rs.close();
    }
    if (pst != null)
    {
      pst.close();
    }
    if (con != null)
    {
      con.close();
    }
  } catch (java.sql.SQLException ex) 
  {
    System.out.println(ex.getMessage());
    temp = temp +ex.getMessage();
  }
}


kcontext.setVariable(approvalVar_history, temp);


Any help on this would be greatly appreciated. Thank you.
--

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

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

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

[jboss-user] [Datasource Configuration] - Re: Connection need to be done in xa-datasource with AS400 driver

2013-07-19 Thread Gayratbek Komilov
Gayratbek Komilov [https://community.jboss.org/people/gayrat.komilov] created 
the discussion

Re: Connection need to be done in xa-datasource with AS400 driver

To view the discussion, visit: https://community.jboss.org/message/828825#828825

--
I have made mistake here 
 xa-datasource-property name=URL
    
jdbc:as400://122.212.243.75/mgolib;naming=sql;errors=full
    /xa-datasource-property
it need to be like this 
xa-datasource-property name=ServerName
    122.212.243.75
    /xa-datasource-property

Reply to original post
--

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

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2077]

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

[jboss-user] [Datasource Configuration] - Re: Connect to MySQL without Datasource in JBoss AS 7.1

2013-07-19 Thread Wolf-Dieter Fink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the 
discussion

Re: Connect to MySQL without Datasource in JBoss AS 7.1

To view the discussion, visit: https://community.jboss.org/message/828853#828853

--
If you do that your application need to have a dependency to the driver.
You can add a +Dependencies+ attribute to the MANIFEST add the 'com.mysql.jdbc' 
to it.

You might read the  
https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7 documentation 
for details
--

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

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2077]

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

[jboss-user] [jBPM] - Re: PermissionDeniedException on task Claim

2013-07-19 Thread cold gin
cold gin [https://community.jboss.org/people/cold_gin] created the discussion

Re: PermissionDeniedException on task Claim

To view the discussion, visit: https://community.jboss.org/message/828860#828860

--
I receive the same exact error when my tasks go from claimed to released status 
(in rapid succession, ie - click claim/release, claim/release, buttons quickly 
). I tried creating a modified operations-dsl.mvel with the settings described 
above. I added this file to my project classpath, but it had no effect. I also 
tried to directly modify the operations-dsl.mvel that resides inside of 
jbpm-human-task-war.war, but that did not work either. Here is the error 
message:

15:30:58,189 ERROR [stderr] (Thread-74) 
org.jbpm.task.service.PermissionDeniedException: User '[User:'...']' was unable 
to execution operation 'Release' on task id ... due to a no 'current status' 
match

Any suggestions on what I could try next? jBPM version is 5.4.0.

Thanks in advance.

--

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

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

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

[jboss-user] [jBPM] - Re: Trying to connect to database through jBPM script task.

2013-07-19 Thread Jiri Svitak
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

Re: Trying to connect to database through jBPM script task.

To view the discussion, visit: https://community.jboss.org/message/828862#828862

--
Hi avatarkim,

what version of jBPM do you use?

You should not use script tasks for interaction with a database. Use rather a 
service task and implement own handler. Script tasks are very simple, so 
service tasks can save you from many headaches with db interaction.

Regarding to your issues with MySQL driver - you should not upload the MySQL 
driver into Guvnor, only POJOs. What are you trying to achieve? If you are 
using JBoss AS/Wildfly, you should load MySQL driver as a module or a 
deployment. Do not include it in your application, or even upload into Guvnor. 
Also remember that Guvnor is only a repository, so I expect that you wanted to 
use jbpm console or own web application to run the process instances.

HTH
--

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

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

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

[jboss-user] [jBPM] - Re: Concurrency problems with JBPM 5.4

2013-07-19 Thread Demian Calcaprina
Demian Calcaprina [https://community.jboss.org/people/calca] created the 
discussion

Re: Concurrency problems with JBPM 5.4

To view the discussion, visit: https://community.jboss.org/message/828877#828877

--
I have had problems with concurrency, and it was because LocalTaskService is 
not thread safe. It was solved by creating a new LocalTaskService per request.

Hope this helps,

Demian
--

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

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

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

[jboss-user] [jBPM] - Re: Concurrency problems with JBPM 5.4

2013-07-19 Thread Jon Kranes
Jon Kranes [https://community.jboss.org/people/jkranes] created the discussion

Re: Concurrency problems with JBPM 5.4

To view the discussion, visit: https://community.jboss.org/message/828885#828885

--
Each new processInstance gets its own session, and each session gets its own 
private LocalTaskService, so neither of these is being shared.  So I don't 
think that is the problem (at least not in any obvoius way.

Jon
--

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

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

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

[jboss-user] [EJB3] - JBoss 6.1.0.Final SFSB concurrency issue

2013-07-19 Thread Octavian Pop
Octavian Pop [https://community.jboss.org/people/PopOctavian] created the 
discussion

JBoss 6.1.0.Final SFSB concurrency issue

To view the discussion, visit: https://community.jboss.org/message/828891#828891

--
Hi,

I am trying to run a test to investigate a performace issue after upgrading 
from JBoss 4.0.5 to 6.1. For this I use a simple test application with a 
service which starts threads, each thread looks-up a SFSB instace and execute a 
method to increment a number. 
From this test I notticed that SFSB method calls in the multi-threaded test 
are serialized - one execution after the other. Investigating in more detail I 
found that this serialization is caused by CMC interceptor from 
server/current/deploy/ejb3-interceptors-aop.xml.
If I commented out CMC, performance increased significantly.

Is this a known behavior?
What are the implications if I comment CMC?

Thanks.

Below are code snippets from test:


@Service
public class TestingService
{
 
    public static int numberOfThreads=2;
 
    public static void start() throws Exception
    {
 
    startTest(numberOfThreads);
    }
 
    public static void startTest(int threadNumber) throws InterruptedException
    {
    Thread [] threads = new Thread[threadNumber];
 
    for (int i=0;i threadNumber;i++)
    {
    Thread t = new Thread()
    {
    public void run()
    {
    Client testClient = new Client();
    testClient.processNumber(Math.round(Math.random()*1000));
    testClient.destroy();
    }
    };
    t.start();
    threads[i] = t;
    }
 
    for(int i=0; ithreadNumber; i++)
    {
    threads[i].join();
    }
    }
}
 
public class Client
{
    IGenericSFB genericSFB;
 
    public Client()
    {
    genericSFB = (IGenericSFB) 
ServiceLocator.getLocalService(GenericSFB.class.getSimpleName());
    System.out.println(This address  + genericSFB +   + 
genericSFB.hashCode());
    }
 
 
    public void processNumber(Long number)
    {
    System.out.println(Client - Start incrementing  + number);
    genericSFB.incrementNumber(number);
    System.out.println(Client - Finish incrementing  + number);
 
    }
...
 
 
@Stateful
public class GenericSFB implements IGenericSFB, Serializable
{
    private int number;
    private String stuff;
    private String someOtherStuff;
 
    public Long incrementNumber(Long number)
    {
    System.out.println(SFB - start incrementing number  + number +  by  
+ this);
    try
    {
    Thread.currentThread().sleep(1);
    }
    catch (InterruptedException e){}
 
    System.out.println(SFB - finish incrementing number  + number);
 
    return 0L;
    }
...
 
 
--

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

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2029]

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

[jboss-user] [EJB3] - Re: JBoss 6.1.0.Final SFSB concurrency issue

2013-07-19 Thread jaikiran pai
jaikiran pai [https://community.jboss.org/people/jaikiran] created the 
discussion

Re: JBoss 6.1.0.Final SFSB concurrency issue

To view the discussion, visit: https://community.jboss.org/message/828896#828896

--
Is this JBoss EAP 6.1.0.Final (based on AS7) or the community JBoss AS 
6.1.0.Final?
--

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

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2029]

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

[jboss-user] [JBoss Tools] - JBossToolsFAQ

2013-07-19 Thread Nick Boldt
Nick Boldt [https://community.jboss.org/people/nickboldt] modified the document:

JBossToolsFAQ

To view the document, visit: https://community.jboss.org/docs/DOC-10796

--
*General FAQs*
*  https://community.jboss.org/docs/DOC-10797 JBoss Tools FAQ
*  https://community.jboss.org/docs/DOC-11753 JBoss Developer Studio FAQ
*  https://community.jboss.org/docs/DOC-10801 TroubleShooting
*  https://community.jboss.org/docs/DOC-14297 Matrix of supported platforms, 
runtimes and technologies in JBoss Tools/JBDS


*Installation*
*  http://www.jboss.org/tools/download/installation JBoss Tools Installation 
Guide
*  https://community.jboss.org/docs/DOC-11754 JBoss Developer Studio 
Installation FAQ


*Feature FAQs*
*  https://community.jboss.org/docs/DOC-18100 BrowserSim
*  https://community.jboss.org/docs/DOC-10862 Visual Editor


*Building and Testing*
*  https://github.com/jbosstools/jbosstools-devdoc/blob/master/building/faq.md 
Building JBoss Tools 4.1
*  
https://github.com/jbosstools/jbosstools-devdoc/blob/master/building/how_to_build_jbosstools_4.adoc
 Building JBoss Tools 4
*  http://www.jboss.org/tools/docs/testing.html Testing JBoss Tools (Using PDE 
Debugger w/ a Tycho/Maven Build)
--

Comment by going to Community
[https://community.jboss.org/docs/DOC-10796]

Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102containerType=14container=2128]
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [JBoss Tools] - JBossToolsTroubleShootingFAQ

2013-07-19 Thread Nick Boldt
Nick Boldt [https://community.jboss.org/people/nickboldt] modified the document:

JBossToolsTroubleShootingFAQ

To view the document, visit: https://community.jboss.org/docs/DOC-10801

--
h2. JBoss Tools Trouble Shooting FAQ

h3. Read this before adding an entry


This FAQ is intended to provide information on JBoss Tools (and Eclipse in 
general) trouble shooting.



*Q : The plugins does not seem to be loaded or active after installation*

*A* : This can unfortunately happen if either some steps in the installation 
failed, Eclipse is somehow misconfigured or there are some conflicting plugins 
installed.

To find out why plugins are not being loaded try and start eclipse with the 
-debug flag on the command line. Now Eclipse will log what plugins/bundles are 
not being loaded. You can open the Error Log View or look directly in 
.metadata/log for the information.

See also  
http://wiki.eclipse.org/IRC_FAQ#How_do_I_debug_Eclipse.3F_How_can_I_see_what_plug-ins_are_being_started.3F_Why_aren.27t_the_plug-ins_I_installed_showing_up_in_the_UI.3F_How_do_I_start_the_OSGi_console.3F
 
http://wiki.eclipse.org/IRC_FAQ#How_do_I_debug_Eclipse.3F_How_can_I_see_what_plug-ins_are_being_started.3F_Why_aren.27t_the_plug-ins_I_installed_showing_up_in_the_UI.3F_How_do_I_start_the_OSGi_console.3F



*Q : Eclipse is running out of memory OR Eclipse is running very slow!*

*A* : Eclipse default setup is to use 64mb of memory and that works ok for 
small number of projects; but if you have more projects and/or using many 
plugins Eclipse would like to use more memory and hence its behavior will be 
slower operations (because of too much garbage collection or simply halting 
because it runs out of memory).

The solution is to start eclipse with a set of flags to allow it to allocate 
more memory:

eclipse -vmargs -Xmx1024m -XX:MaxPermSize=128m

The above will allow it to use up to 1Gb of memory (you can of course lower it 
if you want, but this is what I use  ;)  and finally it will also increase the 
MaxPermSize so classloading is given more room.

See also  
http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap.2C_or_permgen_problems.2C_what_can_I_do.3F
 
http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap.2C_or_permgen_problems.2C_what_can_I_do.3F



*Q: My deployment need to be present when starting up the server, but it looks 
like my .sar archives are only deployed after the server is running. How do I 
make sure the server sees it while starting up ?*

This is probably because the server adapter is deploying into a metadata 
location in the  workspace and that metadata location is only added as a 
deployable  location via JMX after bootup.

You can still make your server deploy to a specific location inside the  
automatically-added location (aka the deploy folder) by opening the  Server 
Editor (double-click the server) and changing the preferences there.

Note: 90% of deployments don't need this but some others do, like some .sar 
deployments.



*Q: Why are Eclipse buttons in dialogs and other places are not working for me 
on Linux* ?

This was a problem in Eclipse 3.5.1. Setting GDK_NATIVE_WINDOWS=true worked 
around the issue. This bug was fixed in Eclipse 3.5.2 and 3.6.0 (JBoss Tools 
3.1  3.2, respectively).

See also  
http://wiki.eclipse.org/IRC_FAQ#Eclipse_buttons_in_dialogs_and_other_places_are_not_working_for_me_if_I_click_them_with_the_mouse._I_also_cannot_see_anything_in_the_tree_when_I_try_to_install_updates._What.27s_going_on.3F
 
http://wiki.eclipse.org/IRC_FAQ#Eclipse_buttons_in_dialogs_and_other_places_are_not_working_for_me_if_I_click_them_with_the_mouse._I_also_cannot_see_anything_in_the_tree_when_I_try_to_install_updates._What.27s_going_on.3F
--

Comment by going to Community
[https://community.jboss.org/docs/DOC-10801]

Create a new document in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102containerType=14container=2128]
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [Beginner's Corner] - Deployment Error / Unable to load library

2013-07-19 Thread Allen Porter
Allen Porter [https://community.jboss.org/people/metaphiz] created the 
discussion

Deployment Error / Unable to load library

To view the discussion, visit: https://community.jboss.org/message/828915#828915

--
Here are some lines from the console which concern me.

These lines come up when I start the service:
16:17:55,075 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of 
incomplete deployments SEE PREVIOUS ERRORS FOR DETAILS
DEPLOYMENTS IN ERROR:
Deployment jboss:service=invoker,type=pooled is in error due to the following 
reasons: java.net.BindException: Address already in use: JVM_Bind

This line recurs when loading pages:
16:18:53,792 INFO [STDOUT] 07/19 16:18:55 Information [http-127.0.0.1-8080-1] - 
Unable to load library

We're getting inconsistent behavior when using / in image tags, and we're 
having trouble with client variables in ColdFusion. They are not instantiating.

What's wrong?
--

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

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2075]

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

[jboss-user] [jBPM] - Integrating jBPM in Existing Web Application along with Guvnor / Designer

2013-07-19 Thread Ikram Babai
Ikram Babai [https://community.jboss.org/people/ikrambabai] created the 
discussion

Integrating jBPM in Existing Web Application along with Guvnor / Designer

To view the discussion, visit: https://community.jboss.org/message/828916#828916

--
Dear Commuity,

I'm into the jBPM /Guvnor/Designer suite for about two months now - so still a 
newbie - However, I feel like I have convered a good (at least horizontal) 
space. I have got many questions on the overall best practices that one should 
use to use various components of the suite.

*Background:* 

We are evaluating jBPM for executing processes that will dump data from some 
big data servers, do some manipulation and extract and dumpt the refined 
results into an RDBMS - The processes shoudl execute at cetain frequencies - 
lets say every 1 one - So we need a process triggering mechanism to invoke the 
BPMN2 process through jBPM runtime - we use quartz for that. The actual process 
will be designed by users using the Oryx designer that's embedded in Guvnor and 
then saved in the Guvnor's tables. We do not use the Human Task Service (not at 
least now) or any other rule base API that Guvnor exposes. Our Users will 
primarily be using Designer App to write the processes, compile and let the 
jBPM consume them.

Following is the high-high level design on which my questions below are based.

Tomcat Instance 1
|-
|   My Web App  |
|   Usual Supsects  |
|   (Hibernate/Spring)   |
|    |
|    |    
|  +    |
|   jBPM Core |
|   (Engine/Runtime)    |
| (Work Item Handlers)    |   In Instance1 we 
build jBPM Knowledge Base by getting BPMN2 Processes designed and stored in 
instnce 2 below 
|___|



Tomcat Intance2
|-
|   Guvnor + Designer  |
|    |
|    |
|    |
|    |    
|   |
|    Users Design    |
|  BPMN2 Processes  |
|   Save and Build   |
|__|


*1.  When to build the kBase in Instance1?*

Knowledge Base is what jBPM Core knows and cares about - once built, the core 
engine can pick any process using its ID and get it executed - Process are 
designed in Instance2 above. Once desgined, committed and package is built, how 
do I tell jBPM core in Instnace1 to rebuild its knowledge base so that the 
latest defintion of the changed proces is avaiable to it on the next cron 
trigger?  Is there a hook that Guvnor App provides that kicks in Instnace1 
right away as soon as the package in instnace2 is built?

The two easiest answers that I do not want to follow can be these.

a. Build Knowledge Base in instance1 every few minutes. Get latest process 
defintion from Instance2 every 5 mintues, for instnace: I dont like this option 
(and Im sure most of you won't). What if something bad happens during such a 
high frequency operation and kBase is not built successfully?

b. Currenly what Im doing is that everytime the user comes to the page (in 
Instance1) where process names are listed (from kBase), I re-create the kBase. 
Not a brilliant way of doing I agree - What if the users neverf comes to that 
page and just sings out after the kBase in Instnace2?

So please let me know if there is a nice way that I can build my kBase in 
Instance1 on every Prcess/Package Build in Instnace2.

*2.  What Happens to an in-progress process when changes are done to an 
exisiting process, package built and kBase built in instance1?*

Let say I know when and how to build my kBase - but then there can be some 
process which already started on the older version of the processes jBPM took 
from older kBase for execution? Will there exection be terminated or the 
runtime will execute the older version of the process and pick the new only in 
the next exection (not the current one)?

*3.  Versioning: Is there a way to tell jBPM to execute a particular version of 
a process?*

*4.  Partial BAM Reports? Possible?*

The Business Activity Modeling tables (nothing complex  2/3 tables - one being 
PROCESSINSTANCELOG) are populated whenever the jBPM exection flows enters and 
exits a particular node. It works nicely except when one node's execution (say 
a Service Node) faces a problem. Just yesterday, I faced this problem. Let me 
explain. Suppose a process is in execution and when it reaches to node 5 for 
example - once of who's parameter is a big data query and that query had a 
syntax error. Obviously exceptions were thrown from that Service Node - But 
jBPM didn't save anything in the