[Design of POJO Server] - Re: Moving forward with the profile service mgmt api
by scott.stark@jboss.org
Still too many distractions to get this done this weekend. I have checked in the current state. The two things to complete are getting the attachments for the base deployments stored in the repository, and then obtaining the attachments for a ManagedObject update to store as overrides. The profile repository notion I'm working with is defined by this spi:
| package org.jboss.profileservice.spi;
|
| import java.io.IOException;
| import java.io.InputStream;
| import java.net.URI;
| import java.util.Collection;
| import java.util.zip.ZipInputStream;
|
| import org.jboss.deployers.spi.attachments.Attachments;
| import org.jboss.deployers.spi.structure.DeploymentContext;
| import org.jboss.virtual.VirtualFile;
|
| /**
| * An interface for managing the contents of a Profile.
| *
| * @author Scott.Stark(a)jboss.org
| * @version $Revision:$
| */
| public interface DeploymentRepository
| {
| public URI getBootstrapURI();
| public void setBootstrapURI(URI uri);
| public URI getDeployersURI();
| public void setDeployersURI(URI uri);
| public URI getDeploymentURI();
| public void setDeploymentURI(URI rootURI);
|
| // Upload a raw deployment
| public VirtualFile addDeploymentFile(String name, ZipInputStream contentIS)
| throws IOException;
| // Get the raw deployment
| public VirtualFile getDeploymentFile(String name);
|
| // Bootstrap
| public void addBootstrap(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getBootstrap(String vfsPath);
| public Collection<DeploymentContext> getBootstraps();
| public void removeBootstrap(String vfsPath)
| throws IOException;
|
| // Deployers
| public void addDeployer(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getDeployer(String vfsPath);
| public Collection<DeploymentContext> getDeployers();
| public void removeDeployer(String vfsPath)
| throws IOException;
|
| // Deployments
| public void addDeployment(String vfsPath, DeploymentContext ctx)
| throws IOException;
| public DeploymentContext getDeployment(String vfsPath);
| public void removeDeployment(String vfsPath)
| throws IOException;
| public Collection<DeploymentContext> getDeployments();
|
| // Managed object attachments for a deployment
| public void addManagedObject(String vfsPath, Attachments edits)
| throws IOException;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994568#3994568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994568
19 years, 3 months
[Design of JBoss Profiler] - Compilation errors when trying to build Jboss Profiler taken
by soumendu
Hi,
I grabbed the CVS version of Jboss Profiler as directed in your website and was trying to build it, but it fails. Here are the details of my system and the errors:
OS: HP-UX XXXXX B.11.00 U 9000/800
Java version: java version "1.4.2.00"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.00-031015-15:06)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.00-031015-16:52-PA_RISC2.0 PA2.0, mixed mode)
Ant version: Apache Ant version 1.6.5 compiled on June 2 2005
Error:
Buildfile: build.xml
init:
compile:
[javac] Compiling 8 source files to /home/bv/sobhatta/checkouts/jboss-profiler/build/classes/proxyDriver
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyCallableStatement.java:45: illegal character: \64
[javac] @SuppressWarnings("deprecation")
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyCallableStatement.java:389: expected
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyConnection.java:92: expected
[javac] public Map<String, Class<?>> getTypeMap() throws SQLException {
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyConnection.java:327: ';' expected
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyPreparedStatement.java:238: illegal character: \64
[javac] @SuppressWarnings("deprecation")
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyPreparedStatement.java:243: expected
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyResultset.java:509: expected
[javac] public Object getObject(int arg0, Map<String, Class<?>> arg1)
[javac] ^
[javac] /home/bv/sobhatta/checkouts/jboss-profiler/java/src/proxyDriver/org/jboss/profiler/proxydriver/core/ProxyResultset.java:616: ')' expected
[javac] ^
[javac] 8 errors
BUILD FAILED
/home/bv/sobhatta/checkouts/jboss-profiler/build.xml:73: Compile failed; see the compiler error output for details.
Total time: 6 seconds
Please let me know how to rectify this issue or if i am missing anything.
Thanks in advance
Regards
Soumendu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994548#3994548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994548
19 years, 3 months
[Design of JBoss jBPM] - XORJoinNode
by yangdaolin
I developed a XORJoinNode. When user end a task to enter this node, other tasks of previous nodes will automatically end.
| public class XORJoinNodeAction
| extends Node
| {
| protected void cancelTokenTasks( ExecutionContext executionContext, Token token )
| {
| TaskMgmtInstance tms = executionContext.getTaskMgmtInstance();
| Collection tasks = tms.getUnfinishedTasks( token );
| Iterator it = tasks.iterator( );
| while( it.hasNext() )
| {
| TaskInstance ti = (TaskInstance)it.next( );
| if( ti.isBlocking( ) )
| ti.setBlocking( false );
| if( ti.isSignalling( ) )
| ti.setSignalling( false );
| log.debug( "Cancel TaskInstance " + ti.getName() + "(" + ti.getId() + ")" );
| ti.cancel( );
| }
| }
|
| public void execute(ExecutionContext ctx)
| {
| Token token = ctx.getToken();
| Node mergeNode = token.getNode();
|
| Collection concurrentTokens = token.getParent().getChildren().values();
| Iterator iter = concurrentTokens.iterator();
| while ( iter.hasNext() )
| {
| Token concurrentToken = (Token) iter.next();
| concurrentToken.setAbleToReactivateParent( false );
| if (!mergeNode.equals(concurrentToken.getNode()))
| {
| cancelTokenTasks( ctx, concurrentToken );
| concurrentToken.end( false );
| }
| }
|
| leave( ctx );
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994488#3994488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994488
19 years, 3 months
hibernate exception
by m.heidari
Hello,
I have a portlet that connection to MsSql server via hibernate but time of
this query is very long and at last i see exception on my page.
In portal-sqlserver-ds.xml i locate this code:
Code:
<max-pool-size>200</max-pool-size>
<min-pool-size>1</min-pool-size>
<idle-timeout-minutes>100</idle-timeout-minutes>
but yet i see this exception:
javax.servlet.ServletException: Transaction is not active:
tx=TransactionImpl:XidImpl[FormatId=257,
GlobalId=portalserver/4717, BranchQual=, localId=4717]
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:81)
If you have solution for this problem please help me.
thanks
19 years, 3 months